1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

633 Commits

Author SHA1 Message Date
Stefan Metzmacher
32b0bb64bc r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
(This used to be commit 180a79d1036e54fc0c50572b820818e9aafa28e9)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
966cf4aece r14138: this isn't needed
metze
(This used to be commit bc905952eba6d98abcbae50fbc4d15b179d3cdcb)
2007-10-10 13:56:53 -05:00
Rafal Szczesniak
7f2491a54b r14124: One more thing needed for async dcerpc connect code.
rafal
(This used to be commit b4c48a6107b28bb529e535f04586d930e8ba636a)
2007-10-10 13:56:52 -05:00
Günther Deschner
3bca79d037 r14054: merge from samba3, fillout more userAccountControl bits.
Guenther
(This used to be commit 98207368044505c05b8d3f0538c19536488e229d)
2007-10-10 13:52:38 -05:00
Jelmer Vernooij
17ae598141 r13938: Around round of splitups
(This used to be commit 2d655f05285a86bb1bbb882e4dd843def15c9dfa)
2007-10-10 13:52:29 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
ba564a901e r13903: Don't generate prototypes for modules and binaries in include/proto.h by
default.
(This used to be commit c80a8f1102caf744b66c13bebde38fba74983dc4)
2007-10-10 13:52:21 -05:00
Jelmer Vernooij
86dda20562 r13899: Get the shared library build building again. Just compiles for now,
but modules don't work yet..
(Run LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY MODULE_OUTPUT_TYPE=SHARED_LIBRARY ./config.status)
(This used to be commit ba74f24e422eda0379615f2ab39bef1e1e025ce7)
2007-10-10 13:52:20 -05:00
Stefan Metzmacher
d8503c6ba1 r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requests
- the default max protocol is still NT1

metze
(This used to be commit d1bae931b327dda28e648efc473e0462cf036f7c)
2007-10-10 13:52:17 -05:00
Jelmer Vernooij
4d8fe47f7f r13849: More improvements to the libutil docs.
(This used to be commit eed16ac3b7f7062a34f09f602db0f828cac7f246)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
8ef42b1fab r13847: Fix some portability issues with the visibility attribute.
(This used to be commit fe5eae0e983d1c8634dd9b7caf19cd103c641223)
2007-10-10 13:52:15 -05:00
Stefan Metzmacher
4dcab29f51 r13811: nicer format...
metze
(This used to be commit 89f7a2b93f7b69339baddff2ac30e648d7b2f8b9)
2007-10-10 13:52:13 -05:00
Stefan Metzmacher
e0f691b1e1 r13810: global data types are defined in core.h now...
metze
(This used to be commit c6137a1af982bd77e4b24d05e82c8621b36d0fac)
2007-10-10 13:52:12 -05:00
Stefan Metzmacher
2debfc918c r13809: move ldb specific define
metze
(This used to be commit 6f47fcbd44ae83e7268aedf91ac56fff4189c763)
2007-10-10 13:52:12 -05:00
Stefan Metzmacher
f2ab61b129 r13808: remove unused define
metze
(This used to be commit b639b814d912891d32c31f0995df7c06d6a10522)
2007-10-10 13:52:12 -05:00
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b05c2a505dc7f54676b231197a7e707)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
d3bcaf66a8 r13654: Move some more stuff out of include/
(This used to be commit 2ec7bba03a2edf713004941e9ed74798f5cf8d32)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
10d88a02d7 r13652: Move some more stuff out off include/
(This used to be commit 26bf2a393b90acc098be0b30886dbba34d348a01)
2007-10-10 13:52:04 -05:00
James Peach
4c54a04969 r13248: Revert revision 13071. It turns out that sys/param.h can be implicitly
included from other headers. In this case, undeffing MIN and MAX is a
really bad idea because the subsequent include of sys/param.h will do
nothing because of its include guards.
(This used to be commit 8aa8be93b09cfbd176455738dfd305047030fd50)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
b70009649a r13244: Allow control of the location of the Samba3-compatible winbindd pipe
in Samba4.  This allows us to start winbindd by default, including in
'make test'.

This is via a new 'winbindd socket directory' parameter for utilities
linked against loadparm, as well as a --with-winbindd-socket-dir
option to configure (setting the default and the value for simple
clients).

I hope to add basic winbindd tests, to ensure continued correct
operation, but at least now I don't have to manually change my 'server
services' line.

The other problem with the hard-coded /tmp/.winbind is that RedHat has
moved this in Fedora (to /var/run I think).  For this reason, this
functionality should probably be ported to Samba3 as well.

The default for Samba4 is PREFIX/var/run/winbind_pipe.

I have also re-added the paranoia checks from Samba3 for correct
permissions on the socket directory.

Andrew Bartlett
(This used to be commit 8866aa06ffc3896094c878e9c07b40c03826d9a7)
2007-10-10 13:51:37 -05:00
James Peach
b98a5bf922 r13243: Bring __FUNCTION__ checks across from Samba 3.
(This used to be commit 92eec049628a79f8d9496c6d199d6de0238e7940)
2007-10-10 13:51:36 -05:00
Jelmer Vernooij
713b296441 r13210: Revert my named pipes patch until it passes not just 'make quicktest' but
also 'make test'
(This used to be commit e3d0676aee84e96e5c87bed4cd0cde75a4191953)
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
ad6303f82f r13208: Clearly separate named pipes from the IPC$ NTVFS type.
This allows the easy addition of additional named pipes and removes the
circular dependencies between the CIFS, RPC and RAP servers.

