kai/samba.git
16 years agor19778: Make regkey_open_internal take a talloc ctx
Volker Lendecke [Sun, 19 Nov 2006 10:50:33 +0000 (10:50 +0000)]
r19778: Make regkey_open_internal take a talloc ctx
(This used to be commit cb7f4211b8441642dce9594522dc9588475a7719)

16 years agor19777: Make regsubkey_ctr_addkey return WERROR. Nobody checks this so far, but this
Volker Lendecke [Sat, 18 Nov 2006 17:46:32 +0000 (17:46 +0000)]
r19777: Make regsubkey_ctr_addkey return WERROR. Nobody checks this so far, but this
will change.

Volker
(This used to be commit 17c7c337f64b082c1bf1045a4093c279deeec958)

16 years agor19776: Hmmm. I should have done one instead of three commits. Sorry :-)
Volker Lendecke [Sat, 18 Nov 2006 17:07:15 +0000 (17:07 +0000)]
r19776: Hmmm. I should have done one instead of three commits. Sorry :-)
(This used to be commit e2a35ceffe35b25aafde987c50e63b89a3e3ec16)

16 years agor19775: Fix typo
Volker Lendecke [Sat, 18 Nov 2006 17:06:43 +0000 (17:06 +0000)]
r19775: Fix typo
(This used to be commit 370e29ebb9da92c9072bdd4eec84980b5753089a)

16 years agor19774: Fix typo
Volker Lendecke [Sat, 18 Nov 2006 17:06:02 +0000 (17:06 +0000)]
r19774: Fix typo
(This used to be commit 842599a7fd1217b498dc2d241d39ed604cf0da7d)

16 years agor19773: TALLOC_FREE checks for NULL itself
Volker Lendecke [Sat, 18 Nov 2006 17:05:50 +0000 (17:05 +0000)]
r19773: TALLOC_FREE checks for NULL itself
(This used to be commit fb3983ae1fdd1935333ffee80bceb747228ac0f3)

16 years agor19766: Fix a const-warning. Jerry, what did you want to fix with this line?
Volker Lendecke [Sat, 18 Nov 2006 11:29:29 +0000 (11:29 +0000)]
r19766: Fix a const-warning. Jerry, what did you want to fix with this line?

Volker
(This used to be commit 55dc4741cfead0f21deb7ea2d28afb240505686b)

16 years agor19764: set version in 3.0 branch to 3.0.25
Gerald Carter [Fri, 17 Nov 2006 23:31:45 +0000 (23:31 +0000)]
r19764: set version in 3.0 branch to 3.0.25
(This used to be commit d7179d945c24f1aa4fff243cc6c29a5545ce692a)

