vlendec/samba-autobuild/.git
16 years agor20154: Fix nasty typo, hunting another bug
Simo Sorce [Wed, 13 Dec 2006 21:03:38 +0000 (21:03 +0000)]
r20154: Fix nasty typo, hunting another bug
(This used to be commit bf8dc44cc2892a784ec3a118abc0abb1018fbde4)

16 years agor20151: remove meaningless checks
Simo Sorce [Wed, 13 Dec 2006 18:29:00 +0000 (18:29 +0000)]
r20151: remove meaningless checks
(This used to be commit 33a55f0cfc0c5eb3f3cfa8276fa258349ad42f8d)

16 years agor20150: better memory handling for some functions, make sure we don't
Simo Sorce [Wed, 13 Dec 2006 16:39:50 +0000 (16:39 +0000)]
r20150: better memory handling for some functions, make sure we don't
leak memory by using the wrong(long lived)  mem context
(This used to be commit a28cdd6e742cb72a728bd337546ee95fd4160ed8)

16 years agor20148: Forgot to merge. Ensure open_any_socket_out()
Jeremy Allison [Wed, 13 Dec 2006 05:54:39 +0000 (05:54 +0000)]
r20148: Forgot to merge. Ensure open_any_socket_out()
is safe from signals.
Jeremy.
(This used to be commit c264a0aa4a83a3d47db33446b16a8766bc14824f)

16 years agor20146: Now online checks are fully async we can do them
Jeremy Allison [Wed, 13 Dec 2006 01:11:29 +0000 (01:11 +0000)]
r20146: Now online checks are fully async we can do them
every cache timeout times.
Jeremy.
(This used to be commit 5d364bc5ccc45b8d7bf3e484d16b37ac9e06b5cf)

16 years agor20140: Make online/offline detection completely asynchronous.
Jeremy Allison [Tue, 12 Dec 2006 22:41:42 +0000 (22:41 +0000)]
r20140: Make online/offline detection completely asynchronous.
Now I've done this I might be able to reduce the probe
timeout and reduce the backoff algorithm, going back
to checking every cache time seconds (5 mins by default),
as the parent or forked domain child will never block.
Jeremy.
(This used to be commit d0add5f946cf63ea43067e8e935876b5346d11de)

16 years agor20136: Fix #4290. Properly compute time to password expiration in message from
Jim McDonough [Tue, 12 Dec 2006 22:05:48 +0000 (22:05 +0000)]
r20136: Fix #4290.  Properly compute time to password expiration in message from
pam_winbind.  Thanks to Andrew Benham <andrew.benham@thus.net>
(This used to be commit 0d03f5137936546253a8b3334995f536f3621d57)

16 years agor20133: get rid of defined but not used warning - static function only used
Herb Lewis [Tue, 12 Dec 2006 20:30:31 +0000 (20:30 +0000)]
r20133: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_NATIVE_ICONV
(This used to be commit 43ab1d2ba5eb24fc22f8d53c650bf39e95fb133b)

16 years agor20132: get rid of defined but not used warning - static function only used
Herb Lewis [Tue, 12 Dec 2006 20:27:01 +0000 (20:27 +0000)]
r20132: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_KRB5
(This used to be commit c6cdf76c5809b4a4b145acb7dd4a695aaf7fcd28)

16 years agor20131: get rid of a few no previous prototype warnings
Herb Lewis [Tue, 12 Dec 2006 20:15:47 +0000 (20:15 +0000)]
r20131: get rid of a few no previous prototype warnings
(This used to be commit e710a7d39a662a1a339f3f71c4b051fde1bb5a16)

16 years agor20124: clean up nested extern declaration warnings
Herb Lewis [Tue, 12 Dec 2006 17:38:42 +0000 (17:38 +0000)]
r20124: clean up nested extern declaration warnings
(This used to be commit ac3eb7813e33b9a2e78c9158433f7ed62c3b62bb)

16 years agor20119: Update help info indicating how to use separators (forward slash only)
Jim McDonough [Tue, 12 Dec 2006 16:40:57 +0000 (16:40 +0000)]
r20119: Update help info indicating how to use separators (forward slash only)
and properly use backslashes in "net ads join computername="
(This used to be commit cc26e2f9a155529b8ac2122bd2bec401bb516264)

16 years agor20118: Fix some more warnings
Simo Sorce [Tue, 12 Dec 2006 15:16:26 +0000 (15:16 +0000)]
r20118: Fix some more warnings
(This used to be commit b6db21ff65139f45a1789105241e4018b61ca472)

