kai/samba.git
16 years agor21525: Go ahead and checkin the mlock() & memalign() fixes so
Gerald Carter [Sat, 24 Feb 2007 12:40:43 +0000 (12:40 +0000)]
r21525: Go ahead and checkin the mlock() & memalign() fixes so
others don't get stuck with the winbindd hang.
Still waiting on additional confirmation from Guenther
that this fixes thes issues he was observing as well.
But it's been running in my local tree for a day without
problems.
(This used to be commit 0d2b80c6c4a744b05a0efdec352cddccc430e0c4)

16 years agor21517: Fix build warnings.
Günther Deschner [Fri, 23 Feb 2007 11:53:43 +0000 (11:53 +0000)]
r21517: Fix build warnings.

Guenther
(This used to be commit 82f1da8117434c52c383b33a905b3765f0240d4a)

16 years agor21509: Merge lp_passdb_backend() from rev 21506 to 3_0_25.
Lars Müller [Thu, 22 Feb 2007 23:12:36 +0000 (23:12 +0000)]
r21509: Merge lp_passdb_backend() from rev 21506 to 3_0_25.

Slightly change the DEBUG 0 message as suggested by Volker on
samba-technical.
(This used to be commit c02921e95d41fe93c5913d79dfb690fcc1d73de4)

16 years agor21508: Fix memleak in new idmap_tdb, thanks Herb.
Simo Sorce [Thu, 22 Feb 2007 21:59:54 +0000 (21:59 +0000)]
r21508: Fix memleak in new idmap_tdb, thanks Herb.

Jerry please check.

Simo.
(This used to be commit a5354aa9a0bd860500356f45d09fce3d01649c60)

16 years agor21507: Fix some "cannot access LDAP when no root" bugs.
Gerald Carter [Thu, 22 Feb 2007 20:52:27 +0000 (20:52 +0000)]
r21507: Fix some "cannot access LDAP when no root" bugs.
The two culprits were

* pdb_get_account_policy()
* pdb_get_group_sid()
(This used to be commit 6a69caf6907fad01b13aa4358ce5c62506f98495)

16 years agor21506: Allow old pre 3.0.22 multi passdb backend configurations to work with
Lars Müller [Thu, 22 Feb 2007 17:52:23 +0000 (17:52 +0000)]
r21506: Allow old pre 3.0.22 multi passdb backend configurations to work with
post 3.0.23.

This implementation considers spaces in ldapsam configs.  Such configs
are trunkated after the closing quote.
(This used to be commit 5cd9a2e25872db1881f2f67026bfcd52d060fc4b)

16 years agor21505: make sure mlock()'d memory is aligned on a page boundary
Gerald Carter [Thu, 22 Feb 2007 17:21:27 +0000 (17:21 +0000)]
r21505: make sure mlock()'d memory is aligned on a page boundary
(This used to be commit 52e6a2ceab794875781575ed17ec86808f6e26da)

16 years agor21500: Fix inappropriate creation of a krb5 ticket refreshing event when a user
Günther Deschner [Thu, 22 Feb 2007 13:35:01 +0000 (13:35 +0000)]
r21500: Fix inappropriate creation of a krb5 ticket refreshing event when a user
changed a password via pam_chauthtok. Only do this if

a) a user logs on using an expired password (or a password that needs to
be changed immediately) or

b) the user itself changes his password.

Also make sure to delete the in-memory krb5 credential cache (when a
user did not request a FILE based cred cache).

Finally honor the krb5 settings in the first pam authentication in the
chauthtok block (PAM_PRELIM_CHECK). This circumvents confusion when
NTLM samlogon authentication is still possible with the old password after
the password has been already changed (on w2k3 sp1 dcs).

Guenther
(This used to be commit c3005c48cd86bc1dd17fab80da05c2d34071b872)

16 years agor21483: Fix use of uninitialized variable.
Jeremy Allison [Wed, 21 Feb 2007 02:15:23 +0000 (02:15 +0000)]
r21483: Fix use of uninitialized variable.
Jeremy.
(This used to be commit 4a74d042c9108ed68cc92f27b390c261c0bc8885)

16 years agor21482: Use IPC$ not ipc$ for consistency.
Jeremy Allison [Wed, 21 Feb 2007 02:11:06 +0000 (02:11 +0000)]
r21482: Use IPC$ not ipc$ for consistency.
Jeremy.
(This used to be commit 42a846b3dfa50eea6592c6bb425f7bdb672c25f9)

16 years agor21481: No one said anything, so I'm disallowing anything
Jeremy Allison [Wed, 21 Feb 2007 02:04:28 +0000 (02:04 +0000)]
r21481: No one said anything, so I'm disallowing anything
but explicit shares in "default service" :-).
Jeremy.
(This used to be commit 90bdcce765998cc0f5768d24926d52b8a4a44f90)

16 years agor21480: Make fd_open match fd_close be translating
Jeremy Allison [Wed, 21 Feb 2007 01:55:08 +0000 (01:55 +0000)]
r21480: Make fd_open match fd_close be translating
errno into an NTSTATUS immediately.
Jeremy.
(This used to be commit 71dd02cc164197152e76d8141f906390c4bd1526)

