ira/wip.git
21 years agoCorrectly return access denied on share mode deny when we can't open the
Jeremy Allison [Wed, 12 Feb 2003 01:12:33 +0000 (01:12 +0000)]
Correctly return access denied on share mode deny when we can't open the
file. This is a regression that was damaged by other code.
Jeremy.
(This used to be commit 5cdc957ea6335d8bb4248065a3b60a0a26e766a8)

21 years agosetup the %U substitution in winbindd for the homedir template
Andrew Tridgell [Wed, 12 Feb 2003 00:56:14 +0000 (00:56 +0000)]
setup the %U substitution in winbindd for the homedir template
(This used to be commit 6186c10ceb2e61cd684968b56d3f32d9916538f8)

21 years agoadd a note about relative opens with blank paths - its a re-open!
Andrew Tridgell [Wed, 12 Feb 2003 00:41:35 +0000 (00:41 +0000)]
add a note about relative opens with blank paths - its a re-open!
(not implemented yet)
(This used to be commit bceac9cdde04a57d661b6a7ece329fa6d5a169bd)

21 years agoadd a note about a better method for finding netbios name of workgroup
Andrew Tridgell [Wed, 12 Feb 2003 00:40:41 +0000 (00:40 +0000)]
add a note about a better method for finding netbios name of workgroup
(not implemented yet)
(This used to be commit 8a8cca78adebba640c6ce971d8888515bf0ea4be)

21 years agopull_ucs2_talloc() should pull to a char**, not a void**
Andrew Tridgell [Wed, 12 Feb 2003 00:39:36 +0000 (00:39 +0000)]
pull_ucs2_talloc() should pull to a char**, not a void**
(This used to be commit 3cf539421fa2a5c276baeedbdbf42ced29d9f1e4)

21 years agoremoved a duplicate copy of smb_io_sid_array()
Andrew Tridgell [Tue, 11 Feb 2003 22:53:57 +0000 (22:53 +0000)]
removed a duplicate copy of smb_io_sid_array()
(This used to be commit 2ef72f95003cebf2ff56e47f16fb8be0e8032042)

21 years agoadded server stubs for lsa_enum_acct_with_right
Andrew Tridgell [Tue, 11 Feb 2003 21:55:48 +0000 (21:55 +0000)]
added server stubs for lsa_enum_acct_with_right
(This used to be commit aa2abacaf48924797b6803786c14c9f303185e4a)

21 years agoPatch from Anthony Liguori <aliguor@us.ibm.com> to remove scandir() portability
Andrew Bartlett [Tue, 11 Feb 2003 21:54:36 +0000 (21:54 +0000)]
Patch from Anthony Liguori <aliguor@us.ibm.com> to remove scandir() portability
madness.

Andrew Bartlett
(This used to be commit 7836b9a58d158a54a7326b3de5d2fa757a9bb5b6)

21 years agoremove trailing 'a' from VFS_MODULES targets...fix build
Jim McDonough [Tue, 11 Feb 2003 19:57:17 +0000 (19:57 +0000)]
remove trailing 'a' from VFS_MODULES targets...fix build
(This used to be commit fa4961b1fc9f0ab2a1c32c56c6200d86a61093c9)

21 years agoFixup delete on close torture.
Jeremy Allison [Tue, 11 Feb 2003 02:29:04 +0000 (02:29 +0000)]
Fixup delete on close torture.
Jeremy.
(This used to be commit b031e81f4f4d5dc10e792c216d269b49569f5af9)

21 years agoFix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Jeremy Allison [Tue, 11 Feb 2003 02:24:45 +0000 (02:24 +0000)]
Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit c98ebb3031649203e607264ecb15722adf55af58)

21 years agoFix the msdfs proxy handling code in dfsenum to return the cumulative number of
Shirish Kalele [Tue, 11 Feb 2003 01:45:15 +0000 (01:45 +0000)]
Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into HEAD]
(This used to be commit 9307942a89600004ae3467b1bbf0dc536698ecdf)

21 years agoautogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
Gerald Carter [Mon, 10 Feb 2003 17:30:20 +0000 (17:30 +0000)]
autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
(This used to be commit 15853857299c0de37b9cb736bb99928526924608)

21 years agoFix a mistake spotted by Metze
Richard Sharpe [Mon, 10 Feb 2003 16:42:24 +0000 (16:42 +0000)]
Fix a mistake spotted by Metze
(This used to be commit cf167e9249fee0ea871c0dac28e9a21aeeebd614)