16 years agor20117: 1st Error in the merge
Simo Sorce [Tue, 12 Dec 2006 15:14:27 +0000 (15:14 +0000)]
r20117: 1st Error in the merge
(This used to be commit 5e46c43a2e4b9a3ee8f1f219c96a6b132bb09322)

16 years agor20116: Start merging in the work done to create the new idmap subsystem.
Simo Sorce [Tue, 12 Dec 2006 14:52:13 +0000 (14:52 +0000)]
r20116: Start merging in the work done to create the new idmap subsystem.

Simo.
(This used to be commit 50cd8bffeeed2cac755f75fc3d76fe41c451976b)

16 years agor20110: Fix interaction between paranoid malloc checker
Jeremy Allison [Mon, 11 Dec 2006 18:56:36 +0000 (18:56 +0000)]
r20110: Fix interaction between paranoid malloc checker
and lib/replace. Found by Herb - thanks !
Jeremy.
(This used to be commit 67c4d5e73fe066910f7b1ca4624541a9bbbf7750)

16 years agor20098: Properly fix issues with create_token_from_username()
Jeremy Allison [Sun, 10 Dec 2006 05:23:47 +0000 (05:23 +0000)]
r20098: Properly fix issues with create_token_from_username()
reported by James. Ensure that this function allocates
everything on the temporary context except the return
memory. Never call this with a null mem context, and
now use conn->mem_ctx instead in smbd/service.c.
Remove separate free functions for conn->ngroups
and conn->nt_user_token as they are now always
talloc'ed off the conn->mem_ctx. Future optimization
will be to remove conn->mem_ctx and make all objects
pointed to in the conn struct talloc'ed off conn itself.
Easy to free then :-).
Jeremy.
(This used to be commit f83b6de44f1058811ff94ac72a8a71bd8e49e4e8)

16 years agor20097: Ensure found_username is freed correctly when
Jeremy Allison [Sat, 9 Dec 2006 23:55:20 +0000 (23:55 +0000)]
r20097: Ensure found_username is freed correctly when
talloced on the null context.
Jeremy.
(This used to be commit 2c59c4dddceb9cb12848d7ee48257c5e93ea2667)

16 years agor20090: Fix a class of bugs found by James Peach. Ensure
Jeremy Allison [Sat, 9 Dec 2006 02:58:18 +0000 (02:58 +0000)]
r20090: Fix a class of bugs found by James Peach. Ensure
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
(This used to be commit 0ffca7559e07500bd09a64b775e230d448ce5c24)

16 years agor20089: Put gpfs acl function into vfs_gpfs module. Thanks to Gomati Mohanan
Jim McDonough [Fri, 8 Dec 2006 18:56:01 +0000 (18:56 +0000)]
r20089: Put gpfs acl function into vfs_gpfs module.  Thanks to Gomati Mohanan
<gomati.mohanan@in.ibm.com>.

Also fix fields for sec_desc differences between 3.0 and 3.0.24 in
nfs4_acls.c.
(This used to be commit 3d6f387783467bbd7ea88d6a853b41572badf1ef)

16 years agor20087: Ensure we clean up any random pending events we
Jeremy Allison [Fri, 8 Dec 2006 18:40:13 +0000 (18:40 +0000)]
r20087: Ensure we clean up any random pending events we
may have inherited from our parent in the winbindd
forked child.
Jeremy.
(This used to be commit 0a1352f440a9d9b974ad8d571b2e48a43a15b6cc)

16 years agor20082: When fork_domain_child is forked when we're offline
Jeremy Allison [Fri, 8 Dec 2006 18:07:44 +0000 (18:07 +0000)]
r20082: When fork_domain_child is forked when we're offline
the child inherits *all* active check_online timout handlers.
This is bad when it's not our domain (ie. BUILTIN).
Jeremy.
(This used to be commit 8d815ec4c103a83ef7cea0ae5fc64681f6bcb48a)

16 years agor20069: Fix logic bug I introduced
Volker Lendecke [Thu, 7 Dec 2006 19:21:37 +0000 (19:21 +0000)]
r20069: Fix logic bug I introduced
(This used to be commit d935ecec98747dfd9f35ab81760ef95a0d983ed7)

16 years agor20063: Fix a missing protoype warning in freelistcheck.c
Volker Lendecke [Thu, 7 Dec 2006 10:49:17 +0000 (10:49 +0000)]
r20063: Fix a missing protoype warning in freelistcheck.c
(This used to be commit 2fdfc54e7eebc68c81ad5f3fa8d0607bd3b579c5)