16 years agor21478: Add 65k length limit for split SPNEGO blobs.
Jeremy Allison [Tue, 20 Feb 2007 23:56:46 +0000 (23:56 +0000)]
r21478: Add 65k length limit for split SPNEGO blobs.
Jeremy
(This used to be commit 6be078da267677e3e558033c28099e3932a17712)

16 years agor21474: Ensure trustdom_cache_shutdown() gets called
Jeremy Allison [Tue, 20 Feb 2007 19:57:14 +0000 (19:57 +0000)]
r21474: Ensure trustdom_cache_shutdown() gets called
on terminate. Pointed out by Herb.
Jeremy.
(This used to be commit 08998b74a51acd55eb6cbe095e682e2a79334736)

16 years agor21467: Add GPFS-provided DMAPI support based on their GPL library
Alexander Bokovoy [Tue, 20 Feb 2007 15:55:12 +0000 (15:55 +0000)]
r21467: Add GPFS-provided DMAPI support based on their GPL library
(This used to be commit 5876bedda51fce0c932ca0cdab074629b31a9c94)

16 years agor21462: Fix EnumValue (?)
Jelmer Vernooij [Tue, 20 Feb 2007 13:43:41 +0000 (13:43 +0000)]
r21462: Fix EnumValue (?)
(This used to be commit e73a418b5b0100936efb4c1133da3cfe3fcb61cd)

16 years agor21461: Not strictly necessary, as data_blob() panics if it can't allocate. But I'd
Volker Lendecke [Tue, 20 Feb 2007 12:16:20 +0000 (12:16 +0000)]
r21461: Not strictly necessary, as data_blob() panics if it can't allocate. But I'd
see this as a design flaw in data_blob() and it made me look in that routine.

Jeremy, revert or merge please :-)

Volker
(This used to be commit e7e6b8b5e0b00cc0746db4e9baa2e860074f903a)

16 years agor21460: Fix for server-side processing of SPNEGO auth
Jeremy Allison [Tue, 20 Feb 2007 06:22:20 +0000 (06:22 +0000)]
r21460: Fix for server-side processing of SPNEGO auth
fragmented into "max xmit" size security blob
chunks. Bug #4400. Needs limits adding, and also
a client-side version.
Jeremy.
(This used to be commit aa69f2481aafee5dccc3783b8a6e23ca4eb0dbfa)

16 years agor21454: Fix debug typo.
Günther Deschner [Mon, 19 Feb 2007 17:47:50 +0000 (17:47 +0000)]
r21454: Fix debug typo.

Guenther
(This used to be commit 5c4a58ff3ab261e32789f39f2cf478367b727318)

16 years agor21453: use the tdb mapping file for groups by default for compatibility with the...
Gerald Carter [Mon, 19 Feb 2007 17:21:21 +0000 (17:21 +0000)]
r21453: use the tdb mapping file for groups by default for compatibility with the 3.0.25 tree (for now)
(This used to be commit 53ab0d1822711038612f2ef9ccffaa3ed394c4ce)

16 years agor21450: No need to TALLOC_FREE twice here.
Günther Deschner [Mon, 19 Feb 2007 14:43:31 +0000 (14:43 +0000)]
r21450: No need to TALLOC_FREE twice here.

Guenther
(This used to be commit ad063d9a944e923777e538c2cb050d47f9f8bea0)

16 years agor21449: Talked to Jerry on irc, he does not see what might break with this: Change
Volker Lendecke [Mon, 19 Feb 2007 13:52:29 +0000 (13:52 +0000)]
r21449: Talked to Jerry on irc, he does not see what might break with this: Change
back the 'msdfs root = yes' default to 'no'.

Volker
(This used to be commit ec6ebdcdbf1146af21ab66731e018e2834b2b118)

16 years agor21446: Karolins "printjob username"
Volker Lendecke [Mon, 19 Feb 2007 13:30:07 +0000 (13:30 +0000)]
r21446: Karolins "printjob username"
(This used to be commit 19ee6779255a269830fa8ee51468a4738dadf942)

16 years agor21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0
Volker Lendecke [Mon, 19 Feb 2007 11:45:33 +0000 (11:45 +0000)]
r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0
(This used to be commit c852d9b56971673fc62eec3460720478d81c279d)

16 years agor21444: Check in tdb_parse_record. Not merging to the other branches yet, we need to
Volker Lendecke [Mon, 19 Feb 2007 11:19:53 +0000 (11:19 +0000)]
r21444: Check in tdb_parse_record. Not merging to the other branches yet, we need to
agree on the behaviour of non-existing records.

Tridge, can you comment? Should we change tdb_fetch, or should we have
different concepts in tdb_fetch() and tdb_parse_record() ?

Volker
(This used to be commit fba79e75c0138c3ae4e73014a1d1a2c2045c35bb)