21 years agoClean up our NTLMv2 code by moving the grunt work into a helper function.
Andrew Bartlett [Mon, 10 Feb 2003 12:22:57 +0000 (12:22 +0000)]
Clean up our NTLMv2 code by moving the grunt work into a helper function.

Andrew Bartlett
(This used to be commit 6789e237d7b070624ba09e7ed43680b838337b74)

21 years agoadded the 'lsaenumacctwithright' command to rpcclient. This allows you
Andrew Tridgell [Mon, 10 Feb 2003 11:31:23 +0000 (11:31 +0000)]
added the 'lsaenumacctwithright' command to rpcclient. This allows you
to lookup what SIDs have a particular privilege (that is how
privileges are stored).
(This used to be commit 3ddb5fb0dd33992b7db54a661752551a3fefc0b4)

21 years agoAs metze mentioned, this is the proper way to find perl...
Andrew Bartlett [Mon, 10 Feb 2003 10:36:09 +0000 (10:36 +0000)]
As metze mentioned, this is the proper way to find perl...

Andrew Bartlett
(This used to be commit f364921864bf4c33580c432f0d328c7ffc48a7df)

21 years agoperl might not be in /usr/bin/perl, so try and find it in the path.
Andrew Bartlett [Mon, 10 Feb 2003 09:23:30 +0000 (09:23 +0000)]
perl might not be in /usr/bin/perl, so try and find it in the path.

Perhaps this generated file should be autobuilt on samba.org for the
build farm and the tarballs.

Andrew Bartlett
(This used to be commit b8a07da68053b3eebb4f8c9ca9e620a67c878d15)

21 years agoUse safe_strcpy() instead of pstrcpy() for malloced strings.
Andrew Bartlett [Mon, 10 Feb 2003 09:20:09 +0000 (09:20 +0000)]
Use safe_strcpy() instead of pstrcpy() for malloced strings.

Andrew Bartlett
(This used to be commit 333d313c9d047697d7a8a519fdbc2b7da06745c2)

21 years agoFailure to find a CUPS printer, when auto-adding printers is not a level 0 error.
Andrew Bartlett [Mon, 10 Feb 2003 09:18:04 +0000 (09:18 +0000)]
Failure to find a CUPS printer, when auto-adding printers is not a level 0 error.

Andrew Bartlett
(This used to be commit 79650e08c9f1cbf66979adf2575d8b04e06fe4e7)

21 years agoSome cleanups:
Andrew Bartlett [Mon, 10 Feb 2003 09:16:05 +0000 (09:16 +0000)]
Some cleanups:

- Don't use pstrcpy into an allocated string - use safe_strcpy() directly
instead.

- Keep a copy of the 'server_info' attached to the vuid.  In future use this
for things like the session key, homedir and full name instead of current
copies.

- Try to avoid memory leak/segfault on Realloc failure

- clear up #endif comments

Andrew Bartlett
(This used to be commit 162477bb086827950b6cb71afa9bef62c2753c2e)

21 years ago(only for HEAD at the moment).
Andrew Bartlett [Sun, 9 Feb 2003 12:26:58 +0000 (12:26 +0000)]
(only for HEAD at the moment).

Add NTLMv2 support to our client, used when so configured ('client use NTLMv2 =
yes') and only when 'client use spengo = no'.  (A new option to allow the
client and server ends to chose spnego seperatly).

NTLMv2 signing doesn't yet work, and NTLMv2 is not done for NTLMSSP yet.

Also some parinoia checks in our input parsing.

Andrew Bartlett
(This used to be commit 85e9c060eab59c7692198f14a447ad59f05af437)

21 years agoEnsure we return NOSPACE if we can't fast allocate a print job.
Jeremy Allison [Sat, 8 Feb 2003 01:04:26 +0000 (01:04 +0000)]
Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
(This used to be commit 9cd29f2bacd7c61f82f799e97f93d88f98f9ece6)

21 years agoOne more fix for the difference between FILE and X_FILE.
Andrew Bartlett [Sat, 8 Feb 2003 01:00:55 +0000 (01:00 +0000)]
One more fix for the difference between FILE and X_FILE.
(This used to be commit 7e56014b2877cde489913310edbfd16c267d9859)

21 years agoEnsure we don't get problems between FILE and X_FILE buffers - always use the
Andrew Bartlett [Fri, 7 Feb 2003 23:39:47 +0000 (23:39 +0000)]
Ensure we don't get problems between FILE and X_FILE buffers - always use the
x_ varient of the command.

