1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

718 Commits

Author SHA1 Message Date
Jelmer Vernooij
e0fae5b22a r18169: Remove accidentally committed bits
(This used to be commit 51faeff2fa)
2007-10-10 14:17:45 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded)
2007-10-10 14:17:45 -05:00
Andrew Tridgell
a983b06d37 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e0)
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
a59706f721 r18121: Simplify m4 code, hopefully fix Samba4 build problems.
(This used to be commit 1adf65b4d7)
2007-10-10 14:17:35 -05:00
Andrew Tridgell
3953c21202 r18118: its the job of libreplace to handle things like this
(This used to be commit fa47301c0e)
2007-10-10 14:17:34 -05:00
Andrew Tridgell
b7477fb388 r18117: first steps in making samba4 use libreplace
(This used to be commit c079cedb08)
2007-10-10 14:17:34 -05:00
Jelmer Vernooij
4bcd9ffb22 r17931: Really remove the files this time. Looks like there's something wrong with
the rename code in bzr-svn...
(This used to be commit 03e402181a)
2007-10-10 14:16:55 -05:00
Stefan Metzmacher
a93ad7490c r17882: merge change from samba3
metze
(This used to be commit eca7085850)
2007-10-10 14:16:50 -05:00
Stefan Metzmacher
ac88647c13 r17537: if we replace inet_ntoa() we need a prototype of
rep_inet_ntoa...

metze
(This used to be commit 78eaa905d5)
2007-10-10 14:15:35 -05:00
Jelmer Vernooij
ca61b4f3b5 r15870: Improve detection of iconv - should prevent HAVE_ICONV_H being
defined when the installed iconv library doesn't match our criteria as
well as some other minor fixes.
(This used to be commit 7937932615)
2007-10-10 14:08:35 -05:00
Jelmer Vernooij
172a83d724 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6)
2007-10-10 14:05:58 -05:00
Jelmer Vernooij
089cbd4a8e r15568: Simplify detection of iconv libraries a fair bit and fix it to
work on FreeBSD.

Based very loosely on a patch by Timur Bakevey

Fixes #3688
(This used to be commit ea7b28572b)
2007-10-10 14:05:57 -05:00
Andrew Bartlett
c07db9b462 r15511: Using this name causes less warnings on the IBM checker, due to using
the original, rather than equivilant, enum type.

Andrew Bartlett
(This used to be commit 3d43e458a8)
2007-10-10 14:05:44 -05:00
Jelmer Vernooij
e572bbb94c r15321: Reduce the size of rewrite.m4 a bit more
(This used to be commit c83e4b1665)
2007-10-10 14:05:15 -05:00
Jelmer Vernooij
847e80dee9 r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies
(This used to be commit 6598efc6b3)
2007-10-10 14:04:20 -05:00
James Peach
cdae64b18c r15189: Add parentheses to force ISDOt and ISDOTDOT evaluation order. Fix typo
that made the BASE-DIR2 test fail.
(This used to be commit dcebc59a98)
2007-10-10 14:04:15 -05:00
James Peach
6ab33938d5 r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
(This used to be commit 7e4ad7e8e5)
2007-10-10 14:04:14 -05:00
Andrew Tridgell
84e00add26 r15032: change BENCH-NBENCH to always break to none, rather than accepting a
levelII break offer from the server.
(This used to be commit 7d7853476e)
2007-10-10 14:04:02 -05:00
Jelmer Vernooij
4a61e4901e r14999: Remove more unused autoconf code
Simplify va_copy() replacement code a bit
(This used to be commit a5c87360a7)
2007-10-10 14:04:00 -05:00
Andrew Tridgell
825579c36e r14936: remove a duplicate line
(This used to be commit fc11201ad1)
2007-10-10 14:00:19 -05:00
Jelmer Vernooij
ab9fb12e0b r14851: Make BOOL, False and True simple aliases to the POSIX-defined
bool, false and true (guaranteed to be defined by lib/replace)
(This used to be commit 53fa1bdb6e)
2007-10-10 13:59:42 -05:00
Jelmer Vernooij
c50125f6ef r14844: Support a stdbool.h replacement in lib/replace/
(This used to be commit bccfddcafa)
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
935af3eb19 r14724: Rearrange some source files, install more headers.
(This used to be commit 7146c1600f)
2007-10-10 13:59:14 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
83d8fd3dcf r14484: Install more headers
(This used to be commit 430c6516d3)
2007-10-10 13:57:31 -05:00
Stefan Metzmacher
9eb691c4c5 r14445: add FILE_NOTIFY_CHANGE_STREAM_* flags from:
http://ubiqx.org/cifs/rfc-draft/draft-leach-cifs-v1-spec-02.html#s4.3.7

