1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
Commit Graph

3651 Commits

Author SHA1 Message Date
Andrew Tridgell
55d4d36993 r5102: This is a major simplification of the logic for controlling top level
servers in smbd. The old code still contained a fairly bit of legacy
from the time when smbd was only handling SMB connection. The new code
gets rid of all of the smb_server specific code in smbd/, and creates
a much simpler infrastructures for new server code.

Major changes include:

 - simplified the process model code a lot.

 - got rid of the top level server and service structures
   completely. The top level context is now the event_context. This
   got rid of service.h and server.h completely (they were the most
   confusing parts of the old code)

 - added service_stream.[ch] for the helper functions that are
   specific to stream type services (services that handle streams, and
   use a logically separate process per connection)

 - got rid of the builtin idle_handler code in the service logic, as
   none of the servers were using it, and it can easily be handled by
   a server in future by adding its own timed_event to the event
   context.

 - fixed some major memory leaks in the rpc server code.

 - added registration of servers, rather than hard coding our list of
   possible servers. This allows for servers as modules in the future.

 - temporarily disabled the winbind code until I add the helper
   functions for that type of server

 - added error checking on service startup. If a configured server
   fails to startup then smbd doesn't startup.

 - cleaned up the command line handling in smbd, removing unused options
(This used to be commit cf6a46c3cb)
2007-10-10 13:09:22 -05:00
Tim Potter
5540449f1c r5095: uint32 -> uint32_t
%include misc.i to get definition of struct policy_handle

Remove #includes we aren't using just now.
(This used to be commit e561bc3efa)
2007-10-10 13:09:22 -05:00
Tim Potter
7e877072bd r5094: Use builtin swig types for converting between fixed width integer types.
(This used to be commit f2a1b237bc)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
51ad25e8ea r5093: Make debugs less confusing when a 0 NTTIME is printed.
Andrew Bartlett
(This used to be commit 9493c47b18)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
ea2209e3db r5092: Add a bit more const - moving it further into the LDB layer.
Andrew Bartlett
(This used to be commit ffad9b22be)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
b4055c9908 r5091: The Kerberos secrets are queried by realm
Andrew Bartlett
(This used to be commit 8f38b5ae22)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
5045bdc2a4 r5090: Fix up the IDL for LogonGetDomainInfo in NETLOGON.
Andrew Bartlett
(This used to be commit e5afc36093)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
89d6c45d7c r5089: Fix indentation.
(This used to be commit 2e31694f9e)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
1a013ce4d3 r5088: Push some of the heimdal tests into a 'if we didn't have krb5-config' block.
This lets krb5-config handle this without us stuffing things up.
Add back the test tridge removed

Andrew Bartlett
(This used to be commit 2206b0e8ca)
2007-10-10 13:09:21 -05:00
Tim Potter
7d43a2bdfe r5087: Add --swig to pidl flags so that swig .i files are generated with
make idl.
(This used to be commit 7ba9f329aa)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
f0158210b3 r5086: Fix list of binaries to install:
- nmblookup and net are generic, not torture programs.
 - Add ntlm_auth

Andrew Bartlett
(This used to be commit a2a49d1be0)
2007-10-10 13:09:21 -05:00
Andrew Tridgell
efc42a068b r5085: add net and nmblookup to installed binaries
metze, can you look at automating this when you get time? We really
need a flag in config.mk for "BINARY::" sections for the install
location, something like:

[BINARY::nmblookup]
OBJ_FILES = \
		utils/nmblookup.o