16 years agor20060: Fix the timout calculation.
Jeremy Allison [Thu, 7 Dec 2006 05:48:01 +0000 (05:48 +0000)]
r20060: Fix the timout calculation.
Jeremy.
(This used to be commit 017be792f3c41aba2cbda10b53d80aad91c5d666)

16 years agor20058: Ensure we actually do the increasing time
Jeremy Allison [Thu, 7 Dec 2006 00:08:10 +0000 (00:08 +0000)]
r20058: Ensure we actually do the increasing time
calculation when in offline mode.
Jeremy.
(This used to be commit b7dc67ab2a78aba8dc8324430798ef56325d3cd6)

16 years agor20057: Attempt to fix connect timeouts when connected on
Jeremy Allison [Wed, 6 Dec 2006 23:14:15 +0000 (23:14 +0000)]
r20057: Attempt to fix connect timeouts when connected on
a network but not one on which any home DC's can
be found (hotel network problem). Still testing
but this is getting close.
Jeremy.
(This used to be commit 369c9e4138b93f7cfb6680f0beb541f58554e856)

16 years agor20054: Revert my changes, Simo promised to work on it :-)
Volker Lendecke [Wed, 6 Dec 2006 14:40:47 +0000 (14:40 +0000)]
r20054: Revert my changes, Simo promised to work on it :-)
(This used to be commit 4b5cf0c9cffe9903c86ac7e8b41c303fdbde5bac)

16 years agor20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string
Volker Lendecke [Wed, 6 Dec 2006 11:45:33 +0000 (11:45 +0000)]
r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string
(This used to be commit f64866a43fbc21666e919cafdf3002a8e43c60af)

16 years agor20049: Reformatting
Volker Lendecke [Wed, 6 Dec 2006 11:01:27 +0000 (11:01 +0000)]
r20049: Reformatting
(This used to be commit 75555ae1c8039b7bbca796dd16609de08230265a)

16 years agor20048: Fix vfs_full_audit after Jims kernel_flock addition
Volker Lendecke [Wed, 6 Dec 2006 10:21:20 +0000 (10:21 +0000)]
r20048: Fix vfs_full_audit after Jims kernel_flock addition
(This used to be commit 4fe19e741fcb384f0cec59d3ec742d5bd173d41f)

16 years agor20046: Add ldb_search_exp_fmt and port comment to 4
Volker Lendecke [Tue, 5 Dec 2006 16:20:39 +0000 (16:20 +0000)]
r20046: Add ldb_search_exp_fmt and port comment to 4
(This used to be commit 1fe41c96f53b0d83e8779050e2149a5e70b5dad0)

16 years agor20037: Reduce code size slightly by shuffling stuff around
Volker Lendecke [Tue, 5 Dec 2006 07:36:14 +0000 (07:36 +0000)]
r20037: Reduce code size slightly by shuffling stuff around
(This used to be commit 0742faaacd496f9cc4581a1fad74217024383661)

16 years agor20036: Merge ldb_search_exp_fmt -- Thanks simo
Volker Lendecke [Tue, 5 Dec 2006 06:25:12 +0000 (06:25 +0000)]
r20036: Merge ldb_search_exp_fmt -- Thanks simo
(This used to be commit fa6fa1268b33334d17869d0f096cf7600e88f993)

16 years agor20035: Fix obvious horrible bug in falling back to MS-RPC
Jeremy Allison [Tue, 5 Dec 2006 06:15:23 +0000 (06:15 +0000)]
r20035: Fix obvious horrible bug in falling back to MS-RPC
methods.
Jeremy.
(This used to be commit 7ac4ae4b517a18e97673e95d862a5b18175252c1)

16 years agor20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
Volker Lendecke [Sun, 3 Dec 2006 17:34:11 +0000 (17:34 +0000)]
r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
stuff. Revert the last change.

This needs better fixing.

Volker
(This used to be commit ad1e00430bf5c4130023d30e9c8266ecdc640d2b)

16 years agor20019: Replace one set of tricky code by calls to another set of tricky code:
Volker Lendecke [Sun, 3 Dec 2006 17:16:45 +0000 (17:16 +0000)]
r20019: Replace one set of tricky code by calls to another set of tricky code:
Initializing the reg_db now uses reg_createkey and reg_setvalue.