Andrew Bartlett
(This used to be commit 6a028507f0d5eadd2ec0a5b45c35e3a019a56f0b)

21 years agoSamba janitors: applying mbp's redundant umask fix.
Jeremy Allison [Fri, 7 Feb 2003 22:52:35 +0000 (22:52 +0000)]
Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5da1c01f135470257bb17a5257e6fb2)

21 years agoSamba janitor: adding mbp's umask patch :-).
Jeremy Allison [Fri, 7 Feb 2003 21:59:42 +0000 (21:59 +0000)]
Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit babbbd9c651e044832a78aa0fbcee5afd73770e2)

21 years agocheck pointer before dereferencing it
Gerald Carter [Fri, 7 Feb 2003 16:20:58 +0000 (16:20 +0000)]
check pointer before dereferencing it
(This used to be commit 786d91d75c909f6d407b8466c89181f26e62e68f)

21 years agoRevert Flag testing upon abartlet's request ;-)
Volker Lendecke [Fri, 7 Feb 2003 08:02:18 +0000 (08:02 +0000)]
Revert Flag testing upon abartlet's request ;-)

Volker
(This used to be commit e8f751fe84cbd20934116d5213f9bb1850aa9dfa)

21 years agoAdded extended audit module that logs to smbd log as well as syslog.
John Terpstra [Fri, 7 Feb 2003 05:00:34 +0000 (05:00 +0000)]
Added extended audit module that logs to smbd log as well as syslog.
(This used to be commit d2fe7e38b287b87d6c76a9b73724118928941e93)

21 years agomake sure we don't run over the end of 'name' in unix_convert()
Andrew Tridgell [Fri, 7 Feb 2003 04:01:36 +0000 (04:01 +0000)]
make sure we don't run over the end of 'name' in unix_convert()

Thanks to Andrew Bartlett for spotting this.
(This used to be commit b4c210ccb05e71a8ddf1c25d028452dd5cd93c72)

21 years agoMake account flags editable with pdbedit.
Volker Lendecke [Thu, 6 Feb 2003 16:53:58 +0000 (16:53 +0000)]
Make account flags editable with pdbedit.

Volker
(This used to be commit 597c50550955c5bdc0c646d5b751d377b40f3485)

21 years agoignore config.h.in in cvs as generated by autoheader
Andrew Tridgell [Thu, 6 Feb 2003 09:55:21 +0000 (09:55 +0000)]
ignore config.h.in in cvs as generated by autoheader
(This used to be commit 830423abd843dd20535755f910bc1e9563a0774f)

21 years agoignore configure in cvs
Andrew Tridgell [Thu, 6 Feb 2003 09:54:51 +0000 (09:54 +0000)]
ignore configure in cvs
(This used to be commit 0a5ed634d8d8999cc957d4917563ec3c174c311d)

21 years agoRemove configure and config.h.in from CVS.
Andrew Bartlett [Thu, 6 Feb 2003 09:20:32 +0000 (09:20 +0000)]
Remove configure and config.h.in from CVS.

configure and config.h.in is now regenerated by the 'autogen.sh' script.

However, samba.org will run autoconf and autoheader to keep the anonyomous
rsync 'unpacked' areas intact (helping the build farm), and released will ship
with the genereated files.

Andrew Bartlett
(This used to be commit 15bba73dea51a6394294fc627933d026d6002091)

21 years agoadded the LSA privileges server backend stubs. Right now they just log
Andrew Tridgell [Thu, 6 Feb 2003 05:42:19 +0000 (05:42 +0000)]
added the LSA privileges server backend stubs. Right now they just log
what was requested.
(This used to be commit 64ac6c2bcb729c4658de48e929cc792681903ecc)

21 years agoCollapse duplicate messages before sending.
Jeremy Allison [Wed, 5 Feb 2003 23:03:47 +0000 (23:03 +0000)]
Collapse duplicate messages before sending.
Jeremy.
(This used to be commit 203959f1c2389fa95736af09fee5b07e7ae8b659)

21 years agoFixed type.
Jeremy Allison [Wed, 5 Feb 2003 22:09:32 +0000 (22:09 +0000)]
Fixed type.
Jeremy.
(This used to be commit ae635bb6ec05ded8a36d7876be8f3e1b8475e35b)

21 years agoCheck for too many processes *before* the fork.
Jeremy Allison [Wed, 5 Feb 2003 21:17:12 +0000 (21:17 +0000)]
Check for too many processes *before* the fork.
Jeremy.
(This used to be commit dfb596b01288b7035c4448fd395e160a54144732)