16 years agor21417: Janitor for Herb. Make sure sharesec.c is functionally
Jeremy Allison [Sun, 18 Feb 2007 01:31:50 +0000 (01:31 +0000)]
r21417: Janitor for Herb. Make sure sharesec.c is functionally
identical in 3.0.25 and 3.0.
Jeremy.
(This used to be commit eabe14825877a05d544bb61080701170449c7d26)

16 years agor21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
Volker Lendecke [Sat, 17 Feb 2007 23:41:45 +0000 (23:41 +0000)]
r21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
as not doing it at all, but needs fixing. Also simplify the logic, I had
missed the "goto out" at the end of the function.

Volker
(This used to be commit 101789946130d51f3092d19f081071bdb5e43c21)

16 years agor21410: We have to increment the sequence number also when tdb_update_hash()
Volker Lendecke [Sat, 17 Feb 2007 21:46:13 +0000 (21:46 +0000)]
r21410: We have to increment the sequence number also when tdb_update_hash()
succeeded. Found while testing the brlock seqnum patch.

Tridge, please check!

Volker
(This used to be commit 815f2b19409dc015bb2a04b16224a7ac8071a991)

16 years agor21409: saved_status1 is not used anymore after aio write behind was removed
Volker Lendecke [Sat, 17 Feb 2007 18:47:40 +0000 (18:47 +0000)]
r21409: saved_status1 is not used anymore after aio write behind was removed
(This used to be commit 29a1892c131ed41a06d3dcfdb5d21371e60c1ba6)

16 years agor21399: need to zero the request and response structures
Herb Lewis [Fri, 16 Feb 2007 20:27:30 +0000 (20:27 +0000)]
r21399: need to zero the request and response structures
(This used to be commit aa8f306fa545af653d8288919fa5a3b80f447bec)

16 years agor21397: revert accidential commit
Herb Lewis [Fri, 16 Feb 2007 20:02:13 +0000 (20:02 +0000)]
r21397: revert accidential commit
(This used to be commit 9fe5f7885771e68b11c7794653d0e4771eeac403)

16 years agor21396: fix wbinfo --lookup-rids command
Herb Lewis [Fri, 16 Feb 2007 19:49:12 +0000 (19:49 +0000)]
r21396: fix wbinfo --lookup-rids command
allow detection of libbiconv if all others fail - need for FreeBSD
(This used to be commit 7acc9421b0643cb04bff1f1d98ecb899f9b09601)

16 years agor21394: Prevent nscd crash due to potential NULL pointer dereference in
Günther Deschner [Fri, 16 Feb 2007 17:25:54 +0000 (17:25 +0000)]
r21394: Prevent nscd crash due to potential NULL pointer dereference in
_nss_winbind_initgroups_dyn() on an empty group list.

Guenther
(This used to be commit 155b9e7c74d1a623e018fc2f8ca2e32e4aa3f213)

16 years agor21393: Fix typo.
Günther Deschner [Fri, 16 Feb 2007 16:59:28 +0000 (16:59 +0000)]
r21393: Fix typo.

Guenther
(This used to be commit 7bbb3409a530a6ac9712992c87c63e056511517b)

16 years agor21388: Merge support for providing replacement system headers.
Jelmer Vernooij [Fri, 16 Feb 2007 15:35:26 +0000 (15:35 +0000)]
r21388: Merge support for providing replacement system headers.
(This used to be commit 78d6c88f10d600e05c4346affbba1d95c614dc34)

16 years agor21387: Another important fix for non-AD domains:
Günther Deschner [Fri, 16 Feb 2007 15:13:57 +0000 (15:13 +0000)]
r21387: Another important fix for non-AD domains:

Avoid assigning 0 as primary group id for users in NSS calls.
Jerry, please check.

Guenther
(This used to be commit 03f5f7d0140c99411c137e7e2eac7e2d0c08202e)

16 years agor21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4.
Jelmer Vernooij [Fri, 16 Feb 2007 14:50:57 +0000 (14:50 +0000)]
r21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4.
(This used to be commit b84370513fbf790e599c33f177fb271a2a992b72)

16 years agor21383: More possible "security=share" fixes. If a client
Jeremy Allison [Fri, 16 Feb 2007 13:40:11 +0000 (13:40 +0000)]
r21383: More possible "security=share" fixes. If a client
is sending LMv2 make sure we test with the password
blob in the LM field as well as the NT field.
Jeremy.
(This used to be commit a6b55beae7ae0c70cf955d01f51f881f9f962910)

16 years agor21382: Important fix for winbind when using non-AD domains.
Günther Deschner [Fri, 16 Feb 2007 13:30:19 +0000 (13:30 +0000)]
r21382: Important fix for winbind when using non-AD domains.

Jeremy, I'm afraid you removed the "domain->initialized" from the
set_dc_types_and_flags() call when the connect to PI_LSARPC_DS failed
(with rev. 19148).

This causes now that init_dc_connection_network is called again and
again which in turn rescans the DC each time (which of course fails each
time with NT_STATUS_BUFFER_TOO_SMALL). Just continue with the
non-PI_LSARPC_DS scan so that the domain is initialized properly.