tridge: there's also the buffering documented...

metze
(This used to be commit f1bdca2383)
2007-10-10 13:57:26 -05:00
Andrew Tridgell
0558619254 r14411: mark smb_panic() as a noreturn function using gcc attributes, which
tells static analysers that it behaves like abort()
(This used to be commit 3cde18beae)
2007-10-10 13:57:20 -05:00
Jelmer Vernooij
e5ea1d3691 r14384: Remove orpc code from includes.h
(This used to be commit 206d182cfb)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
61933e159c r14381: Kill structs.h
(This used to be commit 1ffb82a759)
2007-10-10 13:57:17 -05:00
Jelmer Vernooij
e3f2414cf9 r14380: Reduce the size of structs.h
(This used to be commit 1a16a6f1df)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c30513)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
227a789351 r14362: Only include ndr_compression.h when necessary.
(This used to be commit 4fced6dbbd)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
9865048bf4 r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
(This used to be commit 7213b7498e)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
7a121583b4 r14349: Kill proto.h!
Prototypes are now spread over multiple headers, usually one per subsystem.
This change is required to allow proper header dependencies later on,
without recompiling Samba each time the mtime of any source file changes.
(This used to be commit 3da79bf909)
2007-10-10 13:57:14 -05:00
Andrew Tridgell
8fd131a9d4 r14294: conditionally define _PUBLIC_, so you can disable it easily with -D_PUBLIC_=
(This used to be commit 6c6bd77ec2)
2007-10-10 13:57:09 -05:00
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 180a79d103)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
966cf4aece r14138: this isn't needed
metze
(This used to be commit bc905952eb)
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 b4c48a6107)
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 9820736804)
2007-10-10 13:52:38 -05:00
Jelmer Vernooij
17ae598141 r13938: Around round of splitups
(This used to be commit 2d655f0528)
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 1228358767)
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 c80a8f1102)
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 ba74f24e42)
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 d1bae931b3)
2007-10-10 13:52:17 -05:00
Jelmer Vernooij
4d8fe47f7f r13849: More improvements to the libutil docs.
(This used to be commit eed16ac3b7)
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 fe5eae0e98)
2007-10-10 13:52:15 -05:00
Stefan Metzmacher
4dcab29f51 r13811: nicer format...
metze
(This used to be commit 89f7a2b93f)
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 c6137a1af9)
2007-10-10 13:52:12 -05:00
Stefan Metzmacher
2debfc918c r13809: move ldb specific define
metze
(This used to be commit 6f47fcbd44)
2007-10-10 13:52:12 -05:00
Stefan Metzmacher
f2ab61b129 r13808: remove unused define
metze
(This used to be commit b639b814d9)
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 ba62880f5b)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
d3bcaf66a8 r13654: Move some more stuff out of include/
(This used to be commit 2ec7bba03a)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
10d88a02d7 r13652: Move some more stuff out off include/
(This used to be commit 26bf2a393b)
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 8aa8be93b0)
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 8866aa06ff)
2007-10-10 13:51:37 -05:00
James Peach
b98a5bf922 r13243: Bring __FUNCTION__ checks across from Samba 3.
(This used to be commit 92eec04962)
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 e3d0676aee)
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 898d15acbd)
2007-10-10 13:51:34 -05:00
Jelmer Vernooij
8adec6d363 r13158: Fix setup and ejs paths
(This used to be commit c3bc39bd71)
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 0eda8a3197)
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 a88933668f)
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
b3f2db5e01 r12844: don't include system headers directly
metze
(This used to be commit 75a98047d6)
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 5540509f10)
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 88198c4881)
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 243cf760b0)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
8d15aee017 r12799: print out function and location too
metze
(This used to be commit a5ef3eef9c)
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 ec7dbb5a98)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
db04cffbbf r12725: some minor updates
metze
(This used to be commit f2e97983f2)
2007-10-10 13:49:45 -05:00
Jelmer Vernooij
c975df527c r12711: Update copyrights
(This used to be commit a02b0c5568)
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
769eb7d3fe r12698: Declare model_ops (required for NetBSD)
(This used to be commit 5e6df39363)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 6391761601)
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 c722f665c9)
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 73610639b2)
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 e98d14668e)
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 0aca5fd513)
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 87f665a1d5)
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 60e11f5758)
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 c92ace494f)
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 b6d2ad4ce0)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
788f7cc59a r12489: Forward declare nbtd_iface_name
(This used to be commit cfaa52cdba)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
07b52f5cd9 r12454: Forward declare struct nbt_iface_name
(This used to be commit d54fea5d0e)
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 30861b0f0e)
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 e3466df6df)
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 272013438f)
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 4322962074)
2007-10-10 13:47:19 -05:00
Stefan Metzmacher
36acd6e79c r12200: - move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
  that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code