INSTALL_IN = bin
(This used to be commit a69c1a9130)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
2c0a1f5391 r5084: - handle arbitrary data in the NULL record reply type for nbt name queries
- fixed unaligned pulls at the end of the packet in the ndr lib
(This used to be commit 61c43509f7)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
087fb574b2 r5083: removed the libcrypto test that is forcing the pull in of the MIT krb5 libs when you
have openssl-dev installed
(This used to be commit 27d79059f8)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
465e089dd3 r5080: patch from ronnie to make our samr IDL a little more consistent
(This used to be commit 7607ddda3f)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
6e614bf632 r5079: don't look for gss_display_status() in libgssapi_krb5 unless we
haven't already got it from libgssapi. This should fix the problem of
building with heimdal when we have MIT installed
(This used to be commit bfa870262e)
2007-10-10 13:09:20 -05:00
Tim Potter
d5b8ec7b0e r5074: Remove dead code.
(This used to be commit 36b46bb05a)
2007-10-10 13:09:20 -05:00
Tim Potter
47c7fac701 r5073: Call new autogenerator function for swig stuff instead of old one.
(This used to be commit a1c98101e4)
2007-10-10 13:09:20 -05:00
Tim Potter
edf62429fa r5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig's
structure mapping features instead of doing it all ourselves.

This basically works, but has broken all the existing checked in Python
code.

Sample:

pipe = dcerpc.pipe_connect(binding,
        dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
        domain, username, password)

r = dcerpc.samr_Connect2()
r.data_in.system_name = 'foo'
r.data_in.access_mask = 0x02000000

result = dcerpc.dcerpc_samr_Connect2(pipe, r)
(This used to be commit c2996ad910)
2007-10-10 13:09:19 -05:00
Jeremy Allison
ebf1d79986 r5071: Reverted (per tridge request).
Jeremy.
(This used to be commit 554e27023f)
2007-10-10 13:09:19 -05:00
Jeremy Allison
90ba985c6b r5068: I'm pretty sure an old search request is allowed to return changed case
versions of filenames. Tridge please check I haven't screwed this up.
Jeremy.
(This used to be commit 40c1e16b5b)
2007-10-10 13:09:18 -05:00
Andrew Tridgell
e6ea227235 r5054: added a nmblookup tool, based on the new nbt library
(This used to be commit 9587cbcb9e)
2007-10-10 13:09:18 -05:00
Andrew Tridgell
99ecf2d953 r5053: - fix up the library dependencies so that tools that need nbt don't
need to pull in the whole dcerpc subsystem

- moved smbencrypt.c code into libcli/auth/
(This used to be commit 3351c636af)
2007-10-10 13:09:18 -05:00
Andrew Tridgell
d534e83c57 r5052: minor formatting fix
(This used to be commit 4337901c1b)
2007-10-10 13:09:18 -05:00
Andrew Tridgell
3761974ed8 r5051: initialise all elements of an array (thanks to Mike Allan for pointing
this out)
(This used to be commit 7bd4ced313)
2007-10-10 13:09:18 -05:00
Andrew Tridgell
cc869963e8 r5050: make sure we translate the generic to the specific bits before doing a
pvfs_access_check_unix().