21 years agoCUPS patch to log client name
Gerald Carter [Wed, 5 Feb 2003 06:37:54 +0000 (06:37 +0000)]
CUPS patch to log client name
(This used to be commit 364a4de6dfb93353fe0742c259c810ffc7e1eab6)

21 years agoHold the lock for a much shorter time when allocating a new jobid.
Jeremy Allison [Tue, 4 Feb 2003 23:52:46 +0000 (23:52 +0000)]
Hold the lock for a much shorter time when allocating a new jobid.
Jeremy.
(This used to be commit 0b5a0fec826475c6282177bae88dcdad23c2825d)

21 years agoMem alloc failure checks.
Jeremy Allison [Tue, 4 Feb 2003 23:44:05 +0000 (23:44 +0000)]
Mem alloc failure checks.
Jeremy.
(This used to be commit 4e33e3f37fd548b9b1ed3c84f673a853b0dc4818)

21 years agoUp the hash table size for printing tdb.c
Jeremy Allison [Tue, 4 Feb 2003 23:43:21 +0000 (23:43 +0000)]
Up the hash table size for printing tdb.c
Jeremy.
(This used to be commit 5f13d6b4a009a02c5d5ef9f806f0eb4b52cfe70c)

21 years agoEnsure we overwrite a tdb if the hash size changes.
Jeremy Allison [Tue, 4 Feb 2003 23:40:17 +0000 (23:40 +0000)]
Ensure we overwrite a tdb if the hash size changes.
Jeremy.
(This used to be commit 3497330ff53a264e433090066b7318c31d833411)

21 years agoAdd autogen.sh from distcc via mbp.
Andrew Bartlett [Tue, 4 Feb 2003 10:54:01 +0000 (10:54 +0000)]
Add autogen.sh from distcc via mbp.

This to allow us to remove configure from CVS.
(This used to be commit 9e8e352e102b75489b4540d701ce2c67c0f3cf31)

21 years agoActually checking both the account and password tests would be a good idea...
Andrew Bartlett [Tue, 4 Feb 2003 10:02:43 +0000 (10:02 +0000)]
Actually checking both the account and password tests would be a good idea...

Andrew Bartlett
(This used to be commit 49640635b15f53be6bb28d3d79255abe10c207dd)

21 years agoPatch from Edmund Lam <epl@unimelb.edu.au> to fix braindead Tru64 behaviour:
Andrew Bartlett [Tue, 4 Feb 2003 08:26:04 +0000 (08:26 +0000)]
Patch from Edmund Lam <epl@unimelb.edu.au> to fix braindead Tru64 behaviour:

Apparently acl_type is #defined to acl_common.entry_type in their acl.h....

Andrew Bartlett
(This used to be commit 3dfdaa0208ee538631378aa921300d95c596b70c)

21 years agoEnsure we only ever set fsp->conn in one place.
Jeremy Allison [Tue, 4 Feb 2003 01:43:11 +0000 (01:43 +0000)]
Ensure we only ever set fsp->conn in one place.
Jeremy.
(This used to be commit 2110901b381f2a749605c8e8b262fa5ceba11169)

21 years agoTry to allow old and new heimdal installs
Jim McDonough [Tue, 4 Feb 2003 01:39:06 +0000 (01:39 +0000)]
Try to allow old and new heimdal installs
(This used to be commit 29d25382ac394707da372d4af2b828bfcd0d6874)

21 years agoEnsure Samba passes the open attribute truncate tests in smbtorture.
Jeremy Allison [Tue, 4 Feb 2003 01:11:33 +0000 (01:11 +0000)]
Ensure Samba passes the open attribute truncate tests in smbtorture.
Jeremy.
(This used to be commit 651db9f242bb649f5efa4f4e59fe1ac0afe82981)

21 years agofix packaging
Herb Lewis [Tue, 4 Feb 2003 00:19:10 +0000 (00:19 +0000)]
fix packaging
(This used to be commit 591e4ac108116fee1ad0a8bf7cb8498ee76a953d)

21 years agoGot complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Jeremy Allison [Mon, 3 Feb 2003 23:17:24 +0000 (23:17 +0000)]
Got complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Now to make Samba pass it :-).
Jeremy.
(This used to be commit 510cd30a6ec72544d24b79c13fc8a7d1c9415757)