Guenther
(This used to be commit c6f63a08f55a4121cbe5aac537d2ef983dc25a97)

16 years agor21379: Attempt to fix the build on "gwen"
Volker Lendecke [Fri, 16 Feb 2007 12:13:52 +0000 (12:13 +0000)]
r21379: Attempt to fix the build on "gwen"
(This used to be commit 3d85eb758d2261e0749f6db0ce368a7c0d4df149)

16 years agor21369: sys_disk_free return type is SMB_BIG_UINT.
Simo Sorce [Thu, 15 Feb 2007 16:50:14 +0000 (16:50 +0000)]
r21369: sys_disk_free return type is SMB_BIG_UINT.
Fix dfree_retval to be SMB_BIG_UINT as well,
otherwise we may wrap up on > 2T file systems.

Simo.
(This used to be commit 0bb7f6492ccf4a965d70d43ee1483959c71bcdba)

16 years agor21365: Lets see which build farm machines have makecontext & friends
Volker Lendecke [Thu, 15 Feb 2007 14:09:39 +0000 (14:09 +0000)]
r21365: Lets see which build farm machines have makecontext & friends
(This used to be commit ab053a3b7186989b41180857e21e7d837de81cbd)

16 years agor21358: Some more debugging for _nss_winbind_initgroups_dyn() on Linux.
Günther Deschner [Thu, 15 Feb 2007 12:10:57 +0000 (12:10 +0000)]
r21358: Some more debugging for _nss_winbind_initgroups_dyn() on Linux.

Guenther
(This used to be commit 639b7989b3ad1438a443a33dc41115bcc90f72d2)

16 years agor21357: Fix typo.
Günther Deschner [Thu, 15 Feb 2007 12:05:19 +0000 (12:05 +0000)]
r21357: Fix typo.

Guenther
(This used to be commit e3c32583795631212dc0d5cd01981b27cde2a489)

16 years agor21353: In the turn of tracking down nss_winbind related bugs on Linux:
Günther Deschner [Thu, 15 Feb 2007 11:44:06 +0000 (11:44 +0000)]
r21353: In the turn of tracking down nss_winbind related bugs on Linux:
print NSS_STATUS code with DEBUG_NSS when leaving a function.

Guenther
(This used to be commit 53ecd63d94fd0a502ef5cdeb512c8e38795698e1)

16 years agor21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.
Günther Deschner [Thu, 15 Feb 2007 00:03:38 +0000 (00:03 +0000)]
r21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.

Guenther
(This used to be commit 7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890)

16 years agor21349: Fix memleak in ads_upn_suffixes().
Günther Deschner [Wed, 14 Feb 2007 20:52:23 +0000 (20:52 +0000)]
r21349: Fix memleak in ads_upn_suffixes().

Guenther
(This used to be commit 8462f323cf86f90b1bdf14a3953c5a4bda1b9533)

16 years agor21346: FIXME ! Our parsing here is wrong I think,
Jeremy Allison [Wed, 14 Feb 2007 17:17:32 +0000 (17:17 +0000)]
r21346: FIXME ! Our parsing here is wrong I think,
but for a level3 it makes no sense for
ptr_sec_desc to be NULL. JRA. Based on
a Vista sniff from Martin Zielinski <mz@seh.de>.
Jerry - part of the Vista patchset.
Jeremy.
(This used to be commit 60e26a9039fbe0fd632e306bf545331195fb1ce6)

16 years agor21345: Smaller fixes for adssearch:
Günther Deschner [Wed, 14 Feb 2007 16:20:38 +0000 (16:20 +0000)]
r21345: Smaller fixes for adssearch:

* get rid of horrible ads.h parsing
* add LDAP_SERVER_SHUTDOWN_NOTIFY_OID
* display hex bitmasks

Guenther
(This used to be commit 97ce4ccea215098f574a40a3192d37910f30c79a)

16 years agor21339: Fix the non-linux build. This is more evidence that this needs to be
Jim McDonough [Wed, 14 Feb 2007 14:25:56 +0000 (14:25 +0000)]
r21339: Fix the non-linux build.  This is more evidence that this needs to be
moved up one layer.
(This used to be commit 552ae93b14ff1674a8b2f369e57ad2d7d0712a70)

16 years agor21336: Fix indent (as pointed out by Volker).
Günther Deschner [Wed, 14 Feb 2007 13:51:42 +0000 (13:51 +0000)]
r21336: Fix indent (as pointed out by Volker).

Guenther
(This used to be commit dcbf7a1250aa5c6293ffba6a930ee23537ec9484)

16 years agor21324: Add linux setlease to the vfs layer. Next round, as Volker points out,
Jim McDonough [Wed, 14 Feb 2007 02:37:14 +0000 (02:37 +0000)]
r21324: Add linux setlease to the vfs layer.  Next round, as Volker points out,
it should be abstracted a little higher up so other os'es can have an
entry, but it will take a bit more work.  Thanks to Chetan Shringarpure
and Mathias Dietz.