Simple tests for a custom named pipe included.
(This used to be commit 898d15acbd18e3b302a856c847e08c22c5024792)
2007-10-10 13:51:34 -05:00
Jelmer Vernooij
8adec6d363 r13158: Fix setup and ejs paths
(This used to be commit c3bc39bd713e2a2b0a270d22e38fe39959a6a7c9)
2007-10-10 13:51:30 -05:00
James Peach
81a39f964e r13071: Work around a really annoying compiler warning where header file
ordering causes MIN and MAX to be redefined.
(This used to be commit 0eda8a31975fa6cf4f7026bccc5468fba957860d)
2007-10-10 13:51:21 -05:00
Andrew Bartlett
aecd9827c6 r13019: Again protect us against format string mismatches, with the new split
out proto headers.

The reason this is done in this way is that the attribute must be on
the prototype, not the actual function defintion.  Hence the macros
which expand to nothing in the C file, but expand to an __attribute__
in the prototype header.

Andrew Bartlett
(This used to be commit a88933668f908a398bb0d8bc7dc39c96cee40de6)
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
b3f2db5e01 r12844: don't include system headers directly
metze
(This used to be commit 75a98047d6829cadf4b9082bec2733055dad3465)
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
720041d078 r12832: make it possible to pass -D_PUBLIC_... to the compiler
metze
(This used to be commit 5540509f10e3fee4c653081a3bc56213d40869df)
2007-10-10 13:50:04 -05:00
Andrew Bartlett
f55ea8bb3d r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
(This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
5c8447773f r12801: Some more include/ cleanups (remove unused macros + move files
to specific dirs)
(This used to be commit 243cf760b077e155f5ac508aeebf819f7708a84e)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
8d15aee017 r12799: print out function and location too
metze
(This used to be commit a5ef3eef9cbedd273556068ba59c07ccb0060098)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
3c13509c06 r12798: print timestamps into the log file, this is not nice code,
but it works for now

metze
(This used to be commit ec7dbb5a98c112e86399ffcff14eb42c99d8e31d)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
db04cffbbf r12725: some minor updates
metze
(This used to be commit f2e97983f278211c6d70400ce1f43d6a69df0d8a)
2007-10-10 13:49:45 -05:00
Jelmer Vernooij
c975df527c r12711: Update copyrights
(This used to be commit a02b0c5568977e1a2a396460d13a24076d4681f0)
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
769eb7d3fe r12698: Declare model_ops (required for NetBSD)
(This used to be commit 5e6df39363fba961e09e836e4b5a0115b278be90)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10 13:49:39 -05:00
Andrew Bartlett
a326d6dba9 r12601: Syncronise both copies of dlinklist.h.
Should we somehow link these, or just use the version in ldb?

Andrew Bartlett
(This used to be commit e98d14668e3fdee01b103adb5aec733790eee96d)
2007-10-10 13:49:01 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
0a3c167f6b r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
(This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
7285e102f0 r12523: Convert the registry subsystem to use a seperate prototype header
(note that this doesn't use the distinction between private
 and public prototypes yet)
(This used to be commit 60e11f575821c1762b25ad66441b6e69ad1167ef)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
6aafed9600 r12499: Move smb_build.h out of includes.h
(This used to be commit c92ace494f92084ddf178626cdf392d151043bc7)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
448483199f r12494: Support loading modules from .so files for most subsystems.
We now use a different system for initializing the modules for a subsystem.
Most subsystems now have an init function that looks something like this:

	init_module_fn static_init[] = STATIC_AUTH_MODULES;
	init_module_fn *shared_init = load_samba_modules(NULL, "auth");

	run_init_functions(static_init);
	run_init_functions(shared_init);

	talloc_free(shared_init);

I hope to eliminate the other init functions later on (the
init_programname_subsystems; defines).
(This used to be commit b6d2ad4ce0a91c4be790dd258820c492ff1787ea)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
788f7cc59a r12489: Forward declare nbtd_iface_name
(This used to be commit cfaa52cdbaf0b97a8830137a74976e08cabeac8d)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
07b52f5cd9 r12454: Forward declare struct nbt_iface_name
(This used to be commit d54fea5d0e5dc87f686b2134735e76ce7cd208af)
2007-10-10 13:47:41 -05:00
Jelmer Vernooij
81eb29da2a r12451: Add 'struct libnet_context;' - apparently the order of the prototypes
in proto.h previously already did this somehow, probably because it
was used as a return value before it was used as a parameter.
(This used to be commit 30861b0f0e6496d13fb61b2927e3f24d16a9b911)
2007-10-10 13:47:41 -05:00
Jelmer Vernooij
52728b7d41 r12446: Merge mkproto.sh's functionality into mkproto.pl
Allow specifying the _PUBLIC_ keyword on functions to indicate a function
is public.

Public prototypes can now be written to a seperate header, although this
functionality is not used yet.
(This used to be commit e3466df6dfb62bbf8bee3acfa92996945054c2dd)
2007-10-10 13:47:40 -05:00
Andrew Bartlett
221c1512a8 r12411: Add 'net samdump keytab <keytab>'.
This extracts a remote windows domain into a keytab, suitable for use
in ethereal for kerberos decryption.

For the moment, like net samdump and net samsync, the 'password
server' smb.conf option must be set to the binding string for the
server. eg:

password server = ncacn_np:mypdc

Andrew Bartlett
(This used to be commit 272013438f53bb168f74e09eb70fc96112b84772)
2007-10-10 13:47:35 -05:00
Jelmer Vernooij
efe67458c1 r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
in build/smb_build/, remove unused pstring macros
(This used to be commit 432296207400636dd81d0929ec7b1b4cebbcaa62)
2007-10-10 13:47:19 -05:00