metze
(This used to be commit f0105b7fcd)
2007-10-10 13:47:17 -05:00
Stefan Metzmacher
35cb1931ed r12122: add forward declaration for packet_context
metze
(This used to be commit 2ea8e61f23)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
7416dd1889 r12022: add NBTD IRPC proxy calls for wins challenge and wins release demand,
used for replication conflicts

metze
(This used to be commit d7d14cb2bd)
2007-10-10 13:47:00 -05:00
Andrew Tridgell
6615907b94 r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and that
it only appeared to be like a SMBtrans request as it was being called
with function 0x11c017 which is "named pipe read write"

I wonder if this means we could do DCE/RPC over SMB using ntioctl
calls as well?
(This used to be commit f2b8857797)
2007-10-10 13:46:53 -05:00
Andrew Tridgell
1e3583475f r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
brainstorming this one.
(This used to be commit a969ad592a)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
c5f0eccaa1 r11892: forgot to commit these changes
(This used to be commit 07ee8ba126)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
2f74901802 r11891: - added pipe_flags field in smb2_trans
- while running dcerpc over SMB2, the server will occasionally send us
  a oh-so-useful STATUS_PENDING result meaning "I don't have a result
  for you yet, but I'm working on it". These can be discarded :-)
(This used to be commit 24588a9c49)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
310fa87509 r11888: - added SMB2 trans support
- added session key to SMB2

- renamed 'unknown2' in create to 'impersonation'
(This used to be commit aef915f312)
2007-10-10 13:46:41 -05:00
Volker Lendecke
8383a3459a r11885: Add forgotten files
(This used to be commit 470cc59529)
2007-10-10 13:46:41 -05:00
Andrew Tridgell
fc04e3e795 r11801: - added basic SMB2 find support
- added SMB2-SCANFIND test

- cleaned up continue flags in EAs and find requests
(This used to be commit 8792bc07d9)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
7d6f36682e r11800: - filled in unknown fields in SMB2 all_info level
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
(This used to be commit 8c7c54a46d)
2007-10-10 13:46:29 -05:00
Stefan Metzmacher
910d61bcd1 r11789: - add the start of a SMB2 server
- it does Negprot and SessionSetup yet
  the rest returns NT_STATUS_NOT_IMPLEMENTED
- it's off by default, enable with:
  smbsrv:enable smb2 = yes
- negotition in the SMB Negprot isn't supported yet
- it's only tested with smbtorture SMB2-CONNECT
  not with vista as client

metze
(This used to be commit 08b31d5f61)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
76bfa03815 r11772: - setfileinfo needs a smb2_handle for SMB2 support
- added smb2_setinfo to structs.h
(This used to be commit 5be1d33476)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
eedb92ce72 r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
(This used to be commit ba897e537b)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
c3cd4a0087 r11756: split out the parsers for the pass-through levels of QFSINFO and
QFILEINFO levels in trans2, so they can be shared with SMB2
(This used to be commit 5ca2d609e6)
2007-10-10 13:46:23 -05:00