21 years agoGrrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.
Jeremy Allison [Mon, 3 Feb 2003 20:37:16 +0000 (20:37 +0000)]
Grrr. Kill all BSD-isms... Spotted by Paul Green <paulg@sw.stratus.com>.
Jeremy.
(This used to be commit 77737b498d0c1c3efb23891465623f44c03d1801)

21 years agoTry to get build working on systems with krb runtime but not devel libs.
Jim McDonough [Mon, 3 Feb 2003 18:10:27 +0000 (18:10 +0000)]
Try to get build working on systems with krb runtime but not devel libs.
Let's not assume that because one dir exists the whole shebang is there...
(This used to be commit 44fd5c827537bd14c2220f62f5e44190247ae556)

21 years agosmb signing compile fix
Tim Potter [Sun, 2 Feb 2003 22:49:28 +0000 (22:49 +0000)]
smb signing compile fix
(This used to be commit 22d7aa0e673baa1c26205d1c659ba71ad2f94609)

21 years agountest fix for wide links parameter bug.
Simo Sorce [Sun, 2 Feb 2003 18:08:43 +0000 (18:08 +0000)]
untest fix for wide links parameter bug.
it work properly on 2.2 and the patch apply so I think it should be ok.
(This used to be commit 36b2f6c9320fe46a1b5d2c4e90117b7839c35f21)

21 years agoAdd some return values, and don't attempt signing for NTLMSSP yet (it uses a
Andrew Bartlett [Sun, 2 Feb 2003 11:11:24 +0000 (11:11 +0000)]
Add some return values, and don't attempt signing for NTLMSSP yet (it uses a
different algorithm).

Andrew Bartlett
(This used to be commit e6f87c7ee5c61f03f81159a8017d31f439c4454a)

21 years agoSend the user's session key in the SAMLOGON reply, so that a member server can
Andrew Bartlett [Sun, 2 Feb 2003 05:10:26 +0000 (05:10 +0000)]
Send the user's session key in the SAMLOGON reply, so that a member server can
use smb signing.

Andrew Bartlett
(This used to be commit 574e8a8ab7c94ecd9113df42e395e83632980675)

21 years agoMore signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett [Sun, 2 Feb 2003 00:11:12 +0000 (00:11 +0000)]
More signing updates - start checking that the server isn't being spoofed.

Andrew Bartlett
(This used to be commit b1c722e306533babeffeba9d8c7dcfa00e019423)

21 years agoRemove textfile from CVS - it's available in SGML now
Jelmer Vernooij [Sat, 1 Feb 2003 19:32:42 +0000 (19:32 +0000)]
Remove textfile from CVS - it's available in SGML now
(This used to be commit 50a49e0babc67ca20435577d7336ec36e7487b67)

21 years agoConvert Anthony's RPC doc to SGML/XML
Jelmer Vernooij [Sat, 1 Feb 2003 19:30:03 +0000 (19:30 +0000)]
Convert Anthony's RPC doc to SGML/XML
(This used to be commit 5a6f79b4a0d72371957b6bbb9dcfeaeb8779af70)

21 years agoFirst attempt to convert John's GroupProfiles stuff to SGML/XML
Jelmer Vernooij [Sat, 1 Feb 2003 19:25:09 +0000 (19:25 +0000)]
First attempt to convert John's GroupProfiles stuff to SGML/XML
(This used to be commit 02aafdaa5a786f8e0c11114437e50164b126d032)

21 years agoFirst attempt to migrate the GroupProfiles stuff by John to SGML/XML
Jelmer Vernooij [Sat, 1 Feb 2003 19:22:26 +0000 (19:22 +0000)]
First attempt to migrate the GroupProfiles stuff by John to SGML/XML
(This used to be commit b174fb761e48d0ee366b04698b076278be2b82c2)

21 years agoWe now have client-side SMB signing support!
Andrew Bartlett [Sat, 1 Feb 2003 13:01:31 +0000 (13:01 +0000)]
We now have client-side SMB signing support!

This checking allows us to connect to Microsoft servers the use SMB signing,
within a few restrictions:

 - I've not get the NTLMSSP stuff going - it appears to work, but if you break
the sig - say by writing a zero in it - it still passes...
 - We don't currently verfiy the server's reply
 - It works against one of my test servers, but not the other...

However, it provides an excellent basis to work from.  Enable it with 'client
signing' in your smb.conf.

Doc to come (tomorrow) and this is not for 3.0, till we get it complete.