I didn't increment the vfs number again because the kernel change notify
stuff hasn't been released yet anyway.
(This used to be commit 9463211bf3b46ee408b88dfbf42d498e3839d4cc)

16 years agor21320: Display query_user info level 16 in rpcclient.
Günther Deschner [Tue, 13 Feb 2007 16:04:36 +0000 (16:04 +0000)]
r21320: Display query_user info level 16 in rpcclient.

Guenther
(This used to be commit bc77622134e606b8a643454493ba316f84312d52)

16 years agor21319: Remove functions not needed anymore
Volker Lendecke [Tue, 13 Feb 2007 15:57:54 +0000 (15:57 +0000)]
r21319: Remove functions not needed anymore
(This used to be commit 0c8a364aec68bc7338d034b6f8223ec4085c9e07)

16 years agor21318: Fix Bug #4225.
Günther Deschner [Tue, 13 Feb 2007 15:56:09 +0000 (15:56 +0000)]
r21318: Fix Bug #4225.

Cached logon with pam_winbind should work now also for NT4 and samba3
domains.

Guenther
(This used to be commit b2f91154820219959b8008b15802c70e1d76d158)

16 years agor21312: merge from SAMBA_4_0:
Stefan Metzmacher [Tue, 13 Feb 2007 12:42:28 +0000 (12:42 +0000)]
r21312: merge from SAMBA_4_0:

fix memory hierachy, and access to already freed memory

metze
(This used to be commit 05a23dd75655a80667627e00e0a441b54ec92b22)

16 years agor21310: Fix invalid printfs in pam_winbind.
Günther Deschner [Tue, 13 Feb 2007 11:04:10 +0000 (11:04 +0000)]
r21310: Fix invalid printfs in pam_winbind.

Guenther
(This used to be commit 5a7b2fccb3cdc6a849aedcd256eea86faec1d54c)

16 years agor21309: Add PRINTF_ATTRIBUTE checks for log statements.
Günther Deschner [Tue, 13 Feb 2007 10:56:04 +0000 (10:56 +0000)]
r21309: Add PRINTF_ATTRIBUTE checks for log statements.

Guenther
(This used to be commit 968dfcc8218cacdd97c2c66929e95f5062ff464a)

16 years agor21308: Fix some typos and ensure to null terminate the correct strings.
Günther Deschner [Tue, 13 Feb 2007 10:42:53 +0000 (10:42 +0000)]
r21308: Fix some typos and ensure to null terminate the correct strings.

Guenther
(This used to be commit 16c90f30b93f32c4f8fed00a6cc154c596e4244d)

16 years agor21303: As discussed on samba-technical: Change the static array for the in-memory
Volker Lendecke [Mon, 12 Feb 2007 23:16:02 +0000 (23:16 +0000)]
r21303: As discussed on samba-technical: Change the static array for the in-memory
mirrors of the hash chain locks to a dynamically allocated one.

Jeremy, I count on you to revert it if the build farm freaks out, it's after
midnight here :-)

Volker
(This used to be commit c50f099be1fcae2d533e1c3816cb25c315ba167a)

16 years agor21284: Fix some unitilized variable warnings pointed out by Volker.
Gerald Carter [Sun, 11 Feb 2007 19:47:38 +0000 (19:47 +0000)]
r21284: Fix some unitilized variable warnings pointed out by Volker.
(This used to be commit 5c3edad86098c5271cb141b8f7885ca7f5b48072)

16 years agor21283: Do not display away debug output of cifs dfs resolver by default
Steve French [Sun, 11 Feb 2007 19:28:52 +0000 (19:28 +0000)]
r21283: Do not display away debug output of cifs dfs resolver by default
per Dave Howell's suggestion
(This used to be commit 529d64b4c862bee051e13a87e521d919c6dd84f5)

16 years agor21280: Fix an uninitialized variable warning. Jeremy, please check.
Volker Lendecke [Sun, 11 Feb 2007 14:55:21 +0000 (14:55 +0000)]
r21280: Fix an uninitialized variable warning. Jeremy, please check.

Volker
(This used to be commit 4faa37a515fb6c6fa0f9364271755f954429beec)

16 years agor21279: Get rid of 'aio write behind', this is broken.
Volker Lendecke [Sun, 11 Feb 2007 14:39:21 +0000 (14:39 +0000)]
r21279: Get rid of 'aio write behind', this is broken.

It should probably better be integrated with our write cache.

Volker
(This used to be commit 58bfd168b046a97a895aaa3384fd7af8d077a1d5)

16 years agor21278: The main goal of this was to get rid of the NetInBuffer / set_InBuffer. But it
Volker Lendecke [Sun, 11 Feb 2007 14:07:50 +0000 (14:07 +0000)]
r21278: The main goal of this was to get rid of the NetInBuffer / set_InBuffer. But it
turns out that this patch actually speeds up the async writes considerably.