Volker
(This used to be commit cab5ccbbe484795f13531726d68b978073262e33)

16 years agor20018: Fix a memleak in reg_createkey
Volker Lendecke [Sun, 3 Dec 2006 16:51:31 +0000 (16:51 +0000)]
r20018: Fix a memleak in reg_createkey
(This used to be commit 281640823bfe25f513f44f6c6d7022a11b957fa5)

16 years agor20017: Make srvsvc_NetShareAdd & friends take care of registry shares
Volker Lendecke [Sun, 3 Dec 2006 16:19:29 +0000 (16:19 +0000)]
r20017: Make srvsvc_NetShareAdd & friends take care of registry shares
(This used to be commit fc29a283cc9c2458375aa4fe2ecef82e6a3847df)

16 years agor20016: Add two utility functions for easy opening/creating registry keys
Volker Lendecke [Sun, 3 Dec 2006 16:19:15 +0000 (16:19 +0000)]
r20016: Add two utility functions for easy opening/creating registry keys
(This used to be commit ad22a467185e871d893e8133741b525889c2aa6f)

16 years agor20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re...
Volker Lendecke [Sun, 3 Dec 2006 16:18:31 +0000 (16:18 +0000)]
r20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re-use the handle
(This used to be commit 0afd696f88ed04f562ef64201ac2e58cef372a90)

16 years agor20014: Ouch.... "res" is not a flag here, it is the service number...
Volker Lendecke [Sun, 3 Dec 2006 15:34:52 +0000 (15:34 +0000)]
r20014: Ouch.... "res" is not a flag here, it is the service number...
(This used to be commit a4862f48d085d1f518389f86a410722e91449755)

16 years agor20013: Fix segfaults: parm_error is a unique in/out ptr
Volker Lendecke [Sun, 3 Dec 2006 10:09:37 +0000 (10:09 +0000)]
r20013: Fix segfaults: parm_error is a unique in/out ptr
(This used to be commit 0104371dd648204c9e8102cdc399539857be4a63)

16 years agor20012: Reformatting
Volker Lendecke [Sat, 2 Dec 2006 23:01:34 +0000 (23:01 +0000)]
r20012: Reformatting
(This used to be commit b32c65cb6243f939247bcfb0f14e4e49dc5ee13e)

16 years agor20007: Fix a const warning just introduced
Volker Lendecke [Sat, 2 Dec 2006 11:18:19 +0000 (11:18 +0000)]
r20007: Fix a const warning just introduced
(This used to be commit 3da37287cadfe251491bcefea4ca9d407048868b)

16 years agor20006: Convert the registry shares to use the new API
Volker Lendecke [Sat, 2 Dec 2006 10:53:00 +0000 (10:53 +0000)]
r20006: Convert the registry shares to use the new API
(This used to be commit 66e889bbabde6dfd05df46937635a6d3e606cb27)

16 years agor20005: reg_open_path should become the replacement for regkey_open_internal.
Volker Lendecke [Sat, 2 Dec 2006 10:52:37 +0000 (10:52 +0000)]
r20005: reg_open_path should become the replacement for regkey_open_internal.
(This used to be commit a6039eb46c6506b4e55e816d50edb618e800007f)

16 years agor20004: Remove a const, "name" is allocated anyway
Volker Lendecke [Sat, 2 Dec 2006 10:51:54 +0000 (10:51 +0000)]
r20004: Remove a const, "name" is allocated anyway
(This used to be commit dc0300ec70ff67aaec9b0bab6a1dd4d0e6fde5ac)

16 years agor20003: Fix error message
Volker Lendecke [Sat, 2 Dec 2006 10:51:21 +0000 (10:51 +0000)]
r20003: Fix error message
(This used to be commit de053583510999658b2969b244b43ae85fb87737)

16 years agor20001: Fix bug 4273, thanks to Pascal Terjan
Volker Lendecke [Sat, 2 Dec 2006 09:17:18 +0000 (09:17 +0000)]
r20001: Fix bug 4273, thanks to Pascal Terjan
(This used to be commit a2f5c929183fb74ad21664c747d04e88a4103505)

16 years agor19993: Fix the problem with Linux clients requesting O_WRONLY
Jeremy Allison [Fri, 1 Dec 2006 23:46:07 +0000 (23:46 +0000)]
r19993: Fix the problem with Linux clients requesting O_WRONLY
on write-only files. Jim please check. Should not affect
Windows clients - I ensured all the relevent Samba4
torture tests still pass.
Jeremy.
(This used to be commit 6df3cac44fb1eafa84f9fc0ce4485242b4cce111)