The CIFS Spec is misleading - the session key (for NTLMv1 at least) is the
standard session key, ie MD4(NT#).

Thanks to jra for the early work on this.

Andrew Bartlett
(This used to be commit 1a2738937e3d80b378bd0ed33cd8d395fba2d3c3)

21 years agoNetBSD also supports dynamic libs
Jelmer Vernooij [Sat, 1 Feb 2003 11:00:39 +0000 (11:00 +0000)]
NetBSD also supports dynamic libs
(This used to be commit dbb29495e7cd94b4ad07efd656d021d9551f5eb6)

21 years agoBitmap offsets and counts are always positive.
Andrew Bartlett [Sat, 1 Feb 2003 06:30:12 +0000 (06:30 +0000)]
Bitmap offsets and counts are always positive.
(This used to be commit 8f495e8634a1777c4b03d3ec07c76f905ff2fb98)

21 years agoMakefile.in change for ldap escaping fixes
Andrew Bartlett [Sat, 1 Feb 2003 06:26:16 +0000 (06:26 +0000)]
Makefile.in change for ldap escaping fixes
(This used to be commit 9f3525967d3a55a0156544733a1e83711bf4be78)

21 years agoOne more signed/unsigned fix
Andrew Bartlett [Sat, 1 Feb 2003 06:25:08 +0000 (06:25 +0000)]
One more signed/unsigned fix
(This used to be commit 013fa874733566169ecefb25458d26065190f302)

21 years agoNon-error connection numbers are always positive
Andrew Bartlett [Sat, 1 Feb 2003 06:24:07 +0000 (06:24 +0000)]
Non-error connection numbers are always positive
(This used to be commit 69e94440cd89a19bbcebc49d87836153b452da47)

21 years agoPrompted by RedHat bugzilla bug #77999, convert the user's username and
Andrew Bartlett [Sat, 1 Feb 2003 06:17:32 +0000 (06:17 +0000)]
Prompted by RedHat bugzilla bug #77999, convert the user's username and
password from 'display' to 'unix' before we check them.

Andrew Bartlett
(This used to be commit 98a4ebf55cfce9da2c187d89a4f9c7b34e5f999e)

21 years agoMore ldap parinoia - if we ever get more than one result, bail. The order we
Andrew Bartlett [Sat, 1 Feb 2003 06:13:33 +0000 (06:13 +0000)]
More ldap parinoia - if we ever get more than one result, bail.  The order we
get them in should be indeterminate, so just picking the first one would be
bad...

Andrew Bartlett
(This used to be commit 21da8c3bb39c507eb90865549c3bb3538dcea138)

21 years agoAlways escape ldap filter strings. Escaping code was from pam_ldap, but I'm to
Andrew Bartlett [Sat, 1 Feb 2003 05:20:11 +0000 (05:20 +0000)]
Always escape ldap filter strings.  Escaping code was from pam_ldap, but I'm to
blame for the realloc() stuff.

Plus a couple of minor updates to libads.

Andrew Bartlett
(This used to be commit 34b2e558a4b3cfd753339bb228a9799e27ed8170)

21 years agoMore doco updates, in particular the fact that you must configure the smb.conf
Andrew Bartlett [Sat, 1 Feb 2003 05:16:00 +0000 (05:16 +0000)]
More doco updates, in particular the fact that you must configure the smb.conf
*before* you join, otherwise we don't have all the info that 'net join' needs.

Also move from smbpasswd -j to 'net join' in the examples.

Andrew Bartlett
(This used to be commit 9494c1e153a2a515841fb57506b7b9bff3eee7a6)

21 years agoClarify that 'use spnego = yes' is fine in all known situations.
Andrew Bartlett [Sat, 1 Feb 2003 04:44:23 +0000 (04:44 +0000)]
Clarify that 'use spnego = yes' is fine in all known situations.

Andrew Bartlett
(This used to be commit 0944c69636eb60bc1a4b2a2257dd05f6d385bd4d)

21 years agoMake it clear that the magic value is (size_t)-1.
Andrew Bartlett [Sat, 1 Feb 2003 04:40:00 +0000 (04:40 +0000)]
Make it clear that the magic value is (size_t)-1.

Andrew Bartlett
(This used to be commit 0676b4e35f2ab5b58c44df9fe2eef112425d6013)

21 years agoA couple more signed/unsigned issues.
Andrew Bartlett [Sat, 1 Feb 2003 04:39:15 +0000 (04:39 +0000)]
A couple more signed/unsigned issues.
(This used to be commit 01d78b828b89f04b70b53ded01a7f4b356979317)

21 years agoMinor doco updates - with a slightly bigger change to the
Andrew Bartlett [Sat, 1 Feb 2003 04:34:40 +0000 (04:34 +0000)]
Minor doco updates - with a slightly bigger change to the
'security=server/domain' text, to try and explain the difference better, and
why you should always use the latter.

Also update the BDC-HOWTO to have some relation to current reality.

Andrew Bartlett
(This used to be commit 7fd0c9bd74a8513a0cbf67bb516c6c2642380c7f)

21 years agoClarifications for the ADS docs.
Andrew Bartlett [Sat, 1 Feb 2003 03:28:35 +0000 (03:28 +0000)]
Clarifications for the ADS docs.
(This used to be commit 9931f50b396d7e7188de583e5732781e8bea587d)

21 years agoClear up the winbind doco on ADS support, and specify 'net join' not 'net rpc
Andrew Bartlett [Sat, 1 Feb 2003 03:26:53 +0000 (03:26 +0000)]
Clear up the winbind doco on ADS support, and specify 'net join' not 'net rpc
join' as people are using the 'wrong' one and wondering why it doesn't quite
work.

Andrew Bartlett
(This used to be commit dfe565e6ce7ae724a95ba9f162ab51436cf4b63e)

21 years agoAdded first part of attribute matrix tests. Not run and compiled in right now...
Jeremy Allison [Fri, 31 Jan 2003 20:01:32 +0000 (20:01 +0000)]
Added first part of attribute matrix tests. Not run and compiled in right now...
Jeremy.
(This used to be commit fdc14aa6f67b95350796cd1075a3910e3e5d84b6)

21 years agoEnsure Luke Howard's (C) is added.
Jeremy Allison [Fri, 31 Jan 2003 18:34:12 +0000 (18:34 +0000)]
Ensure Luke Howard's (C) is added.
Jeremy.
(This used to be commit 6624fa59d749b0c0d6aacc35b9b6ba2b567d6eb4)

21 years agoAdd 3 second timeout when terminating server and sending print notify
Jeremy Allison [Thu, 30 Jan 2003 23:55:13 +0000 (23:55 +0000)]
Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
(This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)

21 years agoMore scalable print tdb fixes.
Jeremy Allison [Thu, 30 Jan 2003 23:27:16 +0000 (23:27 +0000)]
More scalable print tdb fixes.
Jeremy.
(This used to be commit fa8647eb208a971063039c24da849021c5e25267)

21 years agoSync up with 3.0 heimdal.
Jeremy Allison [Thu, 30 Jan 2003 20:36:59 +0000 (20:36 +0000)]
Sync up with 3.0 heimdal.
Jeremy.
(This used to be commit 371f4aca9204f3c093af622ec6c9ea7c5145bf85)

21 years agoFix kerberos compile after the tpot massicre :-).
Jeremy Allison [Thu, 30 Jan 2003 20:16:18 +0000 (20:16 +0000)]
Fix kerberos compile after the tpot massicre :-).
Jeremy
(This used to be commit d63849db6d02b1a9430072e6e15a67e1c526e5e7)