I tested writing 100.000 times 65535 bytes with the allowed 10 ops in
parallel. Without this patch it took about 32 seconds on my dual-core 1.6GHz
laptop. With this patch it dropped to about 26 seconds. I can only explain it
by better cache locality, NewInBuffer allocates more than 128k, so we jump
around in memory more.

Jeremy, please check!

Volker
(This used to be commit 452d51bc6fd41771b9c41ba6391664513d7cf2cd)

16 years agor21277: Fix an off by one error in the signal handler for aio: We can actually receive
Volker Lendecke [Sun, 11 Feb 2007 13:42:48 +0000 (13:42 +0000)]
r21277: Fix an off by one error in the signal handler for aio: We can actually receive
AIO_PENDING_SIZE signals, not one less.

Jeremy I'm not merging this to 3_0_25, I want you to look at it first!

Volker
(This used to be commit 8fd0ec58360a349826508fc361a943650fdd6694)

16 years agor21274: As we now have POSIX opens which can unlink
Jeremy Allison [Sun, 11 Feb 2007 04:37:56 +0000 (04:37 +0000)]
r21274: As we now have POSIX opens which can unlink
with other open files we may have taken
the delete code path with more than one share mode
entry - ensure we only delete once by resetting
the delete on close flag.
Jeremy.
(This used to be commit 429dff31663e71556b5193b25d5b8e7e09fa5b9c)

16 years agor21273: * Protect the sasl bind against a NULL principal string
Gerald Carter [Sat, 10 Feb 2007 20:29:09 +0000 (20:29 +0000)]
r21273: * Protect the sasl bind against a NULL principal string
  in the SPNEGO negTokenInit
(This used to be commit fe70c224964bf15d626bfd4e0cc6d060e45bba87)

16 years agor21269: Reformatting
Volker Lendecke [Sat, 10 Feb 2007 13:15:58 +0000 (13:15 +0000)]
r21269: Reformatting
(This used to be commit b2eaa733c52113f53b6ff8aea9fce20ede1e3b1f)

16 years agor21265: Fix some valgrind errors -- not in 3_0
Volker Lendecke [Fri, 9 Feb 2007 23:14:23 +0000 (23:14 +0000)]
r21265: Fix some valgrind errors -- not in 3_0
(This used to be commit b419a3407532efcd50f54c77927b3b3bb566845f)

16 years agor21264: LDAP_OPT_ERROR_NUMBER seems more portable than LDAP_OPT_RESULT_CODE
Volker Lendecke [Fri, 9 Feb 2007 21:25:22 +0000 (21:25 +0000)]
r21264: LDAP_OPT_ERROR_NUMBER seems more portable than LDAP_OPT_RESULT_CODE
(This used to be commit 1b3239f2abea9146c7d0d4af06c47a63e0caf006)

16 years agor21263: getpeername() returning -1 is not a reliable indication if a TCP connection is
Volker Lendecke [Fri, 9 Feb 2007 20:58:17 +0000 (20:58 +0000)]
r21263: getpeername() returning -1 is not a reliable indication if a TCP connection is
dead. Might be my code, this rings a very distant bell...

Attempt to fix bug # 4372.

Volker
(This used to be commit 730cc3dc1e332449f3e902217ccb9cc3057b9ef3)

16 years agor21262: Final part of BUG 4093: fix %a with Windows XP 64bit
Gerald Carter [Fri, 9 Feb 2007 19:41:09 +0000 (19:41 +0000)]
r21262: Final part of BUG 4093: fix %a with Windows XP 64bit
(This used to be commit e2681eb4be1a9bd001eed0f39e5b5d370cf71ed6)

16 years agor21259: Fix coverity bug id #340. No way to process
Jeremy Allison [Fri, 9 Feb 2007 05:16:25 +0000 (05:16 +0000)]
r21259: Fix coverity bug id #340. No way to process
logon parameter as the code was written.
Jeremy.
(This used to be commit 7f1aee96a09d77de76b2cdbe5c2e6f27e6968b09)

16 years agor21258: Fix for connecting printers from Vista by storing
Gerald Carter [Fri, 9 Feb 2007 02:12:12 +0000 (02:12 +0000)]
r21258: Fix for connecting printers from Vista by storing
the printer GUID as a REG_SZ as Vista seems to
whine about unknown REG_BINARY values.

Thanks to Martin Zielinski <mz@seh.de> for his excellent
analysis on this.
(This used to be commit fa5490b71b5cd41b63b028aa8a316e1197263083)

16 years agor21257: Better fix for bug #4188 :
Jeremy Allison [Fri, 9 Feb 2007 02:03:39 +0000 (02:03 +0000)]
r21257: Better fix for bug #4188 :
Windows Vista RC1 and RC2 can't delete directory on Samba share
based on work by Joe Meadows <jmeadows@webopolis.com>.
Jeremy.
(This used to be commit 2dab8928769938ab79da7b7ce2d165fc388f9b00)

