Günther Deschner
a66bb0d8ec
s3-build: only link in drsuapi client code where needed.
...
Guenther
2010-08-25 23:04:21 +02:00
Günther Deschner
4dbb682bc5
s3-build: only link in ntsvcs client code where needed.
...
Guenther
2010-08-25 23:03:54 +02:00
Günther Deschner
50df1c6f87
s3-build: only link in winreg client code where needed.
...
Guenther
2010-08-25 23:03:23 +02:00
Günther Deschner
2af95fc88b
s3-build: only link in eventlog client code where needed.
...
Guenther
2010-08-25 22:56:59 +02:00
Günther Deschner
dc663295d1
s3-build: only link in spoolss client code where needed.
...
Shrinks a lot of binaries by 1 MB each.
Guenther
2010-08-25 22:56:29 +02:00
Michael Adam
3add3aa17d
s3:smbd: add a nfs backend for sysquotas.
...
This module is based on the Solaris/FreeBSD implementation
of NFS quotas in the quotas.c module.
It implements the SMB_USER_QUOTA_TYPE query of the
get_quotas call. The other types and the set_quota call
are not implemented.
2010-08-25 14:05:51 +02:00
Andreas Schneider
2eff142cce
s3-build: Use a wrapper script to run the tests.
...
This fixes the buildfarm and returns the correct exit code of selftest.
2010-08-25 12:39:52 +02:00
Andreas Schneider
0d9460a368
s3-build: Add a test-buildfarm target to stay UNIX Makefile compatible.
2010-08-22 23:04:28 +02:00
Stefan Metzmacher
922f33521e
s3:Makefile.in: use python with -u to disable stdin/out caching
...
metze
2010-08-20 18:09:23 +02:00
Simo Sorce
0a89722671
s3-ads: Remove unused function and file
2010-08-17 06:48:56 -04:00
Stefan Metzmacher
745f63fd1e
s3:rpc_client: remove unused cli_do_rpc_ndr* functions
...
metze
2010-08-16 14:30:18 +02:00
Stefan Metzmacher
dd16d3b2d6
s3:rpc_client: remove unused rpc_pipe_open_local()
...
metze
2010-08-16 14:30:17 +02:00
Andreas Schneider
3d447e0160
s3-test: Try to fix the build farm subunit parsing.
2010-08-15 13:17:36 +02:00
Michael Adam
a7ba9064d6
s3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()
2010-08-14 02:10:57 +02:00
Michael Adam
5a82cffb8b
s3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db
2010-08-14 02:10:57 +02:00
Michael Adam
e82ef14008
s3:idmap_tdb2: add rw_ops to idmap_tdb2_context and initialize in idmap_tdb2_db_init
2010-08-14 02:10:56 +02:00
Michael Adam
3b56f7f6b5
s3:winbind: remove the method REMOVE_MAPPING from winbind's API
...
Michael
2010-08-14 02:10:34 +02:00
Michael Adam
474020b1ae
s3:winbind: remove the method SET_MAPPING from winbind's API
...
Michael
2010-08-14 02:10:33 +02:00
Michael Adam
66e67c1bad
s3:winbind: remove SET_HWM from winbind's API.
2010-08-14 02:10:31 +02:00
Michael Adam
a8492d2a92
s3:test: add a new "valgrindtestenv" target, similar to gdbtestenv
...
this runs the daemins in xterm under valgrind instead of in gdb
2010-08-14 01:54:37 +02:00
Michael Adam
1bc1fbe5fd
s3:gdbtestenv: also start an xterm with nmbd. and start winbindd before smbd.
2010-08-14 01:52:41 +02:00
Michael Adam
40090d9b24
s3:gdbtestenv: also set the xterm's window title appropriately
2010-08-14 01:51:39 +02:00
Michael Adam
e051f3bd62
s3:gdbtestenv: print the server's name in the icontitle instead of "server"
2010-08-14 01:48:09 +02:00
Günther Deschner
f00b61c7d4
s3-selftest: move make test to selftest.
...
The old "make test" can be still called as "make oldtest".
Guenther
2010-08-13 18:30:50 +02:00
Günther Deschner
2c99eef355
s3-build: remove pointless RPC_PARSE_OBJ2.
...
Guenther
2010-08-13 16:04:41 +02:00
Björn Jacke
5390baeb6b
tdb: add TDB_DEPS variable filled with required libraries
...
This is required for Solaris, which needs to link in librt to make use of
fdatasync().
2010-08-13 14:57:44 +02:00
Günther Deschner
37177f1c05
s3-build: pointless to link in libads and dcutils into smbcacls.
...
Guenther
2010-08-13 13:55:52 +02:00
Günther Deschner
3f76555ebe
s3-build: separate out libads_printer.
...
Guenther
2010-08-13 12:02:06 +02:00
Stefan Metzmacher
56a6a972f2
s3:Makefile: link in dcerpc client stubs
...
metze
2010-08-12 14:31:23 +02:00
Stefan Metzmacher
2c0e296dd7
s3:rpc_client: add dcerpc_binding_handle backend
...
metze
2010-08-12 14:31:21 +02:00
Andrew Bartlett
1e83b36afb
libcli/auth Move some source3/ NTLMSSP functions to the common code.
...
libcli/auth Use true and false rather than True and False in common code
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-10 11:56:33 +02:00
Günther Deschner
e7a6a3ec0d
s3: avoid global include of ads.h.
...
Guenther
2010-08-05 00:32:02 +02:00
Günther Deschner
31c484edb9
s3-printing: move AD related printing components to an own file.
...
Guenther
2010-08-05 00:32:02 +02:00
Simo Sorce
0b24e8e869
s3-dcerpc: Add SPNEGO incapsulation for KRB5 auth
2010-07-30 14:55:27 -04:00
Simo Sorce
135a82e78f
s3-decrpc: Introduce gssapi support for dcerpc krb5 auth
2010-07-28 12:24:44 -04:00
Andreas Schneider
db2a777b0e
s3-printing: Added automatic migration of printing tdbs.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
35e03ef5c2
s3-printing: Move all tdb upgrade functions to a separate file.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
95f587a565
s3-printing: Removed unused printfsp.c.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
38d6274864
s3-smbd: Added code to print via spoolss.
2010-07-27 10:27:12 -04:00
Volker Lendecke
75db0f0a63
s3: Early start of an async nbench
...
The current nbench implementations have the problem that they fork a child
per simulated client. With hundreds or thousands of clients this can put
quite some load on the client. This test (when finished) will read the
standard dbench client.txt and run completely async from within one
process.
Volker
2010-07-26 23:10:39 +02:00
Simo Sorce
e958b39042
s3-auth: Move auth_ntlmssp wrappers in their own file
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:31 +10:00
Simo Sorce
628b57ca37
s3-dcerpc: Move common cli/srv functions into a common file
2010-07-17 15:01:11 -04:00
Günther Deschner
feb21905cb
s3-build: add LIBNDR_XATTR_OBJ.
...
Guenther
2010-07-17 00:37:08 +02:00
Simo Sorce
f4c6c7e7b8
Move the remnants of rpc_parse code under registry/
...
The registry code is the only last user of this code.
Move everything under registry/ and hope someone will get rid od
it completely from there in the future.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
67b6fe3dc3
s3-misc: Move smb_io_time() to regfio.c
...
This is the last file using this function and we do not want anyone
else to keep using hand marshalled stuff anyway.
So make it also private to that file.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:18 +02:00
Simo Sorce
bd19c964d5
s3-dcerpc: Move common helpers into a common file
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:17 +02:00
Simo Sorce
8246214e7e
s3-dcerpc: Remove unused functions and headers
...
parse_rpc.c is dead, long live parse_rpc.c !
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-16 01:51:16 +02:00
Günther Deschner
ea66d8e4a5
s3-dcerpc: link against ../librpc/rpc/dcerpc_util.c
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:09 +02:00
Andreas Schneider
5b5ee73ece
s3-build: Add a gdbtestenv environment for Samba3.
...
This will open 3 xterms; smbd with gdb, winbind with gdb and a window to
run client commands.
Example: make gdbtestenv SMBD_OPTIONS="-d2"
2010-07-09 15:42:34 +02:00
Günther Deschner
8def236f18
s3-libgpo: remove handmarshalled PReg parser from registry CSE.
...
Guenther
2010-07-07 15:27:11 +02:00
Günther Deschner
5f92bd863c
s3-registry: add preg.idl.
...
Guenther
2010-07-07 15:27:04 +02:00
Günther Deschner
2c1279f454
s3-build: some makefile cosmetics.
...
Guenther
2010-07-07 13:51:29 +02:00
Günther Deschner
2356496ac6
s3-build: add IDL_FILES variable.
...
Guenther
2010-07-07 13:51:29 +02:00
Günther Deschner
293d3eb545
s3-selftest: add "make testenv" target to Makefile.
...
Guenther
2010-07-06 20:07:32 +02:00
Andreas Schneider
bec184048e
s3-winbind: Added a common rpc_enum_dom_groups function.
2010-07-05 15:59:09 +02:00
Andreas Schneider
692cc06f0c
s3-winbind: Rename winbindd_rpc.c to winbindd_msrpc.c.
2010-07-05 15:59:08 +02:00
Andreas Schneider
e1c4b5bbe9
s3-winbind: Replace the passdb backend with a samr/lsa based backend.
2010-07-05 15:59:08 +02:00
Andreas Schneider
cc3d9dd042
s3-winbind: Added a skeleton for samr based functions.
...
The goal is to replace the passdb backend later.
2010-07-05 15:59:05 +02:00
Andreas Schneider
9fa7239907
s3-winbind: Initialize the server_info on winbindd start.
2010-07-05 15:59:05 +02:00
Günther Deschner
b37db757b6
s3-build: add idl_full to Makefile.
...
Guenther
2010-07-05 15:41:34 +02:00
Volker Lendecke
23790c9a8f
s3: Add sconn_server_id()
2010-07-05 11:06:24 +02:00
Volker Lendecke
8c0fbc4107
s3: Fix bug 7336: Enable idmap_passdb module build as shared
2010-07-04 10:04:25 +02:00
Günther Deschner
786198e523
s3-registry: remove unused reg_util_marshalling code.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
6625aada81
s3-libsmb: move change_trust_account_password out of smbd into libsmb.
...
Guenther
2010-06-30 21:46:08 +02:00
Günther Deschner
fe90496ce5
s3-build: allow to build bin/ndrdump4 (just as bin/smbtorture4)
...
Jelmer, please check.
Guenther
2010-06-16 14:42:23 +02:00
Simo Sorce
cbda0369a8
s3:winbindd use common server context functions
2010-06-10 17:30:45 -04:00
Simo Sorce
5e576a53ab
s3:lib make server contexts generic
...
Pair-programmed-with: Andreas Schneider <asn@samba.org>
2010-06-10 17:30:45 -04:00
Simo Sorce
22e9015e97
s3:rpc handles are used by all pipes, use better name
2010-06-07 17:25:48 -04:00
Andreas Schneider
15f64af8e3
s3-rpc: Create a file with all functions for a internal named pipe.
...
This makes it possible to use the samr rpc server in winbind without
linking in smbd.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:50 -04:00
Andreas Schneider
3344adc340
s3-rpc: Seperate rpc_srv_register for plain connection.
...
This will make it possible to create plain rpc named pipe connnections.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:43 -04:00
Andreas Schneider
9097bdddd0
s3-auth: Moved smbd user functions to a generic place.
...
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:37 -04:00
Björn Jacke
e8576ef9f4
ѕ3:Makefile: use PIC instead of PIE flags for shared libs
...
otherwise shared lib builds are broken on some platforms
2010-06-04 00:57:38 +02:00
Günther Deschner
4b342b73a6
s3-build: pure cosmetics, use better names for gen_ndr code pieces.
...
Guenther
2010-06-03 11:00:27 +02:00
Volker Lendecke
95863bfb5e
s3: Add vfs_linux_xfs_sgid
...
http://oss.sgi.com/bugzilla/show_bug.cgi?id=280 shows an old Linux XFS bug that
still exists: Under certain circumstances the SGID bit is not inherited.
2010-06-02 12:30:51 +02:00
Andrew Bartlett
dfb206f47e
s3:param Put 'server_role' functions in another file.
...
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-06-01 17:11:24 +10:00
Andrew Bartlett
62708fbd1b
s3:ntlmssp Move ntlmssp_sign.c from source3 to common code.
...
This needs a small re-arrangement of the supporting code.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-31 15:11:36 +02:00
Björn Jacke
a1b44f4335
s3: set pthread cflags in a more portable fashion
...
this avoids one place of a GNU make dependency.
Portable make sucks a bit as it has no way of defining variables for a limited
set of targets only. Manual duplication of target rules is the only way to
achieve what we need.
If someone actually knows a trick how to do this without target duplication,
let me know.
2010-05-30 16:25:28 +02:00
Björn Jacke
30c74cfa49
Revert "s3: Attempt to fix the non-gnumake build"
...
This reverts commit 086c6c0e9a
, it broke some
builds. The following commit should also remove the gmake dependency.
2010-05-30 16:25:28 +02:00
Andrew Bartlett
539ef13bfe
s3:lib split out global workgroup and netbios name functions.
...
Having these in their own file allows easier selective inclusion.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:27 +02:00
Andrew Bartlett
6f279de0e6
s3:smbd split reload services/printers functions from server.c
...
This helps vfstest, as it previously had duplicate copies of these
functions.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:26 +02:00
Andrew Bartlett
8bc32513da
s3:smbd split smbd/server.c into smbd/server.c and smbd/server_exit.c
...
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:25 +02:00
Stefan Metzmacher
4afa54fd53
s3:Makefile.in: add npa_tstream.o to the build of smbd
...
metze
2010-05-27 07:13:58 +02:00
Günther Deschner
2807ab358e
s3-samr: move chgpasswd.c out of smbd and into the samr server.
...
Guenther
2010-05-26 22:17:02 +02:00
Björn Jacke
9b1daa78cf
s3:Makefile: add missing linker flags for smbfilter
...
this should fix the AIX build
2010-05-26 17:23:28 +02:00
Björn Jacke
60cba59ff8
s3:Makefile: fix a typo in flag variable name
2010-05-26 17:23:28 +02:00
Michael Adam
36b74e03cf
s3:registry: rename lib/util_reg_api.c to registry/reg_util_marshalling.c
2010-05-25 10:35:27 +02:00
Michael Adam
773255ba50
s3:registry: rename reg_util.{c,h} to reg_util_internal.{c,h}
2010-05-25 10:35:27 +02:00
Michael Adam
e3f7fab668
s3:registry: move registry_create_admin_token() to new reg_util_token.c
2010-05-25 10:35:26 +02:00
Björn Jacke
4c659433c0
s3:Makefile: set PIE flags also for nss_winbind
2010-05-24 13:51:28 +02:00
Björn Jacke
5f0a2a15d8
s3:Makefile: position independency is also needed for shared libs
2010-05-24 12:25:02 +02:00
Björn Jacke
857ca4176a
s3:build: don't use pieflags twice - ldflags already have them
2010-05-24 12:24:56 +02:00
Volker Lendecke
9d1a08032b
s3: Next step to fix the build on OpenSolaris
2010-05-23 00:15:49 +02:00
Volker Lendecke
086c6c0e9a
s3: Attempt to fix the non-gnumake build
...
Björn, please check!
2010-05-22 20:06:16 +02:00
Günther Deschner
b75384546a
librpc: finally merge ndr_string.c.
...
Guenther
2010-05-20 13:57:22 +02:00
Andrew Bartlett
7a8e34fe86
s3:split secrets.c to put machine account secrets in a new file
...
This helps the s3compat effort by allowing these functions to be
replaced by functions that query the cli_credentials and secrets.ldb
APIs.
Also, this changes a couple of DOM_SID to struct dom_sid along the
way.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 21:39:42 +02:00
Günther Deschner
9bbf761bfe
s3-net: Added a rather trivial "net printing dump" command.
...
Guenther
2010-05-18 15:06:17 +02:00
Jelmer Vernooij
2cc612cb6b
s3-selftest: Allow overriding the subunit formatter.
...
(e.g. "make selftest SUBUNIT_FORMATTER=cat")
2010-05-16 00:21:19 +02:00
Simo Sorce
f36396f90f
Move standard printcap parsing to print_standard.c
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-14 14:14:55 +02:00
Stefan Metzmacher
6427484f84
s3:build: build smbtorture4 when the merged build is selected
...
metze
2010-05-13 19:42:25 +02:00
Andrew Bartlett
7f70b53dd6
s3:Winbindd Move winbindd_event_context to a different file
...
This allows this function to be easily replaced in s3compat
Andrew Bartlett
2010-05-13 10:12:26 +10:00
Stefan Metzmacher
4fcd5446d3
s3:Makefile: build smbtorture4 as static binary with socket_wrapper support
...
metze
2010-05-11 16:11:37 +02:00
Jelmer Vernooij
ed39e9b67f
s3: Work around dependency bug in Samba 4 waf build in merged build.
2010-05-10 14:48:41 +02:00
Günther Deschner
b83ab96b16
s3-passdb: moving account_pol.c into passdb.
...
Guenther
2010-05-08 01:45:27 +02:00
Jelmer Vernooij
961993bc91
s3-merged: Make sure bin/ exists when copying in bin/smbtorture4.
2010-05-07 18:34:00 +02:00
Jelmer Vernooij
169aabae70
s3-merged: Use newly added waf reconfigure subcommand.
2010-05-07 18:34:00 +02:00
Jelmer Vernooij
95421552be
Reintroduce merged build, using waf to build smbtorture4.
2010-05-07 18:34:00 +02:00
Jelmer Vernooij
c18d58b854
samba3: Generate C files from IDL in source3/librpc/gen_ndr rather than
...
librpc/gen_ndr.
This is done to make it possible to run waf in the source4/ tree at
the same time, since waf has problems with files that were generated by
something else.
2010-05-07 18:34:00 +02:00
Jelmer Vernooij
fc336590dc
Remove the copy of ldb from Samba 3.
...
There were two utility functions that other parts of Samba 3
still relied on; they have been moved to lib/ldb_compat.[ch].
2010-05-06 11:34:30 +02:00
Andrew Tridgell
10469d6606
s3-build: don't rebuild/link on every make run
2010-05-05 16:14:13 +02:00
Andrew Tridgell
6f895fedf3
s3-idl: auto-build IDL files in Samba3
2010-05-04 13:47:07 +02:00
Günther Deschner
6864828d9d
s3: use shared registry functions.
...
Guenther
2010-04-27 16:42:15 +02:00
Volker Lendecke
f2f0fed8aa
s3: Convert WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP to the new async API
2010-04-23 23:41:04 +02:00
Volker Lendecke
5aa88782ce
libwbclient: remove async libwbclient and talloc from libwbclient.so
...
Except for tests there is right now no active user of this. We can easily
re-add this when smbd makes more use of it.
2010-04-19 14:27:24 +02:00
Volker Lendecke
9d0629d155
s3-winbind: Allow changing the password for pdb
2010-04-19 14:27:20 +02:00
Volker Lendecke
45eeed2893
s3: Convert WINBINDD_PAM_LOGOFF to the new async API
2010-04-19 14:27:20 +02:00
Volker Lendecke
518a4f5423
s3: Convert WINBINDD_PAM_CHAUTHTOK to the new async API
2010-04-19 14:27:20 +02:00
Volker Lendecke
d869e7a0d8
s3: Convert WINBINDD_PAM_AUTH_CRAP to the new async API
2010-04-19 14:27:19 +02:00
Volker Lendecke
61ec0f571a
s3: Convert WINBINDD_PAM_AUTH to the new async API
2010-04-19 14:27:19 +02:00
Volker Lendecke
577bceb19b
s3-winbind: Authenticate SAM users
2010-04-13 21:21:34 +02:00
Volker Lendecke
b8829e74fd
s3: Move [make|free]_user_info to auth/user_info.c
2010-04-11 22:59:47 +02:00
Volker Lendecke
18909879cc
s3: Move make_server_info_sam to auth/server_info_sam.c
2010-04-11 22:59:47 +02:00
Volker Lendecke
80708b75f8
s3: Move make_server_info to auth/server_info.c
2010-04-11 22:59:46 +02:00
Volker Lendecke
5792ccc7c8
s3: Move check_sam_security to auth/check_sam.c
2010-04-11 22:59:46 +02:00
Andreas Schneider
4f3893f814
s3-spoolss: Added a function to open a regkey using the winreg pipe.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Jelmer Vernooij
08161e093d
selftest: Convert filter-subunit to Python so the subunit Python module
...
can be used later.
2010-03-31 02:20:07 +02:00
Jelmer Vernooij
ef3fb75261
selftest: Replace perl subunit formatter with python subunit formatter,
...
so we can leverage the work happening in python-subunit.
2010-03-30 01:08:20 +02:00
Jelmer Vernooij
b607f99688
Remove extension from format-subunit.
2010-03-28 21:46:58 +02:00
Stefan Metzmacher
b82f168c3c
s3:librpc: remove unused stuff
...
metze
2010-03-19 17:05:46 +01:00
Holger Hetterich
5b7179d2a3
Add smbta-util to manage the encryption key.
...
This program allows the administrator to enable or disable AES
encryption when using vfs_smb_traffic_analyzer. It also generates new
keys, stores them to a file, so that the file can be reused on another
client or server.
2010-03-16 09:52:10 -04:00
Volker Lendecke
89c785c47a
s3: Fix a long-standing problem with recycled PIDs
...
When a samba server process dies hard, it has no chance to clean up its entries
in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb.
For locking.tdb and brlock.tdb Samba is robust by checking every time we read
an entry from the database if the corresponding process still exists. If it
does not exist anymore, the entry is deleted. This is not 100% failsafe though:
On systems with a limited PID space there is a non-zero chance that between the
smbd's death and the fresh access, the PID is recycled by another long-running
process. This renders all files that had been locked by the killed smbd
potentially unusable until the new process also dies.
This patch is supposed to fix the problem the following way: Every process ID
in every database is augmented by a random 64-bit number that is stored in a
serverid.tdb. Whenever we need to check if a process still exists we know its
PID and the 64-bit number. We look up the PID in serverid.tdb and compare the
64-bit number. If it's the same, the process still is a valid smbd holding the
lock. If it is different, a new smbd has taken over.
I believe this is safe against an smbd that has died hard and the PID has been
taken over by a non-samba process. This process would not have registered
itself with a fresh 64-bit number in serverid.tdb, so the old one still exists
in serverid.tdb. We protect against this case by the parent smbd taking care of
deregistering PIDs from serverid.tdb and the fact that serverid.tdb is
CLEAR_IF_FIRST.
CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not
work when all smbds are restarted. For this, "net serverid wipe" has to be run
before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up
sessionid.tdb and connections.tdb.
While there, this also cleans up overloading connections.tdb with all the
process entries just for messaging_send_all().
Volker
2010-03-10 16:07:10 +01:00
Björn Jacke
a4dc50ef12
s3: add missing Makefile.in changes for vfs_crossrename
2010-03-08 17:53:18 +01:00
Jeff Layton
f4cb528ac5
samba: remove cifs-utils tools from build systems
...
Now that cifs-utils are their own project, we need to go ahead and pull
them out of the samba tree. This patch represents the first step toward
that end.
Remove the cifs-utilities from the source3 and source4 builds. Please
pay particular attention to the source4 piece. I'm not at all familiar
with the build system there, and would appreciate someone sanity
checking my changes.
It also adds a small README.cifs-utils file in the topdir. This is
optional, but I think it's a good idea to carry this for a release or
two.
Once this patch looks ok, I'll plan to do another patch to actually
remove the client dir and the relevant docs-xml files from the tree
altogether.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-03-08 09:06:40 -05:00
Matthieu Patou
92785f9af6
s3: Fix build file due to file move. Use the new path of iniparser
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:39 +01:00
Matthieu Patou
1af5a6d359
s3: Allow pam_winbind.c to build without localedir.c
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:38 +01:00
Michael Adam
6fa767fbb2
s3: build sddl.c in samba3
2010-03-03 09:16:35 +01:00
Simo Sorce
be026a6fd8
s3:groupmap revert to tdb storage
...
Group mapping needs to be cluster aware, and this means using the tdb backend.
Remove ldb group mapping as this is not cluster aware.
2010-03-01 16:09:58 -05:00
Volker Lendecke
d6a6872506
s3: Abstract access to sessionid.tdb, similar to conn_tdb.c
2010-03-01 17:53:22 +01:00
Simo Sorce
3b12c38ac0
s3:schannel streamline interface
...
Make calling schannel much easier by removing the need to explicitly open the
database. Let the abstraction do it instead.
2010-02-23 12:46:50 -05:00
Simo Sorce
61b7a24f16
s3 move the sitename cache in its own file
2010-02-23 12:46:26 -05:00
Kai Blin
b99d9f86e4
libwbclient: Separate out the async functions
2010-02-13 14:30:36 +01:00
Volker Lendecke
4c1c3f2549
s3: Implement global locks in a g_lock tdb
...
This is the basis to implement global locks in ctdb without depending on a
shared file system. The initial goal is to make ctdb persistent transactions
deterministic without too many timeouts.
2010-02-12 23:12:09 +01:00
Björn Jacke
55d65ba721
s3:nsswitch: also use pthread CFLAGS for the nsswitch modules that might require it
2010-02-04 11:03:55 +01:00
Björn Jacke
acedd1c832
s3: fix build on Tru64 after it broke with deactivating pthread pool support
2010-02-04 10:37:17 +01:00
Björn Jacke
a20b43f23f
s3: link thread objects in libsmbclient only and adjust linker flags
2010-01-29 15:26:36 +01:00
Lars Müller
2f9eb6bff5
s3: Install and uninstall the static version of libwbclient
...
This requires to call configure with --enable-static which isn't the case
by default.
2010-01-27 22:40:19 +01:00
Lars Müller
2dd301e5cd
Add dependency of bin/smbfilter to libwbclient.
2010-01-26 22:54:15 +01:00
Björn Jacke
5439e1a03f
s3: fix detection and flags for using pthread
...
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26 00:19:10 +01:00
Volker Lendecke
ff0274c519
s3: Add NTLMSSP_FEATURE_CCACHE
...
Uses the winbind ccache to do authentication if asked to do so
2010-01-24 20:32:17 +01:00
Olivier Sessink
31e142854b
s3: Add the "scannedonly" vfs virus scanner interface module
2010-01-12 22:57:18 +01:00
Volker Lendecke
6f0e7b9465
s3: Trim libnss_wins.so
2010-01-10 13:37:40 +01:00
Volker Lendecke
0f9268bde9
s3: Trim down some utilities a bit
2010-01-10 13:28:08 +01:00
Volker Lendecke
283a73ca9f
s3: Trim down smbcontrol a bit
2010-01-03 21:14:58 +01:00
Andrew Bartlett
ba2cfceb96
libcli/auth Make gd's NDR NTLMSSP parsers helpers common
...
(but not built in Samba4 for now)
2009-12-22 21:07:51 +01:00
Volker Lendecke
9b6b01aab6
s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dc
...
This just does a NULL RPC call through an existing NETLOGON connection. If
someone knows an operation that "just works" and does not return NOT_SUPPORTED,
please tell me :-)
2009-12-21 23:23:52 +01:00
Volker Lendecke
c25d9ad73d
s3: Remove unused winbindd_dual_userinfo
2009-12-21 16:27:19 +01:00
Michael Adam
6dd60008c4
s3:add split_tokens, a cmdline tool to test next_token_talloc()
...
Michael
2009-12-01 00:55:53 +01:00
Michael Adam
92547d2873
s3:fix linking of the t_str* test programs
...
Michael
2009-12-01 00:55:35 +01:00
Michael Adam
b82f6855a2
s3:fix linking of libbigballofmud (on my box at least)
...
Michael
2009-12-01 00:55:35 +01:00
Volker Lendecke
7bbee8dc17
s3: Add a regression test for bug 6898
2009-11-29 16:12:51 +01:00
Günther Deschner
d6c60f8447
s3-nsstest: drastically shrink size and dependencies of nsstest binary.
...
The size went down from 6.4M to 104K on my box.
Guenther
2009-11-27 10:47:11 +01:00
Michael Adam
8353d47e9b
s3: add dbwrap_torture - a tool to stress test tdb transactions through dbwrap
...
This can be used to also test tdb transactions on clustered installations
throught ctdb. The test is modeled after the ctdb_transaction.c test program
from the ctdb source code. It runs transactions in a tight loop on a test
database called "transactions.tdb" (by default), increasing a counter in each
iteration. In a clustered environment, a counter is maintained for each node.
Michael
2009-11-23 23:51:40 +01:00
Günther Deschner
eea5a166e7
s3-build: delete more object files for "make clean".
...
Guenther
2009-11-20 15:49:48 +01:00
Günther Deschner
fc9f199f26
s3-build: really fix build of winbind_krb5_locator.
...
Guenther
2009-11-19 13:48:44 +01:00
Günther Deschner
bf45447aaa
s3-build: make sure to remove libds and client object files on make clean.
...
Guenther
2009-11-19 13:48:33 +01:00
Andrew Bartlett
7a290130bd
lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.
...
Andrew Bartlett
2009-11-02 16:36:52 +11:00
Björn Jacke
a80a0b7728
s3:Makefile: add LIBREPLACE_LIBS for talloc, tdb and wbclient
2009-10-31 10:37:44 +01:00
Björn Jacke
4ae950d211
ѕ3:buildsystem: fix depenencies for libreplace
...
This problem became visible after adding the picky -z defs linker option: On
Solaris libreplace had unresolved symbols, which showed up in the libtalloc
build. PAM_WINBIND_EXTRA_LIBS and WINBIND_NSS_EXTRA_LIBS had been workarounds
to make things work at two placeѕ. These variables have been obsoleted now.
This patch introduces LIBREPLACE_LIBS which contans the linker flags needed for
linking anything using libreplace.
2009-10-31 00:48:20 +01:00
Günther Deschner
184afaa04c
s3-secrets: use autogenerated code for TRUSTED_DOM_PASS struct parsing from a tdb.
...
Guenther
2009-10-29 10:49:39 +01:00
Günther Deschner
e92e33238c
s3: add secrets.idl.
...
Guenther
2009-10-29 10:49:35 +01:00
Stefan (metze) Metzmacher
25f96a4058
Add in Metze's new code to ndr encode the user.DOSATTRIB
...
blobs. Next I'll change the create timestamp and dos attribute
code to use this.
2009-10-28 15:42:47 -07:00
Björn Jacke
78a5e26783
s3:Makefile: add some explicit dependencies to libc
...
Add libc as explicit dependency where we use "-z defs" linker flags. This is
to silence the Sun linker. Otherwise it whines:
malloc ... (symbol belongs to implicit dependency /lib/libc.so.1)
2009-10-21 22:50:39 +02:00
Günther Deschner
b9d9353b54
nsswitch: fix the build of the winbind krb5 locator plugin.
...
Guenther
2009-10-21 02:56:18 +02:00
Jeremy Allison
c79e2ff69a
Fix the pam_smbpass.so build with the recent linker flag changes.
...
Jeremy.
2009-10-20 13:09:42 -07:00
Björn Jacke
205284c904
s3:Makefile: rename LDSHFLAG variables to make meaning more obvious
2009-10-20 20:47:22 +02:00
Björn Jacke
f96f8f9c77
s3: make unresolved symbols in libs throw errors
...
except for the Samba internal plugins unresolved symbol references should not
show up in shared libraries. For historical reasons it's the default behaviour
of linkers to ignore those in shared libs. We use -z defs (alias
--no-undefined) to not ignore them in shared libs.
2009-10-20 10:52:06 +02:00
Björn Jacke
438f400680
s3: allow using different LDFLAGS for internal libs/plugins
...
internal libs have unresolved symbols intentionally.
Thanks to Buchan Milne for suggestion and patch. This addresses #6792 .
2009-10-20 10:52:06 +02:00
Günther Deschner
e8e1d60941
s3-libnetapi: add I_NetLogonControl{2} skeleton.
...
Guenther
2009-10-16 10:50:28 +02:00
Günther Deschner
449ab398f5
s3-spnego: Fix Bug #6815 . Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
...
When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP),
we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus
failing spnego_parse_auth() completely.
By just using the shared spnego/asn1 code, we get the parsing the correct way.
Guenther
2009-10-15 14:41:22 +02:00
Günther Deschner
a3306e352d
s3-winbindd: add wbint_ChangeMachineAccount implementation.
...
Guenther
2009-10-13 12:42:44 +02:00
Björn Jacke
76f73c73ea
s3: make linking of libwbclient --as-needed safe
...
Partly fixes #6791 . Thanks to Buchan Milne!
2009-10-09 00:24:18 +02:00
Björn Jacke
984d001cae
s3:Makefile: another attempt to fix the wbclient dependency
...
in the dependencies we always used a variable that was not jet defined.
2009-10-04 02:20:21 +02:00
Björn Jacke
71229dde1e
s3:Makefile: another attempt to fix the netapi dependency
...
in the dependencies we always used a variable that was not jet defined.
2009-10-04 02:20:21 +02:00
Björn Jacke
a45716400d
s3:Makefile: another attempt to fix the tdb dependency
...
in the dependencies we always used a variable that was not jet defined.
2009-10-04 02:20:21 +02:00
Björn Jacke
da597f2df0
s3:Makefile: another attempt to fix the talloc dependency
...
in the dependencies we always used a variable that was not jet defined.
2009-10-04 02:20:21 +02:00
Björn Jacke
63dedac08f
Revert "s3:Makefile: fix talloc dependencies with static build (2nd try)"
...
This reverts commit b60d87c207
.
2009-10-04 02:20:20 +02:00
Björn Jacke
19794ea541
Revert "s3:Makefile: fix libtdb dependencies with static build"
...
This reverts commit da15726630
.
2009-10-04 02:20:20 +02:00
Björn Jacke
be348842f5
Revert "s3:Makefile: fix libwbclient dependencies with static build"
...
This reverts commit d7795f2afa
.
2009-10-04 02:20:20 +02:00
Björn Jacke
eae87ffb3f
Revert "s3:Makefile: fix libnetapi dependencies with static build"
...
This reverts commit 110897a057
.
2009-10-04 02:20:20 +02:00
Björn Jacke
777143ef53
s3:Makefile: minor clean up
2009-10-03 00:22:54 +02:00
Björn Jacke
110897a057
s3:Makefile: fix libnetapi dependencies with static build
...
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
fbb6571367
s3:Makefile: eventlogadm dependency cleanup
...
no need to link against popt lib
2009-10-03 00:22:53 +02:00
Björn Jacke
d7795f2afa
s3:Makefile: fix libwbclient dependencies with static build
...
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
da15726630
s3:Makefile: fix libtdb dependencies with static build
...
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
b60d87c207
s3:Makefile: fix talloc dependencies with static build (2nd try)
...
When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that we depend on, libtalloc finally is the target to depend on.
2009-10-03 00:22:52 +02:00
Björn Jacke
99c4480674
Revert "s3:Makefile: fix talloc dependencies with static build"
...
This reverts commit 2af2334522
.
a more correct way to fix the libtalloc dependencies follows
2009-10-03 00:22:52 +02:00
Björn Jacke
7124b4fbeb
s3:Makefile: libsmbsharemode dependency cleanup
...
no need to link against ldap and krb5 libs
2009-10-03 00:22:52 +02:00
Björn Jacke
09936d52d2
s3:Makefile: net utility dependency cleanup
...
no need to link against iniparser lib
2009-10-03 00:22:52 +02:00
Björn Jacke
2af2334522
s3:Makefile: fix talloc dependencies with static build
...
When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that make the dependencies are. Obnox, pleaѕe check!
2009-10-01 19:27:37 +02:00
Günther Deschner
cd82d4ba56
s3: add perfcount idl and generated files.
...
Guenther
2009-10-01 12:19:43 +02:00
Günther Deschner
c6a7ecf28b
s3-registry: move rpccli_winreg_Connect to the only file it belongs.
...
Guenther
2009-10-01 11:40:31 +02:00