16 years agor19992: Add support to the tdb Makefile.in for executable extensions and for
Paul Green [Fri, 1 Dec 2006 20:45:43 +0000 (20:45 +0000)]
r19992: Add support to the tdb Makefile.in for executable extensions and for
separately specifying CPPFLAGS and LDFLAGS.
(This used to be commit 8c36f1a7458e7cf29c9ec647e98d0a1e2d32d239)

16 years agor19991: Sorry for this 2000-liner...
Volker Lendecke [Fri, 1 Dec 2006 20:01:09 +0000 (20:01 +0000)]
r19991: Sorry for this 2000-liner...

The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.

On that way it fixes creating keys with more than one element in the
path. This did not work before.

Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.

Volker
(This used to be commit fea52801de8c7b85c578d200c599475680c5339f)

16 years agor19990: Fix comment
Volker Lendecke [Fri, 1 Dec 2006 19:55:29 +0000 (19:55 +0000)]
r19990: Fix comment
(This used to be commit 8b3d860f27d166f1a0b8019f9c9c91355c6becdf)

16 years agor19986: ooops
Simo Sorce [Fri, 1 Dec 2006 16:37:25 +0000 (16:37 +0000)]
r19986: ooops
(This used to be commit 97f150fbbbee4837c15de121b418881241f321e2)

16 years agor19984: Must have been drunk yesterday.
Simo Sorce [Fri, 1 Dec 2006 16:13:06 +0000 (16:13 +0000)]
r19984: Must have been drunk yesterday.
Freeing memctx is all we need, fix double free stupidity
(This used to be commit 2a7454959e93e5bd11161707d0bd16a431b92351)

16 years agor19982: From Michael Adam (ma@sernet.de) (thanks!:-)
Stefan Metzmacher [Fri, 1 Dec 2006 15:12:22 +0000 (15:12 +0000)]
r19982: From Michael Adam (ma@sernet.de) (thanks!:-)

  Metze: as noted by "shattered" and discussed on the irc,
  here is a patch to lib/sysquotas_linux.c replacing some
  "get"s by "set"s. The other lib/sysquotas*.c files look
  ok to me. But in the linux variant, the problem is not
  in the actual call of quotactl but in the preparation of
  the respective "D" structs. This makes the difference
  between the get and set calls for SMB_USER_FS_QUOTA_TYPE
  and SMB_GROUP_FS_QUOTA_TYPE.

metze
(This used to be commit d303cc7e620d8879e153c6a145c331453cf6552f)

16 years agor19980: Implement pam account stack checks when obey pam restrictions is true.
Simo Sorce [Fri, 1 Dec 2006 15:06:34 +0000 (15:06 +0000)]
r19980: Implement pam account stack checks when obey pam restrictions is true.
It was missing for security=server/domain/ads

Simo.
(This used to be commit 550f651499c22c3c11594a0a39061a8a9b438d82)

16 years agor19979: Fix memleak on pw and change talloc_destroy to TALLOC_FREE for mem_ctx
Simo Sorce [Fri, 1 Dec 2006 15:04:53 +0000 (15:04 +0000)]
r19979: Fix memleak on pw and change talloc_destroy to TALLOC_FREE for mem_ctx
(This used to be commit defa0a352b32469984126ec5d47aab9ef8d6b61c)

16 years agor19978: More "net sam policy" improvements. Thanks to Karolin Seeger <ks@sernet.de>
Volker Lendecke [Fri, 1 Dec 2006 14:54:31 +0000 (14:54 +0000)]
r19978: More "net sam policy" improvements. Thanks to Karolin Seeger <ks@sernet.de>

Volker
(This used to be commit fde042f29e9e9ac19ed3380e8fbe45fa8441e705)

16 years agor19977: * Fix a crash in the secure DNS update code. Don't free
Gerald Carter [Fri, 1 Dec 2006 14:18:35 +0000 (14:18 +0000)]
r19977: * Fix a crash in the secure DNS update code.  Don't free
  the host_principal memory while it is still being referenced
  by the gss code.
(This used to be commit 7a5a12e892171f0e1b6355f84ee920307834c81f)

16 years agor19975: Deal with 2 keytypes I messed previously (DR/DE).
Jeremy Allison [Fri, 1 Dec 2006 01:58:43 +0000 (01:58 +0000)]
r19975: Deal with 2 keytypes I messed previously (DR/DE).
Fix code that mistakenly assumed tdb_traverse
returned 0 or -1, it actually returns -1 or the
number of entries traversed. Add a static as another
way to return the bad cache value.
Jeremy.
(This used to be commit 5266a70ae9971eb54fa769f89bec7c688285e811)