16 years agor21251: Okay, after Jeremy has kindly tested this, check it in :-)
Volker Lendecke [Thu, 8 Feb 2007 21:57:41 +0000 (21:57 +0000)]
r21251: Okay, after Jeremy has kindly tested this, check it in :-)

Attached find a workaround that works for me. This is not the "correct" fix,
to me it seems our DFS referral marshalling is broken. Vista requests level 4,
we reply with level 2, and Vista seems not to like that. If we reply with
level 3 it seems more happy.

Needs more work!

Volker
(This used to be commit 4c3a9135629415086698da28596f68f7a9db9133)

16 years agor21250: Partial fix for BUG 4093: Make %a expand to "Vista"
Gerald Carter [Thu, 8 Feb 2007 21:48:09 +0000 (21:48 +0000)]
r21250: Partial fix for BUG 4093: Make %a expand to "Vista"
based on the flags2 values in the negprot request.

This also includes some code for testing the dialect
strings for "SMB 2.001" but this is unreliable as Vista
only sends that in the 1st negprot and caches the fact
that we don't support it.  Restartnig the WOrkstation
service on the client clears the cache.
(This used to be commit d781eeb0e4362b7af1497634d26315498a5257d4)

16 years agor21247: In the refactoring I dropped a RESOLVE_DFSPATH call
Jeremy Allison [Thu, 8 Feb 2007 20:31:18 +0000 (20:31 +0000)]
r21247: In the refactoring I dropped a RESOLVE_DFSPATH call
from setpathinfo. Return it and make sure all paths
go through a dfs resolve.
Jeremy.
(This used to be commit 7fd3a146c11b70428ab5fbd7dc0272706abf8280)

16 years agor21246: Remove incorrect control on unix set info.
Jeremy Allison [Thu, 8 Feb 2007 19:42:27 +0000 (19:42 +0000)]
r21246: Remove incorrect control on unix set info.
We can take path or handle based calls.
Jeremy.
(This used to be commit a19fe0f0c4a809d9b086e904586243949f57ec96)

16 years agor21240: Fix longstanding Bug #4009.
Günther Deschner [Thu, 8 Feb 2007 17:02:39 +0000 (17:02 +0000)]
r21240: Fix longstanding Bug #4009.

For the winbind cached ADS LDAP connection handling
(ads_cached_connection()) we were (incorrectly) assuming that the
service ticket lifetime equaled the tgt lifetime. For setups where the
service ticket just lives 10 minutes, we were leaving hundreds of LDAP
connections in CLOSE_WAIT state, until we fail to service entirely with
"Too many open files".

Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP
connection after the ads_do_search_retry() has failed to submit the
search request (although the bind succeeded (returning an expired
service ticket that we cannot delete from the memory cred cache - this
will get fixed later)).

Guenther
(This used to be commit 7e1a84b7226fb8dcd5d34c64a3478a6d886a9a91)

16 years agor21239: if the workgroup name is longer than 16 chars we get garbage in the string
Simo Sorce [Thu, 8 Feb 2007 14:55:21 +0000 (14:55 +0000)]
r21239: if the workgroup name is longer than 16 chars we get garbage in the string
server_len is usually 256 (fstring).

Correctly terminate saving the lenght
(This used to be commit e7e44554bf7c61020e2c5c652e3f8f37a296d3aa)

16 years agor21238: Fix tab indent in self-written krb5.confs.
Günther Deschner [Thu, 8 Feb 2007 13:50:47 +0000 (13:50 +0000)]
r21238: Fix tab indent in self-written krb5.confs.

Guenther
(This used to be commit 4df582fa1049afe96bbee7e8cab93cfa82208ba3)

16 years agor21237: Forgot configure checks in 3_0 (3_0_25 is fine) for heimdal kinit fix.
Günther Deschner [Thu, 8 Feb 2007 12:40:29 +0000 (12:40 +0000)]
r21237: Forgot configure checks in 3_0 (3_0_25 is fine) for heimdal kinit fix.

Guenther
(This used to be commit 8700829c1f6b8851035c6b6d3da7aea720320db7)

16 years agor21231: get rid of unused defines that cause a redefined warning
Herb Lewis [Thu, 8 Feb 2007 02:17:29 +0000 (02:17 +0000)]
r21231: get rid of unused defines that cause a redefined warning
(This used to be commit 509ae5ffa17be340c41fecaaace75816c18316c6)

16 years agor21229: Don't indirect through a potentially null pointer :-).
Jeremy Allison [Thu, 8 Feb 2007 00:41:57 +0000 (00:41 +0000)]
r21229: Don't indirect through a potentially null pointer :-).
Jeremy.
(This used to be commit 6723f9d85ccb4883f15658aceb021b4c4a752edf)

16 years agor21228: Fix for fd leak on error path. Thanks to
Jeremy Allison [Thu, 8 Feb 2007 00:28:25 +0000 (00:28 +0000)]
r21228: Fix for fd leak on error path. Thanks to
dleonard@vintela.com for this fix !
Jeremy.
(This used to be commit 70b5db7d8c6aa324ad98436fe3fafe715c04c5a8)