16 years agor19762: libaddns/*[ch] code fixes donated by Centeris Corporation
Gerald Carter [Fri, 17 Nov 2006 21:46:26 +0000 (21:46 +0000)]
r19762: libaddns/*[ch] code fixes donated by Centeris Corporation
(http://www.centeris.com/) under my copyright.

* Rework error reporting to use DNS_ERROR instead
  of int32
* Convert memory allocation to use talloc()
* Generalize the DNS request/response packet marshalling
* Fix the secure update requests
(This used to be commit c78798333616c3f823514df0f58da2eb3a30a988)

16 years agor19758: remove the LDAP_SCOPE_ONELEVEL define (not needed after svnup)
Gerald Carter [Fri, 17 Nov 2006 01:25:23 +0000 (01:25 +0000)]
r19758: remove the LDAP_SCOPE_ONELEVEL define (not needed after svnup)
(This used to be commit e37132f219bb9ef52c7fc9b396bd272dd5abca70)

16 years agor19754: * When using a krb5 session setup, we don't fill in the server_name
Gerald Carter [Thu, 16 Nov 2006 23:48:46 +0000 (23:48 +0000)]
r19754: * When using a krb5 session setup, we don't fill in the server_name
  string the clis_state struct.  So call saf_store() after we
  have the short domain name in the lsa_query_inof_policy code.

* Remove unused server string in saf_delete()
(This used to be commit 3eddae2f2080f8dafec883cb9ffa2e578c242607)

16 years agor19748: Ensure to link against the required libraries.
Lars Müller [Thu, 16 Nov 2006 18:29:36 +0000 (18:29 +0000)]
r19748: Ensure to link against the required libraries.
(This used to be commit 85d8c73fbbf86f4d22244f8e2bb2fdd51fa6680b)

16 years agor19747: Ensure to link with the required objects.
Lars Müller [Thu, 16 Nov 2006 18:16:57 +0000 (18:16 +0000)]
r19747: Ensure to link with the required objects.
(This used to be commit 8d50fb3f5152b5daa62fde5bbf34f585631be397)

16 years agor19745: For the fun of it, add an CLDAP client written in perl.
Günther Deschner [Thu, 16 Nov 2006 11:55:16 +0000 (11:55 +0000)]
r19745: For the fun of it, add an CLDAP client written in perl.

Guenther
(This used to be commit 8a2dded7fb6fff7080a77895803f28985bdf728b)

16 years agor19744: merge from samba4
Stefan Metzmacher [Thu, 16 Nov 2006 11:18:05 +0000 (11:18 +0000)]
r19744: merge from samba4

metze
(This used to be commit fe61e6ebf7d771ce6441198bf2e330d53bf7b10e)

16 years agor19741: fix compiler warnings
Stefan Metzmacher [Thu, 16 Nov 2006 11:11:09 +0000 (11:11 +0000)]
r19741: fix compiler warnings

metze
(This used to be commit 18171cf54b22f9f2d73753db580934bd10e95e3d)

16 years agor19739: fix compiler warning
Stefan Metzmacher [Thu, 16 Nov 2006 11:02:34 +0000 (11:02 +0000)]
r19739: fix compiler warning

metze
(This used to be commit b7965ac26cbfdfe60f929e2fa3a295b8c57d220d)

16 years agor19730: as libreplace always provides dlopen(), we need to always define SHLIBEXT
Stefan Metzmacher [Thu, 16 Nov 2006 06:29:18 +0000 (06:29 +0000)]
r19730: as libreplace always provides dlopen(), we need to always define SHLIBEXT

this fix the build on hpisgr8 HPUX 11.23

metze
(This used to be commit b61269d7e39382d395e84bf2b488f6b40a8049a6)

16 years agor19725: sync samba3's ldb with samba4
Stefan Metzmacher [Wed, 15 Nov 2006 17:34:20 +0000 (17:34 +0000)]
r19725: sync samba3's ldb with samba4

metze
(This used to be commit 207643e9c9c75546f38a09f12ea0b574b08086c5)

16 years agor19718: define SHLIBEXT (prepare ldb merge from samba4)
Stefan Metzmacher [Wed, 15 Nov 2006 15:31:11 +0000 (15:31 +0000)]
r19718: define SHLIBEXT (prepare ldb merge from samba4)

metze
(This used to be commit d8f9c200551038dad73be52bb066523312508089)

16 years agor19710: Fix memory leak in get_conf_item_string(). As
Jeremy Allison [Wed, 15 Nov 2006 02:06:58 +0000 (02:06 +0000)]
r19710: Fix memory leak in get_conf_item_string(). As
we're just doing strchr on a const string there's
no need to strdup it before, we're never modifying
it. Just remove the variable "parm".
Jeremy.
(This used to be commit 1af18f613b1399220e38e7ab40665c2ca177c5a7)

16 years agor19709: Fix bug #4224 - deadtime timeout was broken
Jeremy Allison [Wed, 15 Nov 2006 01:06:45 +0000 (01:06 +0000)]
r19709: Fix bug #4224 - deadtime timeout was broken
because of this. Probably a show-stopper for 3.0.23d.
Thanks to Alain GORLIER <alain.gorlier@altissemiconductor.com>
for the fix.
Jeremy.
(This used to be commit b167785cbd7911940e16fd2a54ec665857feef5e)

16 years agor19705: Fix blocker bug for 3.0.23d - find_forced_group could
Jeremy Allison [Tue, 14 Nov 2006 20:21:23 +0000 (20:21 +0000)]
r19705: Fix blocker bug for 3.0.23d - find_forced_group could
return an uninitialized sid.
Jeremy.
(This used to be commit 57c60103e7dd8f9907bc2954369ea8db8b3b69ff)

16 years agor19703: Don't free a string if you want to return it!
Simo Sorce [Tue, 14 Nov 2006 16:50:29 +0000 (16:50 +0000)]
r19703: Don't free a string if you want to return it!
(This used to be commit 3fed72ac3efd1fa7df8fb7d1e2cb9772d66bb4bd)

16 years agor19692: Another fix.
Simo Sorce [Mon, 13 Nov 2006 14:22:56 +0000 (14:22 +0000)]
r19692: Another fix.
(This used to be commit a86a56fed3eb06b4b4a04329d42a9f57bad16271)

16 years agor19691: Fix the build
Simo Sorce [Mon, 13 Nov 2006 14:01:15 +0000 (14:01 +0000)]
r19691: Fix the build
(This used to be commit fd70972ad943411f58ad9698b33b32e15eae88e4)

16 years agor19690: Remove this ancient module, I never realized it was ported over.
Simo Sorce [Mon, 13 Nov 2006 13:38:04 +0000 (13:38 +0000)]
r19690: Remove this ancient module, I never realized it was ported over.
(This used to be commit 3ef6ef7cc89b6421b9e8ec301cbd55ccd09e4d20)

16 years agor19689: Fix a NULL dereference found by coverity (the call to strlen).
Volker Lendecke [Mon, 13 Nov 2006 10:50:55 +0000 (10:50 +0000)]
r19689: Fix a NULL dereference found by coverity (the call to strlen).

Jerry, please check this. The way I understood alpha_strcpy the last arg needs
to be the size of the target, not of the source.

Thanks,

Volker
(This used to be commit 287d68daab89c78748b90849c9782473784b6a84)

16 years agor19688: Fix a deadcode warning by Coverity.
Volker Lendecke [Mon, 13 Nov 2006 10:43:12 +0000 (10:43 +0000)]
r19688: Fix a deadcode warning by Coverity.

Simo, I'm not sure this is the correct fix. So I'd like you to look at it and
merge to 4 if appropriate.

Volker
(This used to be commit afd7f12124b02b594063535f93903a8a598a0587)

16 years agor19687: Fix uninitialized variables found by Coverity (and gcc -O1... ;-))
Volker Lendecke [Mon, 13 Nov 2006 10:34:59 +0000 (10:34 +0000)]
r19687: Fix uninitialized variables found by Coverity (and gcc -O1... ;-))

Volker
(This used to be commit b7dc9b81696aa5434419c5378a47b41c6dee3dfa)

16 years agor19686: Fix the build
Volker Lendecke [Mon, 13 Nov 2006 09:58:51 +0000 (09:58 +0000)]
r19686: Fix the build
(This used to be commit 28ac0235810c53eccb449201ac933d7eaf8eb38f)

16 years agor19685: Two changes inspired by problems with huge tdbs. tdbtool's list command now
Volker Lendecke [Mon, 13 Nov 2006 09:34:55 +0000 (09:34 +0000)]
r19685: Two changes inspired by problems with huge tdbs. tdbtool's list command now
prints the hash on every record for easier awk'ing, and tdbbackup allows a
different hash chain length on the backed up tdb.

Jeremy, Günther, this might be interesting for you huge domains. Not only
locking.tdb, also the winbind ones might grow huge.

In the installation I fixed with this winbind spent a huge amount of CPU
spinning through a degenerated winbindd_idmap.tdb with entries for more than
15.000 users. With a default number of hash chains of 131 on that tdb you can
imagine that the lists get large.

Not merging to 4, I don't get tdbbackup to compile there right now.

What about changing the global default hash chain number to be dramatically
larger? Disk is cheap these days.

Volker
(This used to be commit 577d0ff658596f8246f120e0342cc5c9e4077ece)

16 years agor19669: set_share_security does not need a mem_ctx passed
Volker Lendecke [Sat, 11 Nov 2006 18:07:51 +0000 (18:07 +0000)]
r19669: set_share_security does not need a mem_ctx passed
(This used to be commit 53eaa603eb84047263c27d57b8c0f5ce8e157189)

16 years agor19668: Convert the locking params to use struct share_param instead of snum
Volker Lendecke [Sat, 11 Nov 2006 17:05:11 +0000 (17:05 +0000)]
r19668: Convert the locking params to use struct share_param instead of snum
(This used to be commit 609dbec600048718b86cd1ecdc2ce49bbdeb803c)

16 years agor19667: Fix incorrect null check
Volker Lendecke [Sat, 11 Nov 2006 17:04:08 +0000 (17:04 +0000)]
r19667: Fix incorrect null check
(This used to be commit dc9cdf37e9e2d33d46f0f6da34a3df372eede982)

16 years agor19666: Talloc_guide text on multithreading by Remi Turboult
Volker Lendecke [Sat, 11 Nov 2006 17:02:08 +0000 (17:02 +0000)]
r19666: Talloc_guide text on multithreading by Remi Turboult
(This used to be commit 36a7bf738afd466e378fb2f09d1ce0b47ec924a4)

16 years agor19665: Fix a memleak
Volker Lendecke [Sat, 11 Nov 2006 16:50:38 +0000 (16:50 +0000)]
r19665: Fix a memleak
(This used to be commit bc6d4e52806eb1ace282e983566660928214374c)

16 years agor19659: Fix bug #4187. Possible crash in signing on/off code.
Jeremy Allison [Sat, 11 Nov 2006 00:23:44 +0000 (00:23 +0000)]
r19659: Fix bug #4187. Possible crash in signing on/off code.
Jeremy.
(This used to be commit 78c1c43523d787825bdb6d52e128bf0af5eccaae)

16 years agor19657: Correctly check for malloc failure
Volker Lendecke [Fri, 10 Nov 2006 15:56:20 +0000 (15:56 +0000)]
r19657: Correctly check for malloc failure
(This used to be commit e5b5c9b058b7f2a6188684019ffe42e497ac6b6c)

16 years agor19656: Correctly check for malloc failure
Volker Lendecke [Fri, 10 Nov 2006 15:55:06 +0000 (15:55 +0000)]
r19656: Correctly check for malloc failure
(This used to be commit 3d0661b0393804707eb42d9ee9377a622333f252)

16 years agor19655: Jeremy, please review:
Jim McDonough [Fri, 10 Nov 2006 15:43:29 +0000 (15:43 +0000)]
r19655: Jeremy, please review:

I updated the vfs version in 3.0.24 from 16 to 17, beacuse 16 was the
latest released code, but on SAMBA_3_0, I reverted my earlier change
back from 19 to 18, because we've not had any released code with 18.

This is related to the kernel_flock call addition.
(This used to be commit fb8e43fb493b486c31fc141b5240a7dd36c9219f)

16 years agor19652: Trying to track down which caller tries to store a 0 length domain name
Günther Deschner [Fri, 10 Nov 2006 13:46:19 +0000 (13:46 +0000)]
r19652: Trying to track down which caller tries to store a 0 length domain name
in the affinity cache (which happens all the time here).

Guenther
(This used to be commit 45d6d300767d5b99aff332bdfb0a8f464fd103e0)

16 years agor19651: Fix interesting bug with the automatic site coverage in Active Directory:
Günther Deschner [Fri, 10 Nov 2006 12:42:50 +0000 (12:42 +0000)]
r19651: Fix interesting bug with the automatic site coverage in Active Directory:

When having DC-less sites, AD assigns DCs from other sites to that site
that does not have it's own DC. The most reliable way for us to identify
the nearest DC - in that and all other cases - is the closest_dc flag in
the CLDAP reply.

Guenther
(This used to be commit ff004f7284cb047e738ba3d3ad6602e8aa84e883)

16 years agor19648: whoops, forgot to increment the vfs version number with the added flock
Jim McDonough [Thu, 9 Nov 2006 21:40:40 +0000 (21:40 +0000)]
r19648: whoops, forgot to increment the vfs version number with the added flock
call.
(This used to be commit 1bc834455de0088941609ed46fcecde5b796fe77)

16 years agor19647: Add some GPFS support in a vfs mod. Also adds the kernel flock op to
Jim McDonough [Thu, 9 Nov 2006 20:29:31 +0000 (20:29 +0000)]
r19647: Add some GPFS support in a vfs mod.  Also adds the kernel flock op to
the vfs layer, since gpfs supports it.  Thanks to Volker, Christian,
Mathias, Chetan, and Peter.
(This used to be commit 0620658890fa9c68a9848538728023192319c81a)

16 years agor19646: Fix memleak in the default_ou_string handling. Thanks to David Hu
Günther Deschner [Thu, 9 Nov 2006 10:16:38 +0000 (10:16 +0000)]
r19646: Fix memleak in the default_ou_string handling. Thanks to David Hu
<david.hu@hp.com>. Fixes #4212.

Guenther
(This used to be commit 4ec896cdbe441b17d91895a50ac9be61efe2f9c1)

16 years agor19627: Fix for bug #4211 - logic error in acl_group_override()
Jeremy Allison [Tue, 7 Nov 2006 18:35:41 +0000 (18:35 +0000)]
r19627: Fix for bug #4211 - logic error in acl_group_override()
function. Fix from Jim Wang of Wesoft.
Jeremy.
(This used to be commit eb78ce1f550377bfb1fd43f550641cf8a606e973)

16 years agor19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error message
James Peach [Tue, 7 Nov 2006 17:18:00 +0000 (17:18 +0000)]
r19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error message
in core dump path.
(This used to be commit 9a51fba71c5fa7082c331e1a78a98638d9aa06cf)

16 years agor19601: Fix protection from invalid struct tm values.
Jeremy Allison [Tue, 7 Nov 2006 02:33:10 +0000 (02:33 +0000)]
r19601: Fix protection from invalid struct tm values.
Backport from Samba4.
Jeremy.
(This used to be commit 02a0ac0bacafe91e4fa3ca0cae2f05a25215efbc)

16 years agor19591: Use `import' and `include' in the IDL and regenerate.
Jelmer Vernooij [Mon, 6 Nov 2006 23:20:35 +0000 (23:20 +0000)]
r19591: Use `import' and `include' in the IDL and regenerate.
(This used to be commit 68fc15a5e025348dee4bf14aa4498e20905cb377)

16 years agor19579: BUG 4075: patch from Dmitry Butskoy <dmitry@butskoy.name>.
Gerald Carter [Mon, 6 Nov 2006 19:46:50 +0000 (19:46 +0000)]
r19579: BUG 4075: patch from Dmitry Butskoy <dmitry@butskoy.name>.
Allow smbd to use winbindd to lookup uids/gids outside the
idmap range if 'winbind trusted domains only = yes'
(This used to be commit 5b3ac400a7d51dfc818563189bdf6649b2dc3a52)

16 years agor19577: Fix from Nils Nordman for bug #4085. Thanks !
Jeremy Allison [Mon, 6 Nov 2006 19:21:44 +0000 (19:21 +0000)]
r19577: Fix from Nils Nordman for bug #4085. Thanks !
Jeremy.
(This used to be commit 3b5ab8ab8296339ad0e62d8564d706b5a446dcf3)

16 years agor19576: Correct trivial typo.
James Peach [Mon, 6 Nov 2006 18:39:48 +0000 (18:39 +0000)]
r19576: Correct trivial typo.
(This used to be commit a0ada1aa342722fa7f90715a312b5d81f02f937b)

16 years agor19552: Fix names of known failing tests.
Jelmer Vernooij [Sat, 4 Nov 2006 13:28:19 +0000 (13:28 +0000)]
r19552: Fix names of known failing tests.
(This used to be commit b533620f04758636db6ae5fcea932bb392bc039a)

16 years agor19542: Regenerate IDL.
Jelmer Vernooij [Fri, 3 Nov 2006 20:00:14 +0000 (20:00 +0000)]
r19542: Regenerate IDL.
(This used to be commit 759c1b0fd24aa23802432a0b9447435044d2a11c)

16 years agor19533: Add a suffix to the program name if this is a process with a
Jeremy Allison [Thu, 2 Nov 2006 09:37:52 +0000 (09:37 +0000)]
r19533: Add a suffix to the program name if this is a process with a
non-default configuration file name.
Jeremy.
(This used to be commit e8bf421c018ed829b9dba7c0872693080b77d49d)

16 years agor19529: Added showacls togle. Previously was vendor-specific code.
Jeremy Allison [Wed, 1 Nov 2006 17:18:08 +0000 (17:18 +0000)]
r19529: Added showacls togle. Previously was vendor-specific code.
Merging these in - should have been merged back before (will
be tidied up later).
Jeremy.
(This used to be commit 1e9284590f42b61bd730104920bc535bf7dfcbf4)

16 years agor19528: Fix container handling for "net ads user" and "net ads group" functions
Günther Deschner [Wed, 1 Nov 2006 11:19:33 +0000 (11:19 +0000)]
r19528: Fix container handling for "net ads user" and "net ads group" functions
along with some memleaks.

Guenther
(This used to be commit 4bad52c5b3a983418d4216a2c3f5e04926e37e94)

16 years agor19527: Fix double free in "net ads group add".
Günther Deschner [Wed, 1 Nov 2006 11:08:05 +0000 (11:08 +0000)]
r19527: Fix double free in "net ads group add".

Guenther
(This used to be commit 08db3d3b04d91238b739e88e817bd3f800b768ee)

16 years agor19526: Fix minor memleak.
Günther Deschner [Wed, 1 Nov 2006 11:04:28 +0000 (11:04 +0000)]
r19526: Fix minor memleak.

Guenther
(This used to be commit 61ebedc82ee7d7a98e2a52b0677d723a801ab30f)

16 years agor19525: Fix the same error in "net ads group delete".
Günther Deschner [Wed, 1 Nov 2006 10:59:28 +0000 (10:59 +0000)]
r19525: Fix the same error in "net ads group delete".

Guenther
(This used to be commit 94ed3e9de8671d677451d2a16977caeeb7e744d1)

16 years agor19524: Stop "net ads user delete" from doing funny things.
Günther Deschner [Wed, 1 Nov 2006 10:38:54 +0000 (10:38 +0000)]
r19524: Stop "net ads user delete" from doing funny things.

Guenther
(This used to be commit a20e7c0315f9a06ce2139f99d035b409b066d722)

16 years agor19516: Fix the DN, to make searches using the domain as base
Simo Sorce [Tue, 31 Oct 2006 12:57:56 +0000 (12:57 +0000)]
r19516: Fix the DN, to make searches using the domain as base
the DN must be rid,domain and not domain,rid

Also use member and not memberOf for group members
following conventions.
(This used to be commit 7c0ea791d21d914e882b56a849766d966ce8ed1a)

16 years agor19497: Thought I already fixes the etags target. Ignore .svn
Gerald Carter [Wed, 25 Oct 2006 16:19:42 +0000 (16:19 +0000)]
r19497: Thought I already fixes the etags target.  Ignore .svn
and not CVS (since we don't use CVS anymore
(This used to be commit 782298cd03f3fd79a46e65626ed2864e46ce3daf)

16 years agor19494: When building with a static Heimdal, make sure not to link against
Günther Deschner [Wed, 25 Oct 2006 12:50:10 +0000 (12:50 +0000)]
r19494: When building with a static Heimdal, make sure not to link against
-lgssapi_krb5. With that change I could sucessfully verify that Heimdal
support is still working nicely after the changes from jpeach.

Guenther
(This used to be commit 53d09487a003c00b7bb6c1a4824bda799b928bfc)

16 years agor19493: There is no point in prompting for a user's password in "net ads" when
Günther Deschner [Wed, 25 Oct 2006 12:10:48 +0000 (12:10 +0000)]
r19493: There is no point in prompting for a user's password in "net ads" when
we can't find a domain controller at all.

Guenther
(This used to be commit e691ae7da3620a7d4c0e0b1217aaae44db0b8db3)

16 years agor19491: backport changes from samba4
Simo Sorce [Wed, 25 Oct 2006 02:06:05 +0000 (02:06 +0000)]
r19491: backport changes from samba4
(This used to be commit aa464c9fda978f615230241921f83884a60f4c6f)

16 years agor19487: Fix coverity # 313
Volker Lendecke [Tue, 24 Oct 2006 20:23:14 +0000 (20:23 +0000)]
r19487: Fix coverity # 313
(This used to be commit 0eb5a0f7b8dd26dae489b74e1d2a88188ae9e48d)

16 years agor19486: Probably Coverity is wrong here, but this fixes their ID 317. Not sure whether
Volker Lendecke [Tue, 24 Oct 2006 20:20:39 +0000 (20:20 +0000)]
r19486: Probably Coverity is wrong here, but this fixes their ID 317. Not sure whether
to merge it to 4_0. I want it in 3_0 because it took a bit to persuade myself
that el can not be NULL here.

Volker
(This used to be commit c0c035b1c8b9d80cd205cde16ad3e838e2d44459)

16 years agor19485: Fix Coverity # 319
Volker Lendecke [Tue, 24 Oct 2006 20:15:13 +0000 (20:15 +0000)]
r19485: Fix Coverity # 319
(This used to be commit d9f1697c1f09e1f01c15d8fc210b7b5b7c7ec7bb)

16 years agor19484: Fix Coverity #329
Volker Lendecke [Tue, 24 Oct 2006 20:12:38 +0000 (20:12 +0000)]
r19484: Fix Coverity #329
(This used to be commit c3f860e55da8877131f149ca213b311c215e8a6e)

16 years agor19477: Patch from Huang Dejin Eugene <hdejin@yahoo.com>.
James Peach [Tue, 24 Oct 2006 03:23:19 +0000 (03:23 +0000)]
r19477: Patch from Huang Dejin Eugene <hdejin@yahoo.com>.

Add configure option --enable-fam so that FAM support can explicitly
be controlled at build time. Default behaviour is to autodetect.
(This used to be commit 066951bc48723b1a26aab9ebb21ff2c897189043)

16 years agor19469: Another user of NetShareEnum
Volker Lendecke [Mon, 23 Oct 2006 20:13:53 +0000 (20:13 +0000)]
r19469: Another user of NetShareEnum
(This used to be commit 3a1be1626c1e285da70a8fd688a494eb633eee2f)

16 years agor19468: Fix some potential NULL dereferences
Volker Lendecke [Mon, 23 Oct 2006 20:11:12 +0000 (20:11 +0000)]
r19468: Fix some potential NULL dereferences
(This used to be commit c8ed4129767d53ba6b7a084ca43b3e22e847ffec)

16 years agor19451: Another cleanup of 18802. Referring to structures after the block has been
Volker Lendecke [Sun, 22 Oct 2006 10:30:46 +0000 (10:30 +0000)]
r19451: Another cleanup of 18802. Referring to structures after the block has been
left is not a good idea.

Volker
(This used to be commit 88ac17db196c828e15a73c7561fda291b15e2613)

16 years agor19450: Fix smbtree's use of netshareenum.
Volker Lendecke [Sun, 22 Oct 2006 10:01:55 +0000 (10:01 +0000)]
r19450: Fix smbtree's use of netshareenum.

Jelmer, how much of r18802 did you actually test??

Volker
(This used to be commit d0025861c09b3a19ecd291265f10eaec5f380932)

16 years agor19448: Convert delete_share_security to struct share_params plus some cleanups
Volker Lendecke [Sat, 21 Oct 2006 17:00:47 +0000 (17:00 +0000)]
r19448: Convert delete_share_security to struct share_params plus some cleanups
(This used to be commit c73d0815a3a1f58b951caa62fac601a8f4630894)

16 years agor19447: Do not throw away information
Volker Lendecke [Sat, 21 Oct 2006 16:52:25 +0000 (16:52 +0000)]
r19447: Do not throw away information
(This used to be commit 141e0dd7174462d0df642f6055eb3f35df107bac)

16 years agor19446: Comment can be NULL now
Volker Lendecke [Sat, 21 Oct 2006 16:46:30 +0000 (16:46 +0000)]
r19446: Comment can be NULL now
(This used to be commit f4dcb9bd56dc61bc2d254f1fb8a648ef9fc6aa8f)

16 years agor19445: Attempt to fix net rpc share
Volker Lendecke [Sat, 21 Oct 2006 16:27:38 +0000 (16:27 +0000)]
r19445: Attempt to fix net rpc share
(This used to be commit 769988f83adac5f8adcf6a3cda68fb8f26a0327d)

16 years agor19444: merge from samba4:
Stefan Metzmacher [Sat, 21 Oct 2006 11:50:52 +0000 (11:50 +0000)]
r19444: merge from samba4:

reset trap when we have removed the test specifc files already

metze
(This used to be commit 36065025c70d4ae3115554aac44c8807725a63b7)

16 years agor19431: merge recent talloc performance improvements from Samba4
Andrew Tridgell [Sat, 21 Oct 2006 00:23:27 +0000 (00:23 +0000)]
r19431: merge recent talloc performance improvements from Samba4
(This used to be commit ced12bd6d8c95a103cb2c84166a64f9a21bd32ad)

16 years agor19430: merge recent ldb changes from Samba4. This includes memory leak fixes
Andrew Tridgell [Sat, 21 Oct 2006 00:10:19 +0000 (00:10 +0000)]
r19430: merge recent ldb changes from Samba4. This includes memory leak fixes
and significant speedups
(This used to be commit bb5c205fef90aa8b89ba400fb9f2f37a111676a8)

16 years agor19429: moved tdb/common/tdbutil.c into lib/util_tdb.c
Andrew Tridgell [Fri, 20 Oct 2006 23:46:59 +0000 (23:46 +0000)]
r19429: moved tdb/common/tdbutil.c into lib/util_tdb.c

see discussion on samba-technical
(This used to be commit 1ad563286f00be0d72930b81b10cb74f13c5fbff)

16 years agor19426: merge nearly all the differences between Samba3 tdb and Samba4
Andrew Tridgell [Fri, 20 Oct 2006 09:55:47 +0000 (09:55 +0000)]
r19426: merge nearly all the differences between Samba3 tdb and Samba4
tdb. This includes:

 - the new tdb_lockall and tdb_lockall_read code, which will be needed
   for the ldb speedups

 - the tdb logging changes. This is an intermediate step to keep the
   differences between the two branches small. The plan is still to
   move to a tdb_init()/tdb_set_logging_function()/tdb_attach() style
   of open which will make things much cleaner.

 - the updated test suites and standalone tdb build code

 - use libreplace headers

There are still some small differences I haven't merged. I'll discuss
those on the list.
(This used to be commit 48903c75edfaf75dbd3e9d052e615552cdff39b4)

16 years agor19424: Protect against username == NULL
Jeremy Allison [Fri, 20 Oct 2006 08:14:38 +0000 (08:14 +0000)]
r19424: Protect against username == NULL
Jeremy.
(This used to be commit 78b14de27a2220dc4a26d21d108242220b4a1598)

16 years agor19422: Doh ! Put the krb5 user@realm code in the right place.
Jeremy Allison [Fri, 20 Oct 2006 07:44:09 +0000 (07:44 +0000)]
r19422: Doh ! Put the krb5 user@realm code in the right place.
Jeremy.
(This used to be commit a31bbbaee1042143d750a29b8fcec4720bfdb374)

16 years agor19421: BUG 3868: Patch from Timur Bakeyev <timur@com.bat.ru> to prevent
Gerald Carter [Thu, 19 Oct 2006 22:48:03 +0000 (22:48 +0000)]
r19421: BUG 3868: Patch from Timur Bakeyev <timur@com.bat.ru> to prevent
--with-aio-support from trimping on the $LIBS variable
(This used to be commit 00bf29d352af694373be035047cfcf1298891d25)

16 years agor19420: Remove strequal and use strcmp() instead. Meant to
Gerald Carter [Thu, 19 Oct 2006 22:41:11 +0000 (22:41 +0000)]
r19420: Remove strequal and use strcmp() instead.  Meant to
make the change before theprevious commit.
(This used to be commit 815388c4c8be1274359679077a120fec4cc39b0f)

16 years agor19419: BUG 4109: Patch from Timur Bakeyev. Fix bug causing smbd to turn off
Gerald Carter [Thu, 19 Oct 2006 22:34:58 +0000 (22:34 +0000)]
r19419: BUG 4109: Patch from Timur Bakeyev.  Fix bug causing smbd to turn off
winbindd and fail to disable the _NO_WINBIND environment.
(This used to be commit a6366b40b3967853c20ca5399021108f09ffd505)

16 years agor19417: BUG 3856: patch from Timur Bakeyev <timur@com.bat.ru> to include setting...
Gerald Carter [Thu, 19 Oct 2006 22:28:55 +0000 (22:28 +0000)]
r19417: BUG 3856: patch from Timur Bakeyev <timur@com.bat.ru> to include setting the nss soname version on FreeBSD
(This used to be commit e1490e72eafbe3a2f9cc2e3a46563a75a19672e0)

16 years agor19416: Fix some c++ warnings.
Günther Deschner [Thu, 19 Oct 2006 21:47:11 +0000 (21:47 +0000)]
r19416: Fix some c++ warnings.

Guenther
(This used to be commit b076c39b6ac87a078feae30a4384c881c46e81ac)

16 years agor19415: oh la la, always compile before commit, I'm very sorry.
Günther Deschner [Thu, 19 Oct 2006 15:47:19 +0000 (15:47 +0000)]
r19415: oh la la, always compile before commit, I'm very sorry.

Guenther
(This used to be commit bdd2e0361ce53a4f10fca767f734991797e7f927)

16 years agor19414: gencache is getting really important now, make sure that lp_lockdir
Günther Deschner [Thu, 19 Oct 2006 15:43:25 +0000 (15:43 +0000)]
r19414: gencache is getting really important now, make sure that lp_lockdir
always exists so that the gencache.tdb can get created there.

Guenther
(This used to be commit e5ed286125d1f4b8b28bf143f987102071fd0de2)

16 years agor19413: Now we're calling init_dc_connection, this code
Jeremy Allison [Thu, 19 Oct 2006 13:32:00 +0000 (13:32 +0000)]
r19413: Now we're calling init_dc_connection, this code
is completely useless (and in fact harmful :-) in
that it causes a winbindd error where there should
be none.
Jeremy.
(This used to be commit acf5419d62f4ac64449d4722c5ff3c9be35c0570)

16 years agor19399: Now Guenther discovered one crash dereferencing domain->backends,
Jeremy Allison [Wed, 18 Oct 2006 21:24:20 +0000 (21:24 +0000)]
r19399: Now Guenther discovered one crash dereferencing domain->backends,
get paranoid. I don't think this can really happen, but let's be
sure.
Jeremy.
(This used to be commit be4709984b8548abf10a5e9fabba21d53440c42a)

16 years agor19394: When we fail to get the list of trusted domains, make sure to return
Günther Deschner [Wed, 18 Oct 2006 16:09:42 +0000 (16:09 +0000)]
r19394: When we fail to get the list of trusted domains, make sure to return
WINBINDD_ERROR.

Guenther
(This used to be commit 6089b3007bf92904ca4562d21958d7922143dbcb)

16 years agor19391: Fix crash bug within the winbind caching method.
Günther Deschner [Wed, 18 Oct 2006 14:22:08 +0000 (14:22 +0000)]
r19391: Fix crash bug within the winbind caching method.

That one was hard to find: when coming from offline mode and switching
to online, a refresh sequence number call (using the default MS-RPC
mechanism) may reset domain->backend to NULL (by the set_domain_online
event). We need to make sure to reidentify the remote domain in that
case.

Guenther
(This used to be commit 4d6503d1377a262ba8b87f344be7daf04e011ef2)

16 years agor19390: Add some tests that are known failing against samba3.
Jelmer Vernooij [Wed, 18 Oct 2006 12:23:58 +0000 (12:23 +0000)]
r19390: Add some tests that are known failing against samba3.
(This used to be commit 6ff2ad4246a7e6c51ac8764c417fffc57c6d49df)

16 years agor19386: Limit the size of the connection bitmap to <64K entries.
James Peach [Wed, 18 Oct 2006 03:34:31 +0000 (03:34 +0000)]
r19386: Limit the size of the connection bitmap to <64K entries.
(This used to be commit 9f0518e0b0d4add7cceac6d4d797edddb0080aaa)