16 years agor19974: Add freelist check for cache. Fix testing of entry
Jeremy Allison [Fri, 1 Dec 2006 00:06:35 +0000 (00:06 +0000)]
r19974: Add freelist check for cache. Fix testing of entry
names (all except SEQNUM are *not* null terminated
strings).
Jeremy.
(This used to be commit bcb68260ba4e6a1ae6b681603367008309b9bfde)

16 years agor19963: Add 'registry shares = yes' and registry key security descriptors.
Volker Lendecke [Thu, 30 Nov 2006 07:38:40 +0000 (07:38 +0000)]
r19963: Add 'registry shares = yes' and registry key security descriptors.
(This used to be commit 6cab254c49e07b11c170511ec613f0f33914c3e6)

16 years agor19962: Revert bogus change in r19961. In future I will check configure.in
James Peach [Thu, 30 Nov 2006 06:26:11 +0000 (06:26 +0000)]
r19962: Revert bogus change in r19961. In future I will check configure.in
as well as Makefile.in :(
(This used to be commit 5d000fed595252d7b703af70b73f5a1d5d920918)

16 years agor19961: Remove VARDIR. Nothing is ever installed into this, so there's no
James Peach [Thu, 30 Nov 2006 04:55:42 +0000 (04:55 +0000)]
r19961: Remove VARDIR. Nothing is ever installed into this, so there's no
need to create it.
(This used to be commit f440efd961688116f304cebdef17bb681ed534c9)

16 years agor19959: Allow tdb to be built standalone in Samba3.
Jeremy Allison [Thu, 30 Nov 2006 03:05:55 +0000 (03:05 +0000)]
r19959: Allow tdb to be built standalone in Samba3.
Add code to check for loops in the free list.
Should help us validate tdb's against corruption.
Jeremy.
(This used to be commit f8e7386773cbbb31e2f42ffcbae9b979c1197635)

16 years agor19958: Add check for WINBIND_OFFLINE key.
Jeremy Allison [Thu, 30 Nov 2006 00:09:34 +0000 (00:09 +0000)]
r19958: Add check for WINBIND_OFFLINE key.
Jeremy.
(This used to be commit 270e84db6de66b4f20dc0a564f706dae4c00b0b2)

16 years agor19957: Initial framework to make winbindd robust
Jeremy Allison [Wed, 29 Nov 2006 23:20:22 +0000 (23:20 +0000)]
r19957: Initial framework to make winbindd robust
against tdb corruption. Needs fleshing out
(and I forgot one record type) and needs helpful
suggestion from Volker to validate freelist,
but should give an idea of how this will look.
Jeremy.
(This used to be commit 8eb53f74e414483afde7b1e38ea2a3f56ae3ec66)

16 years agor19950: talloc_destroy is replaced these days
Volker Lendecke [Wed, 29 Nov 2006 15:46:57 +0000 (15:46 +0000)]
r19950: talloc_destroy is replaced these days
(This used to be commit b6bf2e42672cc84e5c3af6f8b15a9d39c408db13)

16 years agor19948: Fix a memleak
Volker Lendecke [Wed, 29 Nov 2006 12:39:33 +0000 (12:39 +0000)]
r19948: Fix a memleak
(This used to be commit fd429c8c06e01452f04700518c93ecfaa51c3140)

16 years agor19947: Change regkey_open_internal to take the parent key and a talloc_ctx as
Volker Lendecke [Wed, 29 Nov 2006 10:51:00 +0000 (10:51 +0000)]
r19947: Change regkey_open_internal to take the parent key and a talloc_ctx as
arguments. This also replaces regkey_close_internal by TALLOC_FREE.

Volker
(This used to be commit a177bbb2d5611f03cec25b7577c2e6a542f94a69)

16 years agor19946: in SetKeySec, sd is just a [in,ref] ptr
Volker Lendecke [Wed, 29 Nov 2006 08:51:18 +0000 (08:51 +0000)]
r19946: in SetKeySec, sd is just a [in,ref] ptr
(This used to be commit 38a88ed5d71c5781286ed12a858dcfb135b33c90)

16 years agor19945: Fix a segfault -- lookup_rids needs to init the names even on failure
Volker Lendecke [Wed, 29 Nov 2006 08:11:33 +0000 (08:11 +0000)]
r19945: Fix a segfault -- lookup_rids needs to init the names even on failure
(This used to be commit eba404e668c270f2d31e3a8ab0721064eda39b40)

16 years agor19944: Fix from Don Watson -- thanks
Volker Lendecke [Wed, 29 Nov 2006 06:26:12 +0000 (06:26 +0000)]
r19944: Fix from Don Watson -- thanks
(This used to be commit c27e48594abecc4e67f3be457a4b942ae7ff4db5)

16 years agor19943: Fix bug 4267 -- Thanks to David!
Volker Lendecke [Wed, 29 Nov 2006 06:15:28 +0000 (06:15 +0000)]
r19943: Fix bug 4267 -- Thanks to David!
(This used to be commit 714971b34aad01cd855484d550c41bc0265ef051)

16 years agor19942: Fix Coverity id 333, a dereference before a NULL check.
Volker Lendecke [Wed, 29 Nov 2006 06:09:24 +0000 (06:09 +0000)]
r19942: Fix Coverity id 333, a dereference before a NULL check.

Metze, you wanted to port talloc_get_type_abort() to 4. Should I just use it
in 3-ldb?

Volker
(This used to be commit ba0df1c915c49afad629df789375440225968633)

16 years agor19941: One copy of this code should be sufficient.
James Peach [Tue, 28 Nov 2006 22:55:32 +0000 (22:55 +0000)]
r19941: One copy of this code should be sufficient.
(This used to be commit 493ba681e541292f1c2c6b6670bb2c48f63a0aa3)

16 years agor19939: ,fix compile warning about unused functions when not using heimdal
Gerald Carter [Tue, 28 Nov 2006 21:11:20 +0000 (21:11 +0000)]
r19939: ,fix compile warning about unused functions when not using heimdal
(This used to be commit f53983079bc285ad8ced8fc4dd40df66fad13718)

16 years agor19936: Patch from Kai Blin <kai.blin@gmail.com> to
Jeremy Allison [Tue, 28 Nov 2006 18:51:49 +0000 (18:51 +0000)]
r19936: Patch from Kai Blin <kai.blin@gmail.com> to
match Windows NTLMSSP flags.
Jeremy.
(This used to be commit 786318f84bef76c6acffa1ddf7cdba947509fbac)

16 years agor19935: always use discard_const_p() in lib/ldb/
Stefan Metzmacher [Tue, 28 Nov 2006 17:47:41 +0000 (17:47 +0000)]
r19935: always use discard_const_p() in lib/ldb/

metze
(This used to be commit 4a5da57306ad8cce5522ee72349cb85b447e295c)

16 years agor19932: Add some const
Volker Lendecke [Tue, 28 Nov 2006 13:41:45 +0000 (13:41 +0000)]
r19932: Add some const
(This used to be commit be3c444c37dc6f0ab91a2815a2efe6f7c38818c5)

16 years agor19930: Revert the winreg idl changes. At least enumkey does not work anymore today.
Volker Lendecke [Tue, 28 Nov 2006 13:09:32 +0000 (13:09 +0000)]
r19930: Revert the winreg idl changes. At least enumkey does not work anymore today.

With more than 5 different trees I can't swear that I did test this properly
yesterday. Sorry for the noise.

Volker
(This used to be commit 978a6196bf0a2280c7f74b4a6d9fa7941c3aa049)

16 years agor19929: Fix indentation
Volker Lendecke [Tue, 28 Nov 2006 12:18:00 +0000 (12:18 +0000)]
r19929: Fix indentation
(This used to be commit 2369ad08529d31bb77b9cb5378d0114669cdf8a8)

16 years agor19928: Fix klokwork id 4509, 4573, 4574.
Volker Lendecke [Tue, 28 Nov 2006 09:06:04 +0000 (09:06 +0000)]
r19928: Fix klokwork id 4509, 4573, 4574.
(This used to be commit c004d041817f0bdf99a205090c8b026dfb0d81bc)

16 years agor19927: Fix klokwork ID 4702
Volker Lendecke [Tue, 28 Nov 2006 08:11:04 +0000 (08:11 +0000)]
r19927: Fix klokwork ID 4702
(This used to be commit 820a64af25799c19f1731a08b8e4651aea8a516b)

16 years agor19921: Add license and copyright info
Gerald Carter [Mon, 27 Nov 2006 19:06:58 +0000 (19:06 +0000)]
r19921: Add license and copyright info
(This used to be commit a3e1682ba3196d7c8aec8f2c72f9e12a3707db40)

16 years agor19919: Convert winreg_EnumKey to use ref ** instead of a unique *.
Volker Lendecke [Mon, 27 Nov 2006 14:29:55 +0000 (14:29 +0000)]
r19919: Convert winreg_EnumKey to use ref ** instead of a unique *.

Volker
(This used to be commit b714b51884af0d79de8568410676d4889f23ffb6)

16 years agor19918: Convert winreg_CreateKey to use a ref ** instead of a unique *. W2k3 can...
Volker Lendecke [Mon, 27 Nov 2006 14:05:28 +0000 (14:05 +0000)]
r19918: Convert winreg_CreateKey to use a ref ** instead of a unique *. W2k3 can still
create keys on Samba and vice versa.

Jelmer, please check.

Thanks,

Volker
(This used to be commit 1b460d6cdfe0cadd915a5299e6ca9bb359bf0075)

16 years agor19917: Fix warnings
Volker Lendecke [Mon, 27 Nov 2006 08:41:41 +0000 (08:41 +0000)]
r19917: Fix warnings
(This used to be commit cf4309b9048a8417104cac660421a3dcd2e96ffe)

16 years agor19916: Fix some c++ warnings
Volker Lendecke [Mon, 27 Nov 2006 08:11:10 +0000 (08:11 +0000)]
r19916: Fix some c++ warnings
(This used to be commit fb5bcb826ecd10a81e7b19c0ce134ec88d341843)

16 years agor19915: Fix two type-punned warnings
Volker Lendecke [Mon, 27 Nov 2006 08:05:42 +0000 (08:05 +0000)]
r19915: Fix two type-punned warnings
(This used to be commit f1266475daa3687e0b0dc5333a6fbd12a9640c3a)

16 years agor19914: The "default" value with the name "" need different 0-length treatment as the
Volker Lendecke [Mon, 27 Nov 2006 07:52:46 +0000 (07:52 +0000)]
r19914: The "default" value with the name "" need different 0-length treatment as the
other StringBufs, otherwise clicking on a key with this value being set leads
to regedit.exe on w2k3 chew all memory.
(This used to be commit b148cde7f39859102288a87b6f0bd2b250947a85)

16 years agor19913: Fix a const warning
Volker Lendecke [Mon, 27 Nov 2006 07:44:19 +0000 (07:44 +0000)]
r19913: Fix a const warning
(This used to be commit a660993d140b860691c3ed0b71d3e8023e5a7c57)

16 years agor19912: Move the subkey cache to srv_winreg_nt.c
Volker Lendecke [Mon, 27 Nov 2006 07:41:59 +0000 (07:41 +0000)]
r19912: Move the subkey cache to srv_winreg_nt.c
(This used to be commit 01a53590a6325413551016effe302585a3a1e656)

16 years agor19900: Fix klokwork ID 3148, 3149
Volker Lendecke [Sat, 25 Nov 2006 17:14:39 +0000 (17:14 +0000)]
r19900: Fix klokwork ID 3148, 3149
(This used to be commit 1f3e20ef3985a0a16e8945907611654ef5e884c4)

16 years agor19899: Fix some C++ warnings and klokwork ID 3147
Volker Lendecke [Sat, 25 Nov 2006 17:11:29 +0000 (17:11 +0000)]
r19899: Fix some C++ warnings and klokwork ID 3147
(This used to be commit c5e041661ec6dd63188ad0a09a228192b6dfd2b3)

16 years agor19898: Fix klokwork ids 3127, 3128, 3129, 3130
Volker Lendecke [Sat, 25 Nov 2006 17:07:49 +0000 (17:07 +0000)]
r19898: Fix klokwork ids 3127, 3128, 3129, 3130
(This used to be commit 3250d20d27d4f85421052e877077526975b16e02)

16 years agor19896: Fix klokwork id 2279
Volker Lendecke [Sat, 25 Nov 2006 16:55:11 +0000 (16:55 +0000)]
r19896: Fix klokwork id 2279
(This used to be commit 558a13a755ff39c9f15ba4f0a2639ffe30c996ac)

16 years agor19895: Fix klokwork id 2278
Volker Lendecke [Sat, 25 Nov 2006 16:53:56 +0000 (16:53 +0000)]
r19895: Fix klokwork id 2278
(This used to be commit 8ccff6a4dd92dfad4942b562cd1bb27d22d59661)