16 years agor21227: Quick fix for Stevef - ensure the returned data on open
Jeremy Allison [Thu, 8 Feb 2007 00:14:37 +0000 (00:14 +0000)]
r21227: Quick fix for Stevef - ensure the returned data on open
is 8 byte aligned.
Jeremy.
(This used to be commit 7645044fcf77644839bb0d74163d93d03284bd67)

16 years agor21226: Fix bug #4377 (rename of "foo" -> "Foo" fails).
Jeremy Allison [Wed, 7 Feb 2007 22:20:31 +0000 (22:20 +0000)]
r21226: Fix bug #4377 (rename of "foo" -> "Foo" fails).
This is actually an interesting case as it exposed bad code in our DFS redirect
module (that was where the bug was introduced).
Caused by our turning on dfsroot be default.
Jeremy.
(This used to be commit 5fe25588f57ee59d70a66c755dfe70312e7afd08)

16 years agor21225: Couple of fixes from Martin Zielinski mz@seh.de,
Jeremy Allison [Wed, 7 Feb 2007 20:20:56 +0000 (20:20 +0000)]
r21225: Couple of fixes from Martin Zielinski mz@seh.de,
one typo, one to make sure that time initialization
is done before modules that depend on it (printer
initialization).
Jeremy.
(This used to be commit 6df32b4a6a9abd40e963c188b4c8769f15a0ab9b)

16 years agor21224: Initial checkin of cifs_host_name resolver helper script
Steve French [Wed, 7 Feb 2007 20:16:02 +0000 (20:16 +0000)]
r21224: Initial checkin of cifs_host_name resolver helper script
(needed by /sbin keyctl utils to finish the upcall)
(This used to be commit 738d29dbcc6eae44ea91bdcf59a38c423dad1e29)

16 years agor21223: Try and fix bug #4361 - Vista backup fails.
Jeremy Allison [Wed, 7 Feb 2007 19:43:44 +0000 (19:43 +0000)]
r21223: Try and fix bug #4361 - Vista backup fails.
Based on work from  Joe Meadows <jameadows@webopolis.com>.
One for the Vista patchset.
Jeremy.
(This used to be commit 470a4dc30874b00c599806cb6dbc06fe2775144c)

16 years agor21219: Speed up the initial startup time of smbd on systems with loaded disk
Volker Lendecke [Wed, 7 Feb 2007 13:26:13 +0000 (13:26 +0000)]
r21219: Speed up the initial startup time of smbd on systems with loaded disk
subsystems. See the comment in the diff.

Volker
(This used to be commit 92fdb1193de8e7c857603e4fcd4a92b9a0a0f3bd)

16 years agor21218: Fix typo
Volker Lendecke [Wed, 7 Feb 2007 12:16:23 +0000 (12:16 +0000)]
r21218: Fix typo
(This used to be commit 5b25ce30022b5968717691223d065a8e0770c6e3)

16 years agor21217: Just found a system that does not define in_addr_t but only struct
Volker Lendecke [Wed, 7 Feb 2007 11:26:36 +0000 (11:26 +0000)]
r21217: Just found a system that does not define in_addr_t but only struct
in_addr. Okay, it's a SuSE 7.0, but if the fix is so simple I think we should
not drop that :-)

Volker
(This used to be commit a5d0d1c1e63c63388540a24854bde380cd4b06bf)

16 years agor21210: Fix POSIX open to return an info level.
Jeremy Allison [Wed, 7 Feb 2007 02:39:43 +0000 (02:39 +0000)]
r21210: Fix POSIX open to return an info level.
Jeremy.
(This used to be commit 5fa720f04f5d3b736145f9323aa8f4e623c14a41)

16 years agor21207: Make the code match the spec :-).
Jeremy Allison [Wed, 7 Feb 2007 00:49:45 +0000 (00:49 +0000)]
r21207: Make the code match the spec :-).
Jeremy.
(This used to be commit 36afae2d48a3c3e97d1c2c35275f99d51ba2b64a)

16 years agor21204: Add define for new QFS Info for "who am i"
Steve French [Tue, 6 Feb 2007 23:25:02 +0000 (23:25 +0000)]
r21204: Add define for new QFS Info for "who am i"
(This used to be commit 739a608eadd9448791366f26b42b06d38d77e037)

16 years agor21203: Regenerate C files after pidl updates.
Jelmer Vernooij [Tue, 6 Feb 2007 23:02:27 +0000 (23:02 +0000)]
r21203: Regenerate C files after pidl updates.
(This used to be commit 1dc2ba09c7afc516d894fddfed613990ccf1f1ee)

16 years agor21202: On some build hosts, the first tests fail with CONNECTION_REFUSED. On my
Volker Lendecke [Tue, 6 Feb 2007 22:38:31 +0000 (22:38 +0000)]
r21202: On some build hosts, the first tests fail with CONNECTION_REFUSED. On my
solaris 9 box I could solve that with an increased wait time.

Volker
(This used to be commit 4ea654857af48640d86377418f7a91a91c830ced)