21 years agoStop tpot from trampling over my Heimdal fixes by moving some of them
Jeremy Allison [Thu, 30 Jan 2003 18:01:23 +0000 (18:01 +0000)]
Stop tpot from trampling over my Heimdal fixes by moving some of them
to HEAD :-).
Jeremy.
(This used to be commit 1fec0f50ed0e750afec5cdf551fcd37ef4858e94)

21 years agoStraus VOS detection patches from Paul Green
Gerald Carter [Thu, 30 Jan 2003 17:04:47 +0000 (17:04 +0000)]
Straus VOS detection patches from Paul Green
(This used to be commit 726181537db6bdd299fd9256a5e6def6b4b8ae33)

21 years agoThe REQ_DEBUGLEVEL message returns a string not a list of integers.
Tim Potter [Thu, 30 Jan 2003 04:01:21 +0000 (04:01 +0000)]
The REQ_DEBUGLEVEL message returns a string not a list of integers.
(This used to be commit 08050a93d9c5b2276c4eaf933974607cf11a1876)

21 years agoMove debug level message handling into debug.c from messages.c
Tim Potter [Thu, 30 Jan 2003 04:00:28 +0000 (04:00 +0000)]
Move debug level message handling into debug.c from messages.c

Removed duplicate message_register() for REQ_DEBUGLEVEL message.
(This used to be commit 6fee7196d695ca813a301b1e6d7da687b7e7bda5)