Fixes a problem with the cifsfs filesystem
(This used to be commit 8ebc61a229)
2007-10-10 13:09:17 -05:00
Andrew Tridgell
6e2edd67a8 r5049: updated howto.txt with new provisioning instructions
(This used to be commit 82e331db5f)
2007-10-10 13:09:17 -05:00
Andrew Tridgell
c72131926d r5048: made the provision.pl script much less error prone (you don't need to
rename a bunch of files)
(This used to be commit 9aa5b07696)
2007-10-10 13:09:17 -05:00
Tim Potter
f337212c8f r5047: Fix swig dependencies.
(This used to be commit f9e56d39c9)
2007-10-10 13:09:17 -05:00
Stefan Metzmacher
4998a2cd54 r5045: add TODO comment
metze
(This used to be commit cbb6b80f41)
2007-10-10 13:09:17 -05:00
Stefan Metzmacher
f1279ff511 r5044: fix pidl--swig
metze
(This used to be commit 030bfd8d7f)
2007-10-10 13:09:17 -05:00
Andrew Tridgell
193d1c0b74 r5043: this broke more systems than it helped. Remove it and try to work
around broken solaris headers some other way.
(This used to be commit 1333522a6b)
2007-10-10 13:09:17 -05:00
Andrew Tridgell
9794a64ab1 r5042: another attempt to get solaris10 building
(This used to be commit 11277ddb4c)
2007-10-10 13:09:16 -05:00
Stefan Metzmacher
d482fd69bb r5041: add more verbose output for the krb5 libs detection
metze
(This used to be commit 917a3b214a)
2007-10-10 13:09:16 -05:00
Andrew Tridgell
425543c76a r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE
(This used to be commit d9c1bf1060)
2007-10-10 13:09:16 -05:00
Andrew Tridgell
5aedcc2066 r5039: fixed eparser not to generate talloc_p()
(This used to be commit dd67a5d833)
2007-10-10 13:09:16 -05:00
Andrew Tridgell
db75b1c8f7 r5038: we don't need these defines any more
(This used to be commit 03697fc761)
2007-10-10 13:09:16 -05:00
Andrew Tridgell
759da3b915 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
(This used to be commit ec32b22ed5)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
1e42cacf6a r5036: changed HYPER_T to the more standard "hyper"
(This used to be commit 1d1a9c11ee)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
93e27bec15 r5035: fixed composite test to use --num-ops command line option
(This used to be commit f36e4cf686)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
3dd17f1288 r5034: - added a type mapping function in pidl, so the type names in our IDL
files don't need to match the type names in the generated headers

- with this type mapping we no longer need definitions for the
  deprecated "int32", "uint8" etc form of types. We can now force
  everyone to use the standard types int32_t, uint8_t etc.

- fixed all the code that used the deprecated types

- converted the IDL types "int64" and "uint64" to "dlong" and
  "udlong". These are the 4 byte aligned 64 bit integers that
  Microsoft internally define as two 32 bit integers in a
  structure. After discussions with Ronnie Sahlberg we decided that
  calling these "int64" was confusing, as it implied a true 8 byte
  aligned type

- fixed all the cases where we incorrectly used things like
  "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for
  those. The fact that it is hyper-aligned on the wire is not relevant
  to the API, and should remain just a IDL property
(This used to be commit f86521677d)
2007-10-10 13:09:15 -05:00
Tim Potter
00169404ed r5033: Remove --with-eparserdir configure option and eparser_idl make target.
This is all done in the lorikeet/ethereal Makefile now.
(This used to be commit 5ec9fad5cf)
2007-10-10 13:09:14 -05:00
Andrew Tridgell
2a750c8c63 r5032: get rid of the init fns in eparser
(This used to be commit dc8c7cb85c)
2007-10-10 13:09:14 -05:00
Andrew Tridgell
5f78514676 r5027: added the IDL license to the IDL directory
(This used to be commit 765ede8ca6)
2007-10-10 13:09:14 -05:00
Tim Potter
37957ea3eb r5026: Don't build the swig stuff by default until it's a bit more stable.
(This used to be commit df35f1debf)
2007-10-10 13:09:14 -05:00
Tim Potter
adda6b39b6 r5024: Fix build.
(This used to be commit 425b988541)
2007-10-10 13:09:14 -05:00
Tim Potter
28a3ccf9af r5019: Some tweaks to building the swig .i files.
(This used to be commit c252a286ef)
2007-10-10 13:09:14 -05:00
Tim Potter
07b65ce281 r5018: Initialise required subsystems (by hand, generated by substituting
BINARY for LIBRARY in config.mk).

Cut things down to just the samr pipe for the moment.
(This used to be commit 95d2a58e5b)
2007-10-10 13:09:14 -05:00
Tim Potter
b10b7a360a r5017: Fix bug in output typemap for uint32 (!)
(This used to be commit dc845154ca)
2007-10-10 13:09:14 -05:00
Tim Potter
5e67970889 r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
build system.  This still generates bogus targets (i.e
bin/swig_dcerpc.so.0.0.1) and the subsystem initialisation needs to be
done by hand but it is less of a hack.
(This used to be commit e9b69d19a8)
2007-10-10 13:09:13 -05:00