Andreas Schneider
de775244a9
s3-epmapper: Shutdown the embedded epmapper cleanly.
2011-03-23 17:19:22 +01:00
Andreas Schneider
661ac49794
s3-epmapper: Added a cleanup function.
2011-03-23 17:19:22 +01:00
Andreas Schneider
da718a5961
s3-epmapper: Use DCERPC_AUTH_LEVEL_CONNECT for ep ncalrpc.
2011-03-23 17:19:22 +01:00
Andreas Schneider
3766f3ec0e
s3-rpc_server: Rename system_user to ncalrpc_as_system.
2011-03-23 17:19:22 +01:00
Volker Lendecke
177df3c25b
s3: Fix a shadowed declaration warning
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 23 17:19:01 CET 2011 on sn-devel-104
2011-03-23 17:19:01 +01:00
Volker Lendecke
67fa593ade
s3: Include prctl where it is actually used
2011-03-23 16:30:28 +01:00
Volker Lendecke
da8d36ce96
s3: Attempt to fix the build on FreeBSD
2011-03-23 16:30:27 +01:00
Volker Lendecke
cfa8b36632
s3: Fix Coverity ID 2201, NULL_RETURNS
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 23 13:06:20 CET 2011 on sn-devel-104
2011-03-23 13:06:20 +01:00
Volker Lendecke
e88b9df78b
s3: Fix Coverity ID 2202, NULL_RETURNS
2011-03-23 12:19:57 +01:00
Volker Lendecke
e6d76ba832
s3: Fix Coverity ID 2203, NULL_RETURNS
2011-03-23 12:19:56 +01:00
Volker Lendecke
429e84f0d4
s3: Fix a (invalid) uninitialized variable warning
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 23 11:13:14 CET 2011 on sn-devel-104
2011-03-23 11:13:14 +01:00
Andrew Bartlett
41051fd3d3
lib/util: Merge basic string length and comparison functions
...
These functions now use the codepoints for more accurate string
handling and now form common code.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 23 08:21:54 CET 2011 on sn-devel-104
2011-03-23 08:21:54 +01:00
Andrew Bartlett
89fd1cb767
s3-lib prepare Samba3 to use common codepoint based string functions
...
This patch changes the source3 util_str.c functions so that the next
patch just contains the move into common code, without code changes.
Andrew Bartlett
2011-03-23 17:32:44 +11:00
Andrew Bartlett
d73db405f7
s3-safe_string: Add checked_strlcpy()
...
This is strlcpy, just with an extra check of the parameters with
sizeof(), use only where that works.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 23 03:39:35 CET 2011 on sn-devel-104
2011-03-23 03:39:35 +01:00
Andrew Bartlett
1d22c3919d
s3-safe_str: Futher simplify the macros by removing indirection
...
Now that we don't need to pass in the function name and string,
another level of indirection can be safely removed, and the operation
of these macros made much clearer.
Andrew Bartlett
2011-03-23 12:49:39 +11:00
Andrew Bartlett
1923b78209
s3-lib Remove the clobber_region() code.
...
This code wrote to the full buffer in fstrcpy(), pstrcpy() and other
fixed-length string manipulation functions.
The hope of this code was to find out at run time if we were mixing up
pstring and fstring etc, and to record where this came from. It has a
runtime performance impact (particularly if compiled with
--enable-developer).
It is being removed because of the complexity it adds, and the
distinct lack of bugs that this complexity has been credited in
finding.
The macro-based compile-time checking of string sizes remains.
Andrew Bartlett
2011-03-23 12:49:39 +11:00
Andrew Tridgell
7aef9c3fe0
s3-config: say which config file we failed to open
...
saves having to strace it to work that out
2011-03-23 12:19:29 +11:00
Andrew Tridgell
6e8b6358ec
fault: fixed smb_panic() prototypes
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Mar 23 01:51:44 CET 2011 on sn-devel-104
2011-03-23 01:51:44 +01:00
Andrew Tridgell
580997ede0
fault: get fault.c ready for use by s4
...
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c,
and uses a function pointer to setup which smb_panic call to use
2011-03-23 11:03:57 +11:00
Andrew Tridgell
058c3bb923
fault: moved s3 fault.c to top level
2011-03-23 11:03:57 +11:00
Michael Adam
f50a25cc8d
s3:idmap: make sure that the id mapping system is initialized for first access
2011-03-22 22:49:58 +01:00
Michael Adam
0109604f53
s3:loadparm: set the default "idmap config * : backend" in initialize_globals().
2011-03-22 22:49:58 +01:00
Michael Adam
ac8836e77f
s3:loadparm: deprecate "idmap uid/gid/backend" and have them set "idmap config * : range/backend"
2011-03-22 22:49:57 +01:00
Michael Adam
474f6a0f75
s3:loadparm: remove unused parameter "idmap read only".
...
This has not been released yet and is now useless since we
use the "idmap config * : read only = ..." syntax.
2011-03-22 22:49:57 +01:00
Michael Adam
ae5d35b09e
s3:idmap: remove (now) unneeded function parse_idmap_module()
2011-03-22 22:49:57 +01:00
Michael Adam
efc1d38b32
s3:idmap: simply call idmap_init_named_domain for "*" in idmap_init_default_domain
...
The default domain "*" is now treated exactly the same as other explicitly
configured domains.
2011-03-22 22:49:57 +01:00
Michael Adam
ca8c493bfd
s3:idmap: remove passdb argument from idmap_init_domain()
2011-03-22 22:49:57 +01:00
Michael Adam
82853a613b
s3:idmap: remove the params argument from the init function
2011-03-22 22:49:56 +01:00
Michael Adam
98854207fe
s3:idmap: remove special treatment of domain "*" from idmap_ldap_init.
...
The default config via domain "*" is now treated just as the explicit
domain configs.
2011-03-22 22:49:56 +01:00
Michael Adam
7511f080b4
s3:idmap: remove use of params from idmap_ldap_init - it is not used any more
2011-03-22 22:49:56 +01:00
Michael Adam
0a3627d249
s3:idmap: remove the special treatment of the default domain "*" from idmap_init_domain
2011-03-22 22:49:56 +01:00
Andrew Tridgell
c8297073db
s3-fault: removed the cont_fn from fault_setup()
...
cont_fn() was supposed to be a way to continue after a seg fault. It
could never be called however, as smb_panic() from fault_report()
could never return, as dump_core() never returns at the end of
smb_panic()
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
2011-03-22 05:07:58 +01:00
Stefan Metzmacher
f0ec69b535
s3:smbd: access checks should not depend on share mode flags
...
metze
2011-03-21 22:35:19 +01:00
Volker Lendecke
16155812e0
s3: Fix Coverity ID 1048, CHECKED_RETURN
...
This is a real bug: tevent_req_set_endtime already calls tevent_req_nomem.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 21 16:29:22 CET 2011 on sn-devel-104
2011-03-21 16:29:22 +01:00
Volker Lendecke
8dc93bed09
s3: Fix Coverity ID 770, REVERSE_INULL
...
We dereference "res" in various places, no point in checking. All current
callers send "res!=NULL".
2011-03-21 15:40:10 +01:00
Volker Lendecke
4828feddb7
s3: Fix early tldap_search cancels
...
A callback of tldap_search_send might not interested in the rest of the results
and could do a TALLOC_FREE of the search request. In this case, "subreq" is
already free'ed. So we have to set it to pending before the callback is called.
The TALLOC_FREE of the search request will set it to non-pending again via
tldap_msg_destructor.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 20 11:26:57 CET 2011 on sn-devel-104
2011-03-20 11:26:57 +01:00
Stefan Metzmacher
daddccb514
s3:smbd: remove uses of "./" in unlink_internals()
...
Commit 78b931ce6c
tried to do that,
but didn't have any effect.
metze
2011-03-19 10:10:25 +01:00
Christian Ambach
ed46dfc4f1
s3: use getgrset() when it is available
...
When getgrouplist() is not defined, use getgrset() if it is defined
instead of using the initgroups() + getgroups() combo
Major contributions from Yannick Bergeron <yaberger@ca.ibm.com>
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar 19 10:09:38 CET 2011 on sn-devel-104
2011-03-19 10:09:38 +01:00
Günther Deschner
33b8d0a6ff
s3-waf: use HAVE_ADS env to decide whether to build libads.so
...
Guenther
2011-03-19 00:11:18 +01:00
Günther Deschner
c53e7f8d58
s3-build: use HAVE_ADS define in some more places.
...
Guenther
2011-03-19 00:11:18 +01:00
Jeremy Allison
89b6af0982
SMB2 renames return SHARING_VIOLATION if there is any existing oplock on a file.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar 18 23:39:49 CET 2011 on sn-devel-104
2011-03-18 23:39:49 +01:00
Volker Lendecke
4b347a1b17
s3: Add "print notify backchannel" parameter to prevent us doing the reverse print notify connection.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar 18 21:34:30 CET 2011 on sn-devel-104
2011-03-18 21:34:30 +01:00
Christian Ambach
8ae1f32229
s3:autorid make sure we set the mapping status correct on early exit
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 18 16:30:36 CET 2011 on sn-devel-104
2011-03-18 16:30:36 +01:00
Volker Lendecke
5006dcff4e
idmap-autorid: Slightly simplify idmap_autorid_get_domainrange
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:37 +01:00
Volker Lendecke
3947845041
idmap-autorid: Slightly simplify idmap_autorid_get_domainrange
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:37 +01:00
Volker Lendecke
6e9fb07958
idmap-autorid: Remove an unused variable
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:37 +01:00
Volker Lendecke
10953c60bd
idmap-autorid: Use talloc_tos() in idmap_autorid_id_to_sid
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
6ba85beeec
idmap-autorid: Remove an else branch
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
6ab0d8b998
idmap-autorid: Remove an unused variable
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
d1970a8da9
idmap-autorid: Remove an unused parameter
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
f0abb3f3f8
idmap-autorid: Use talloc_tos() in idmap_autorid_sids_to_unixids
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
db3f8ae2bf
idmap-autorid: Not necessary to talloc domaincfg
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
a94cc222bd
idmap-autorid: Not necessary to talloc domainsid
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2011-03-18 15:46:36 +01:00
Volker Lendecke
3e4879f3bd
s3: Cope with 192.168.1.1/24 in smbcontrol ip-dropped
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 18 14:56:38 CET 2011 on sn-devel-104
2011-03-18 14:56:38 +01:00
Günther Deschner
4e0521300f
s3-waf: enable nss_winbind in make test for nss_wrapper.
...
Guenther
2011-03-18 13:22:07 +01:00
Günther Deschner
fa8471a616
s3-registry: remove some unused headers.
...
Guenther
2011-03-18 13:22:07 +01:00
Stefan Metzmacher
2f048e458b
s3:locking: simplify the non cluster case of brl_get_locks_readonly()
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar 18 13:00:51 CET 2011 on sn-devel-104
2011-03-18 13:00:51 +01:00
Stefan Metzmacher
e8411d6f9f
s3:locking: brl_get_locks_internal() should not expose a write lock if the caller wants read_only
...
This triggered deadlocks in the cluster case of brl_get_locks_readonly().
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
2011-03-18 07:51:46 +01:00
Günther Deschner
de5cec48a4
s4-smbtorture: add netsessiongetinfo() test.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar 18 02:11:38 CET 2011 on sn-devel-104
2011-03-18 02:11:38 +01:00
Günther Deschner
9ef1a8cf4c
s4-smbtorture: add test for rap_NetUserDelete().
...
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
5def6f0eca
s3-net: make sure we set correct default user flags in rap_user_add().
...
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
249340c9c8
s4-smbtorture: add test for rap_NetUserAdd().
...
Guenther
2011-03-18 01:24:07 +01:00
Günther Deschner
faf8becf22
s3-utils: run minimal_includes.pl over utils/*.c
...
Guenther
2011-03-18 01:24:06 +01:00
Jeremy Allison
066fecd315
The searches struct is still being used and idled in SMB2 - move it to the global
...
section until we decide if we want to idle SMB2 directory handles.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar 18 01:13:53 CET 2011 on sn-devel-104
2011-03-18 01:13:53 +01:00
Jeremy Allison
4c77d620e6
Fix crash bug on smbd shutdown when using FOPENDIR() found by Volker.
...
The key was allowing the dptr_idle code to be triggered. We were
closing the dirp->dir handle without updating the underlying fd
in the open fsp.
Jeremy.
2011-03-17 15:55:15 -07:00
Volker Lendecke
9bc10bde14
s3: Expose num_opens via api_RNetSessionEnum
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 17 22:05:10 CET 2011 on sn-devel-104
2011-03-17 22:05:10 +01:00
Jeremy Allison
fdb98fbdd8
Nulling out the op_mid is never the right thing to do. We depend on
...
this value when searching for specific share mode entries.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 17 19:59:51 CET 2011 on sn-devel-104
2011-03-17 19:59:51 +01:00
Jeremy Allison
3d6a92a37b
Fix compiler warning in debug message.
2011-03-17 10:35:10 -07:00
Stefan Metzmacher
ef078307d9
s3:Makefile.in: make sure we rebuild bin/smbtorture4 if there where changes
...
and bin/ndrdump4...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 17 16:31:45 CET 2011 on sn-devel-104
2011-03-17 16:31:45 +01:00
Simo Sorce
5d55ae0a29
lib-util: put data_blob back in the public library
...
data_blob is defined ina public header, so it needs to be exposed in the public
library.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Mar 17 15:39:08 CET 2011 on sn-devel-104
2011-03-17 15:39:08 +01:00
Günther Deschner
1413af95fc
s3-waf: add --with-pam_smbpass configure option.
...
We build pam_smbpass independent from this configure option though.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 17 14:52:33 CET 2011 on sn-devel-104
2011-03-17 14:52:33 +01:00
Günther Deschner
7bc381bdc5
s3-waf: move HAVE_LDAP_SASL_WRAPPING define to the HAVE_LDAP block.
...
Guenther
2011-03-17 14:05:48 +01:00
Sumit Bose
4562a7914d
s3:net Find uid before using it
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-17 13:57:28 +01:00
Günther Deschner
1d516f0d76
s3-username: rename static getpwnam_alloc to getpwnam_alloc_cached.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 17 00:32:40 CET 2011 on sn-devel-104
2011-03-17 00:32:40 +01:00
Günther Deschner
3aa9d3005a
s3-build: only include asn1 headers where actually needed.
...
Guenther
2011-03-16 23:46:18 +01:00
Volker Lendecke
ab37eae79c
s3: Fix Coverity ID 2231, REVERSE_INULL
...
No point in checking for !ctx after dereferencing it
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 22:51:52 CET 2011 on sn-devel-104
2011-03-16 22:51:52 +01:00
Volker Lendecke
889e03617d
s3: Fix Coverity ID 2232, REVERSE_INULL
...
No point checking for !cli after dereferencing it
2011-03-16 22:07:24 +01:00
Volker Lendecke
37870e28ab
s3: Fix Coverity ID 2233, REVERSE_INULL
...
We have dereferenced h already in dcerpc_lsa_open_policy2 in line 425
2011-03-16 22:07:24 +01:00
Volker Lendecke
dacb392db6
s3: Fix Coverity ID 2234: REVERSE_INULL
...
We have dereferenced "b" already in dcerpc_samr_Connect2 in line 521
2011-03-16 22:07:24 +01:00
Volker Lendecke
fb47b7fd67
s3: Fix Coverity ID 2140, DEADCODE
...
This routine was never executed after f0dcc90f
because "netname" was always
NULL.
Jeremy, please check!
2011-03-16 22:07:24 +01:00
Volker Lendecke
dd3d6a160c
s3: Fix Coverity ID 2144, DEADCODE
...
We could never have assigned the real value in line 481.
Andreas, please check!
2011-03-16 22:07:24 +01:00
Volker Lendecke
4f46ad96f2
s3: Fix Coverity ID 2147, FORWARD_NULL
...
How could this ever have worked???
2011-03-16 22:07:24 +01:00
Volker Lendecke
2581cb7ada
s3: Fix Coverity ID 1402: PASS_BY_VALUE
...
There's no point in passing GROUP_MAP on the stack
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 21:58:08 CET 2011 on sn-devel-104
2011-03-16 21:58:08 +01:00
Volker Lendecke
a7a638c3cf
s3: Fix Coverity ID 2213, PASS_BY_VALUE
...
There's little point to pass a copy of this structure on the stack.
Günther, please check!
2011-03-16 21:14:58 +01:00
Volker Lendecke
a282455978
s3: Fix Coverity ID 1012, CHECKED_RETURN
...
This is probably more or less taste. Removing the necessity for a comment is a
good thing though IMO.
2011-03-16 21:14:58 +01:00
Volker Lendecke
9c9ed33cb7
s3: Fix Coverity ID 1013, CHECKED_RETURN
...
This is probably more or less taste. Removing the necessity for a comment is a
good thing though IMO.
2011-03-16 21:14:58 +01:00
Volker Lendecke
3835d77795
s3: Fix Coverity ID 1017, CHECKED_RETURN
...
Günther, please check!
2011-03-16 21:14:58 +01:00
Volker Lendecke
920b2fddc6
s3: Fix Coverity ID 1018, CHECKED_RETURN
2011-03-16 21:14:58 +01:00
Volker Lendecke
4668ac8b16
s3: Fix Coverity ID 1034, CHECKED_RETURN
...
In all other places we check the result of secrets_init.
2011-03-16 21:14:58 +01:00
Volker Lendecke
7bb76bc7c7
s3: Fix Coverity ID 2100, BAD_SIZEOF
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 18:52:18 CET 2011 on sn-devel-104
2011-03-16 18:52:18 +01:00
Volker Lendecke
df79b3ba76
s3: Fix Coverity ID 2317: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-16 18:08:51 +01:00
Volker Lendecke
329fcd4e34
s3: Fix Coverity ID 2318: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-16 18:08:51 +01:00
Volker Lendecke
d8068b5a4b
s3: Fix Coverity ID 2319: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-16 18:08:51 +01:00
Günther Deschner
9f9e195124
s3-packet: only include packet.h where needed.
...
Guenther
2011-03-16 16:56:47 +01:00
Günther Deschner
1f6aecb5cf
s3-interfaces: only include interfaces.h where needed.
...
Guenther
2011-03-16 16:56:46 +01:00
Günther Deschner
1ce4d2d83a
s3-msdfs: avoid global inclusion of msdfs.h.
...
Guenther
2011-03-16 16:56:46 +01:00
David Disseldorp
97cdf15f09
s3-printing: fix memory leak in print_cups.c
...
As found by valgrind, tmp_pcap_cache is not freed following printer list
tdb update.
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Mar 16 16:37:58 CET 2011 on sn-devel-104
2011-03-16 16:37:58 +01:00
David Disseldorp
52845c1054
s3-printing: remove duplicate cups response processing code
...
There is currently a lot of duplicate code included for processing
responses to CUPS_GET_PRINTERS and CUPS_GET_CLASSES requests. This
change splits this code into a separate function.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-03-16 15:52:21 +01:00
David Disseldorp
d6cb4feae1
s3-printing: use printcap IDL for IPC
...
Use printcap IDL for marshalling and unmarshalling messages between cups
child and parent smbd processes. This simplifies the IPC and ensures
the parent is notified of cups errors encountered by the child.
https://bugzilla.samba.org/show_bug.cgi?id=7994
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-03-16 15:52:21 +01:00
Günther Deschner
fad0112373
s3-build: stop including ldap and lber headers everywhere in the code.
...
Instead use new header smb_ldap.h where all LDAP API related things are handled,
while smbldap.h only deals with our smbldap_X() API.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 16 10:54:51 CET 2011 on sn-devel-104
2011-03-16 10:54:50 +01:00
Günther Deschner
d19ea55e9e
s3-includes: avoid global include of gssapi headers.
...
Guenther
2011-03-16 10:11:16 +01:00
Günther Deschner
6c8d802391
s3-libsmb: move smb encryption structs into own header.
...
Guenther
2011-03-16 10:11:16 +01:00
Günther Deschner
e1f84330ba
libcli/security: move display_sec headers to own header file and add to
...
security.h grouping header.
Guenther
2011-03-16 10:11:08 +01:00
Volker Lendecke
9bc14afe96
s3: Fix a cut&paste error in pdb_ads_connect
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 16 08:22:28 CET 2011 on sn-devel-104
2011-03-16 08:22:28 +01:00
Volker Lendecke
831ff4519e
s3: Use jenkins hash for str_checksum, fix bug 8010
...
From the bugreport:
I have a folder with ~90 photos: IMG_XXXX.JPG where XXXX is a four digit
number, almost consecutive (photos from camera for one day).
Current implementation gives about 30 different checksums for this set of
files.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 16 01:15:41 CET 2011 on sn-devel-104
2011-03-16 01:15:41 +01:00
Günther Deschner
5e3da3fc50
s3-build: try to silence annoying "Ignoring invalid value 'vlp' for parameter 'printing'"
...
warning on the buildfarm.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Mar 15 23:38:43 CET 2011 on sn-devel-104
2011-03-15 23:38:43 +01:00
Günther Deschner
7a91282c9f
s3-libsmb: only include rap client when needed.
...
Guenther
2011-03-15 21:16:35 +01:00
Günther Deschner
c91b897caa
s3-build: share smbtorture4 build rules with s3-waf build.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Mar 15 16:10:17 CET 2011 on sn-devel-104
2011-03-15 16:10:16 +01:00
Volker Lendecke
d9a58791b0
s3: Fix Coverity ID 2278: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:46 +01:00
Volker Lendecke
f0d491205c
s3: Fix Coverity ID 2279: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:46 +01:00
Volker Lendecke
c98c36e38b
s3: Fix Coverity ID 2280: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:46 +01:00
Volker Lendecke
6b584e0e9a
s3: Fix Coverity ID 2281: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:45 +01:00
Volker Lendecke
e68cf5e9bf
s3: Fix Coverity ID 2282: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:45 +01:00
Volker Lendecke
b753b0ab82
s3: Fix Coverity ID 2283: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_OpenKey.
2011-03-15 11:10:45 +01:00
Volker Lendecke
2992ccfe9c
s3: Fix Coverity ID 2284: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_DeleteValue.
2011-03-15 11:10:45 +01:00
Volker Lendecke
2b26c86fe6
s3: Fix Coverity ID 2285: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_DeleteValue.
2011-03-15 11:10:45 +01:00
Volker Lendecke
c09877113d
s3: Fix Coverity ID 2286: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:44 +01:00
Volker Lendecke
31ff8f38e7
s3: Fix Coverity ID 2287: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_CreateKey.
2011-03-15 11:10:43 +01:00
Volker Lendecke
09677d664f
s3: Fix Coverity ID 2288: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
2011-03-15 11:10:43 +01:00
Volker Lendecke
cc90415062
s3: Fix Coverity ID 2289: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_OpenKey.
2011-03-15 11:10:42 +01:00
Volker Lendecke
4f34955e2c
s3: Fix Coverity ID 2290: Uninitialized read
...
We passed the structure including the uninitialized elements to
dcerpc_winreg_DeleteKey.
2011-03-15 11:10:42 +01:00
Volker Lendecke
420be02a60
s3: Read uidNumber/gidNumber in pdb_ads_sid_to_id
...
Question: How shall we allocate those? Something like the rid allocator?
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Mar 15 09:59:55 CET 2011 on sn-devel-104
2011-03-15 09:59:55 +01:00
Volker Lendecke
b0667f7fda
s3: Remove some unused code
2011-03-15 09:15:36 +01:00
Volker Lendecke
a4d7b3a1df
s3: "hex_encode" does the same as "binary_string"
2011-03-15 09:15:35 +01:00
Andrew Tridgell
af28facc03
s3-waf: enable public_headers_allow_broken
2011-03-15 12:22:20 +11:00
Andrew Tridgell
7a57f72ef4
s3-waf: enable public header building in s3
2011-03-15 12:22:20 +11:00
Jeremy Allison
a6d07a8e69
Re-enable base.tcondev test for S3, now we pass it correctly.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 15 00:59:37 CET 2011 on sn-devel-104
2011-03-15 00:59:37 +01:00
Jeremy Allison
e59a950c04
Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on Samba
...
When pulling non-aligned ucs2 strings, we neglected to add in the
pad byte to the buffer length we've eaten. This caused the device
string in TCONX (which seems to be one of the few places that uses
non-aligned ucs2 strings) to be incorrectly read.
Volker please check.
Jeremy.
2011-03-14 16:12:31 -07:00
Volker Lendecke
8dfa224c13
s3: Change tldap_entry_attributes to the "array,count" convention
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
2011-03-14 22:02:35 +01:00
Volker Lendecke
e818090e24
s3: Fix bug 8009 - net rap session cannot get username
...
Looking in [MS-RAP].pdf - these strings are always 4 bytes as an
offset in the rparam area, the string length is the size in the rdata area.
Se we must always return we have consumed 4 param bytes.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar 14 20:09:09 CET 2011 on sn-devel-104
2011-03-14 20:09:09 +01:00
Volker Lendecke
746b299ec1
s3: Fix the talloc hierarchy in shadow_copy2_connectpath
...
We have to return on talloc_tos() because we don't have a mem_ctx given to us.
So we have to create a separate temporary talloc context.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 19:21:11 CET 2011 on sn-devel-104
2011-03-14 19:21:11 +01:00
Volker Lendecke
43e343be81
s3: This module needs rewriting...
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 17:47:32 CET 2011 on sn-devel-104
2011-03-14 17:47:32 +01:00
Stefan Metzmacher
72c1fe0081
librpc/rpc: move DCERPC_ flags to rpc_common.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 20:45:53 CET 2011 on sn-devel-104
2011-03-13 20:45:53 +01:00
Stefan Metzmacher
f7840b3293
s3:librpc/rpc: add DCERPC_ANON_FALLBACK flag
...
With this they're in sync with source4.
metze
2011-03-13 19:24:57 +01:00
Stefan Metzmacher
08dca92499
librpc/rpc: move struct dcerpc_binding to rpc_common.h
...
metze
2011-03-13 16:53:05 +01:00
Stefan Metzmacher
7b7baecf1a
s3:librpc/rpc: add target_principal to struct dcerpc_binding
...
This brings the source3 copy in sync with the source4 copy
of struct dcerpc_binding.
metze
2011-03-13 16:52:59 +01:00
Stefan Metzmacher
83c55ac67e
librpc/rpc: move enum dcerpc_transport_t to rpc_common.h
...
metze
2011-03-13 16:33:06 +01:00
Volker Lendecke
51ebaac75b
s3: Enhance error messages in idmap_tdb2_init_hwm
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 13 12:59:37 CET 2011 on sn-devel-104
2011-03-13 12:59:37 +01:00
Volker Lendecke
f84d439ff6
Revert "s3: Fix bug 8009"
...
This reverts commit 1829891391
.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 13 10:33:25 CET 2011 on sn-devel-104
2011-03-13 10:33:25 +01:00
Volker Lendecke
1829891391
s3: Fix bug 8009
...
Jeremy, please check!
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar 12 11:39:41 CET 2011 on sn-devel-104
2011-03-12 11:39:41 +01:00
Volker Lendecke
70c75b9ddf
s3: Fix a typo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 11 13:15:00 CET 2011 on sn-devel-104
2011-03-11 13:15:00 +01:00
Stefan Metzmacher
b738e092a2
librpc/rpc: move dcerpc_binding_handle stuff to rpc_common.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar 11 12:28:08 CET 2011 on sn-devel-104
2011-03-11 12:28:08 +01:00
Stefan Metzmacher
5657c96714
s3:librpc/rpc: remove unused dcerpc_pipe define hack
...
metze
2011-03-11 11:02:24 +01:00
Michael Adam
0726b29e59
s3:idmap_ldap: fix a few typos in a comment
...
and use the chance to reformat the comment properly...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 11 01:29:09 CET 2011 on sn-devel-104
2011-03-11 01:29:09 +01:00
Günther Deschner
8953c7dc26
s3-selftest: add another flaky s3-torture test to knownfail, this time OPLOCK4.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar 11 00:42:27 CET 2011 on sn-devel-104
2011-03-11 00:42:27 +01:00
Günther Deschner
af2538d16f
s3-build: remove -I../lib/addns.
...
Guenther
2011-03-10 23:25:04 +01:00
Günther Deschner
c8098246be
waf-selftest: allow to call "make test SUBUNIT_FORMATTER=cat".
...
Guenther
2011-03-10 23:25:04 +01:00
Günther Deschner
88ff230ae9
s3-waf: fix typo.
...
Guenther
2011-03-10 23:25:04 +01:00
Günther Deschner
6076f4b472
s3-selftest: run a couple of dgram NBT tests against s3.
...
Guenther
2011-03-10 23:25:03 +01:00
Volker Lendecke
257f0491cb
s3: sid->domain_sid in winbindd_samr sam_rids_to_names
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 10 19:33:47 CET 2011 on sn-devel-104
2011-03-10 19:33:46 +01:00