21 years agoFix for interesting resource constraint condition. When all opens are
Jeremy Allison [Thu, 30 Jan 2003 01:42:08 +0000 (01:42 +0000)]
Fix for interesting resource constraint condition. When all opens are
level 2 and a request for open with no oplock is received then the
smbd should send *synchronous* break messages, not asynchronous,
otherwise it spins very rapidly, releasing the lock, sending the
'break to none' messages and then re-acquiring the lock before
any other process has a chance to get the lock and remove it's own
oplock (at least on linux).
Jeremy.
(This used to be commit d1e8991a76a57b7d96dd7db3c1d9bbf5b28da88e)

21 years agoFix to findsmb by Waider
Andrew Bartlett [Wed, 29 Jan 2003 13:13:00 +0000 (13:13 +0000)]
Fix to findsmb by Waider
(This used to be commit c32c1bccc27f10e2f44f3e7f3778aae38bba8f25)

21 years agoMake the vampire code use just pdb calls - allowing better operation on systems
Andrew Bartlett [Wed, 29 Jan 2003 12:11:30 +0000 (12:11 +0000)]
Make the vampire code use just pdb calls - allowing better operation on systems
that are not configured with an add user script, and have an _nua backend for
storage.

We really need to get the PDB backends out of the IDMAP game...

Andrew Bartlett
(This used to be commit dceb7820d71ce624de60ce8f729d5d3711b64152)

21 years agoUse new interface for cli_samr_query_dispinfo().
Tim Potter [Wed, 29 Jan 2003 06:24:13 +0000 (06:24 +0000)]
Use new interface for cli_samr_query_dispinfo().
(This used to be commit d3962da61a5717dda7e99996bbeb4735d4373041)

21 years agoPass down max_size parameter to cli_samr_query_dispinfo() instead of
Tim Potter [Wed, 29 Jan 2003 06:20:08 +0000 (06:20 +0000)]
Pass down max_size parameter to cli_samr_query_dispinfo() instead of
using a hardcoded value later on.

Added a helper function that returns the observed values for
max_entries and max_size for each cli_samr_query_dispinfo() call.
These values were obtained from watching the NT4 user manager
application with ethereal and are the only ones that can enumerate a
60k user domain reliably under Windows 2000.
(This used to be commit 2eea2813d9adc414f0a7ea074826b23697f376ee)

21 years agoPass down max_size parameter to init_samr_q_query_dispinfo() instead
Tim Potter [Wed, 29 Jan 2003 06:13:18 +0000 (06:13 +0000)]
Pass down max_size parameter to init_samr_q_query_dispinfo() instead
of hardcoding it to 0xffff.
(This used to be commit c3b077f763d94ba063b2d4231cd5d411e44933e7)

21 years agoRemoved duplicate fn to avoid compiler warning.
Tim Potter [Wed, 29 Jan 2003 05:16:16 +0000 (05:16 +0000)]
Removed duplicate fn to avoid compiler warning.
(This used to be commit 55d268fdd67e42244128dae8614d0e4aa2eb2da2)

21 years agoRemove NULL buffer checks before rpcstr_pull() as they're now done
Tim Potter [Wed, 29 Jan 2003 02:57:03 +0000 (02:57 +0000)]
Remove NULL buffer checks before rpcstr_pull() as they're now done
inside this function.
(This used to be commit cdc7c599c72119e96a2a3d392458cd6d52bf56a5)

21 years agoReturn 0 instead of crashing when a NULL source string is passed
Tim Potter [Wed, 29 Jan 2003 02:55:39 +0000 (02:55 +0000)]
Return 0 instead of crashing when a NULL source string is passed
to rpcstr_pull()
(This used to be commit b9c4cc119588d6a564f0aaf12fd2ef867a42aeb8)

21 years agoQuieten debug about gencache.tdb not being able to be opened.
Tim Potter [Wed, 29 Jan 2003 02:54:36 +0000 (02:54 +0000)]
Quieten debug about gencache.tdb not being able to be opened.

Perhaps we should try to open O_RDONLY if O_RDWR fails?
(This used to be commit 1e7236371d2b766b161acbb0c950cd3bb4a6ede7)

21 years agoadded LsaRemoveAccountRights
Andrew Tridgell [Tue, 28 Jan 2003 21:31:45 +0000 (21:31 +0000)]
added LsaRemoveAccountRights

this now gives us complete remove privileges control in the client
libs, so we are in good shape for starting on the server side.
(This used to be commit bf99440398db86f46233eb2f5adddffb61280a1b)