amitay/samba.git
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)

21 years agopatch from Paul Green to only build libsmbclient.so on platforms that support shared...
Gerald Carter [Tue, 28 Jan 2003 20:55:09 +0000 (20:55 +0000)]
patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit f739a7263d9da6edc2ecba5b942253c22f7cb3f8)

21 years agoFirst step towards XML: Use correct syntax
Jelmer Vernooij [Tue, 28 Jan 2003 14:39:01 +0000 (14:39 +0000)]
First step towards XML: Use correct syntax
(This used to be commit 06f641bcb59f932c994e6023d400df18b54c2067)

21 years agoFirst step in converting to XML: use strict syntax
Jelmer Vernooij [Tue, 28 Jan 2003 13:52:38 +0000 (13:52 +0000)]
First step in converting to XML: use strict syntax
(This used to be commit 89f9a0a0c451a627b70c8373431e691ab964c1ef)

21 years agoPut in ab's conversion to XML. First step: Make all the SGML docs
Jelmer Vernooij [Tue, 28 Jan 2003 13:17:06 +0000 (13:17 +0000)]
Put in ab's conversion to XML. First step: Make all the SGML docs
conform to the (more strict) XML syntax.
(This used to be commit d9cf973a466ff684f0867b5d7fd494de6967aa79)

21 years agoMerge in ab's conversion to XML. First step: make SGML documents compatible
Jelmer Vernooij [Tue, 28 Jan 2003 13:08:08 +0000 (13:08 +0000)]
Merge in ab's conversion to XML. First step: make SGML documents compatible
with the (more strict) XML format.
(This used to be commit 0930628bd588096d5e5bc2e68fe78eb893d5f18a)

21 years agocleaned up the lsa_enum_acct_rights function and added a
Andrew Tridgell [Tue, 28 Jan 2003 12:52:51 +0000 (12:52 +0000)]
cleaned up the lsa_enum_acct_rights function and added a
lsa_add_acct_rights function.

This allows us to add privileges remotely to accounts using rpcclient.
(This used to be commit 2e5e659e095a94b0716d97f673f993f0af99aabe)

21 years agoAs per a comment by herb a little while back, this should be >=, not == to keep
Andrew Bartlett [Tue, 28 Jan 2003 11:51:55 +0000 (11:51 +0000)]
As per a comment by herb a little while back, this should be >=, not == to keep
identical behaviour with previous versions
(This used to be commit 7cbb194b58a4313497541c1f8153533c5034b928)

21 years agoMake this an fstrcat(), as this seems to fix some weird issue with the server
Andrew Bartlett [Tue, 28 Jan 2003 10:16:07 +0000 (10:16 +0000)]
Make this an fstrcat(), as this seems to fix some weird issue with the server
name being truncated...  (either way, it's the correct thing to do).

Andrew Bartlett
(This used to be commit a058960c15944ac5a415307f0b016553ef42e101)

21 years agoThe previous patch (NTLMSSP common code factoring) was missing a minor detail -
Andrew Bartlett [Tue, 28 Jan 2003 05:13:07 +0000 (05:13 +0000)]
The previous patch (NTLMSSP common code factoring) was missing a minor detail -
testing :-).  This gets the 'signiture' after the extended security blob,
rather than over the top of it.

Also move that code to the top of the file, with some of the other util functions.

Andrew Bartlett
(This used to be commit e5c67a012424e71cee340b16946babe2399c0fa1)

21 years agoFactor out common code in the NTLMSSP/SPNEGO code.
Andrew Bartlett [Tue, 28 Jan 2003 03:37:14 +0000 (03:37 +0000)]
Factor out common code in the NTLMSSP/SPNEGO code.

The idea here is to seperate, as much as possible, the SPNEGO layer from the
NTLMSSP layer.  This not only helps us with protocol correctness, but also
should allow further mechinisms to be added with relitive ease.  I indend to
make the kerberos code use this shortly.

I've never seen the 'zero length blob' form of the anonymous login, so I've
removed that case.

Andrew Bartlett
(This used to be commit a8773c9f825539c5bc17e4200b16d7ebbe0b7620)

21 years agoperformance patch from HP-UX folks (cant remember who)
Gerald Carter [Tue, 28 Jan 2003 02:14:33 +0000 (02:14 +0000)]
performance patch from HP-UX folks (cant remember who)
(This used to be commit 9180e2d062ac18dc5e7e8d0737973dc9e806e412)

21 years agoCUPS-PRINTER_CLASS patch from Michael Sweet
Gerald Carter [Tue, 28 Jan 2003 01:58:51 +0000 (01:58 +0000)]
CUPS-PRINTER_CLASS patch from Michael Sweet
(This used to be commit d74d4fe0b0c64d500367e4969be37f4541227d3e)

21 years agoreran autoconf
Gerald Carter [Mon, 27 Jan 2003 17:57:24 +0000 (17:57 +0000)]
reran autoconf
(This used to be commit f89a99bf881f691c4fd8063fe0c51b84466a4cf6)

21 years agoOne more try to fix the GNU Make dependency
Richard Sharpe [Mon, 27 Jan 2003 07:57:59 +0000 (07:57 +0000)]
One more try to fix the GNU Make dependency
(This used to be commit 84b6f32cff2096ac44778160ed2c17ca271d6d45)

21 years agoOne more fix ... Things link now if you don't use dynamic RPC stuff
Richard Sharpe [Mon, 27 Jan 2003 07:12:20 +0000 (07:12 +0000)]
One more fix ... Things link now if you don't use dynamic RPC stuff
(This used to be commit 58a7744f4abebfbf87b9050b98db25c51321defa)

21 years agoOne more try to get rid of the dependency on GNU MAKE
Richard Sharpe [Mon, 27 Jan 2003 06:15:27 +0000 (06:15 +0000)]
One more try to get rid of the dependency on GNU MAKE
(This used to be commit a96592fb69fdebc5abe97a0b46055bd1486e7b94)

21 years agoFix the dependency on GNU Make introduced by the DYNAMIC RPC stuff.
Richard Sharpe [Mon, 27 Jan 2003 05:54:30 +0000 (05:54 +0000)]
Fix the dependency on GNU Make introduced by the DYNAMIC RPC stuff.

I have not tested this in a GNU MAKE environment yet.
(This used to be commit 5e99472d5b68dc393a5468b8949c3ad962a239f7)

21 years agoFix memory leak found my Leo Qiu <leoxqiu@yahoo.com>.
Jeremy Allison [Fri, 24 Jan 2003 19:20:01 +0000 (19:20 +0000)]
Fix memory leak found my Leo Qiu <leoxqiu@yahoo.com>.
Jeremy.
(This used to be commit af6e4ea640828438fe234db1652dc4c1e10a487e)

21 years agoCommit just a little more infrastructure for HAVE_GETDIRENTRIES
Richard Sharpe [Fri, 24 Jan 2003 18:58:52 +0000 (18:58 +0000)]
Commit just a little more infrastructure for HAVE_GETDIRENTRIES
(This used to be commit fdd449fe7b4e858765f485cbbe2cc1b91a4e0c53)

21 years agoAt the prompting, start to add infrastructure to detect the presence of
Richard Sharpe [Fri, 24 Jan 2003 18:35:22 +0000 (18:35 +0000)]
At the prompting, start to add infrastructure to detect the presence of
getdirentries. We would also detect getdents if present. This has some
rudimentary support already.
(This used to be commit 916c8784d21f566a1fb048301c3e78a9ecc52ea8)

21 years agoMerge of increment_smbd_process_count() fix from appliance.
Tim Potter [Fri, 24 Jan 2003 04:04:49 +0000 (04:04 +0000)]
Merge ... increment_smbd_process_count() fix from appliance.
(This used to be commit c39c54e6b6adcdab7647e36e6c1b0acbdeeaf111)

21 years agoMerge of max log file fixes from appliance:
Tim Potter [Thu, 23 Jan 2003 03:02:08 +0000 (03:02 +0000)]
Merge of max log file fixes from appliance:

 - smbd/process.c: check log file sizes more often than in
       timeout_processing()

 - lib/debug.c: increment debug_count inside Debug1() instead of
       when log file sizes are checked.
(This used to be commit 303710c2065850beebef678e657633497e4d8452)

21 years agoFixed typo.
Tim Potter [Thu, 23 Jan 2003 00:21:00 +0000 (00:21 +0000)]
Fixed typo.
(This used to be commit 9b11ede90129fab8311344ce8621556fd6cff7dc)

21 years agofix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE
Gerald Carter [Wed, 22 Jan 2003 14:37:50 +0000 (14:37 +0000)]
fix for CR 1603; provide description of NT_STATUS_PIPE_NOT_AVAILABLE
(This used to be commit fcf63df8bfae37680ad7af48c65af62abc4e0020)

21 years agorevert accidentally committed changes
Jim McDonough [Tue, 21 Jan 2003 14:05:37 +0000 (14:05 +0000)]
revert accidentally committed changes
(This used to be commit 5d43346761cd120c12766536efb0513994d7bace)

21 years agoProperly display popt errors. Also fix debug to be -d for consistency with other...
Jim McDonough [Tue, 21 Jan 2003 13:58:16 +0000 (13:58 +0000)]
Properly display popt errors.  Also fix debug to be -d for consistency with other progs.
(This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)

21 years agoFixup proto generation to not include krb5 specific symbols
Jeremy Allison [Tue, 21 Jan 2003 13:33:36 +0000 (13:33 +0000)]
Fixup proto generation to not include krb5 specific symbols
if no kerberos selected. Noticed by Metze.
Jeremy.
(This used to be commit 1684719695acb7168115b032fc1ec672509239ea)

21 years agoUpdated some comments.
Tim Potter [Tue, 21 Jan 2003 06:30:11 +0000 (06:30 +0000)]
Updated some comments.
(This used to be commit f150af98a77ebcfa848735b7a67bbb95bd6d5b57)

21 years agoMore fixes getting us closer to full Heimdal compile....
Jeremy Allison [Tue, 21 Jan 2003 06:23:10 +0000 (06:23 +0000)]
More fixes getting us closer to full Heimdal compile....
Jeremy.
(This used to be commit 193cc4f4fc876c66e97ea6b82bae431d0247c1fa)

21 years agoKeep the list of dead WINS servers in gencache.tdb instead of in
Tim Potter [Tue, 21 Jan 2003 05:05:10 +0000 (05:05 +0000)]
Keep the list of dead WINS servers in gencache.tdb instead of in
memory.  This allows the information to be shared amongst all smbd
processes.

HP CR #1099
(This used to be commit 88d977ecceaec45ab6b238ddd32d92885da19793)

21 years agoMake the valstr and timeout return pointers optional so a caller can
Tim Potter [Tue, 21 Jan 2003 05:01:05 +0000 (05:01 +0000)]
Make the valstr and timeout return pointers optional so a caller can
pass NULL if it doesn't care about the gencache key.
(This used to be commit 9ff4fe7e0d95c0cea94f65c00fea21600308d7d1)

21 years agoDeleted arguments to help output - they didn't work.
Tim Potter [Tue, 21 Jan 2003 03:45:18 +0000 (03:45 +0000)]
Deleted arguments to help output - they didn't work.
(This used to be commit 8b167a45a6ae041cd35dbf2a25d7a300f86440a2)

21 years agodon't free() auto variables; fixes segfault when looking up RefusePasswordChange...
Gerald Carter [Tue, 21 Jan 2003 03:42:38 +0000 (03:42 +0000)]
don't free() auto variables; fixes segfault when looking up RefusePasswordChange registry value
(This used to be commit d89b0bff44fe31244b1835aee0c96c4900d90dc6)

21 years agosanity checks from Ken Cross
Gerald Carter [Tue, 21 Jan 2003 01:20:48 +0000 (01:20 +0000)]
sanity checks from Ken Cross
(This used to be commit ec26877f0b4fbe2c651a6069d22b9ac0637aa2d1)

21 years agoshould be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
Jim McDonough [Mon, 20 Jan 2003 19:31:01 +0000 (19:31 +0000)]
should be HAVE_KRB5_SET_REAL_TIME (HAVE_ was missing)...fix the build
(This used to be commit aceaaad1c2efce41fe0e03655b0ca0583788d7ab)

21 years agoAdd FIXME about dodgy argument parser.
Martin Pool [Mon, 20 Jan 2003 00:53:35 +0000 (00:53 +0000)]
Add FIXME about dodgy argument parser.
(This used to be commit a58028330849dbb1706793fdc6e36161f7baebed)

21 years agoMerge in more of the SuSE patches for Heimdal. These changes show how
Jeremy Allison [Sun, 19 Jan 2003 22:25:34 +0000 (22:25 +0000)]
Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.
(This used to be commit 77aeb262ef7c7cd3d206afe2d5445caaca943dfd)

21 years agostrip any trailing \'s from reg key names in an open
Gerald Carter [Sun, 19 Jan 2003 05:04:20 +0000 (05:04 +0000)]
strip any trailing \'s from reg key names in an open
(This used to be commit 03807cd56429e167ca8f3c003a4468461ecb854b)

21 years agoonly supporting the Net::LDAP module now
Gerald Carter [Sun, 19 Jan 2003 03:51:32 +0000 (03:51 +0000)]
only supporting the Net::LDAP module now
(This used to be commit 3e9c970597b190335529e8854f3d2af2c7d8d80e)

21 years agoFix some debug levels (were set to 0 with RPC module patch), and
Jim McDonough [Sat, 18 Jan 2003 20:41:19 +0000 (20:41 +0000)]
Fix some debug levels (were set to 0 with RPC module patch), and
change one fprintf(stderr,...) to DEBUG.
(This used to be commit 77f8913977343023f8ce123c305dcffc7463357b)

21 years agoMerge from 3.0.0 tree.
John Terpstra [Sat, 18 Jan 2003 08:14:39 +0000 (08:14 +0000)]
Merge from 3.0.0 tree.
(This used to be commit 7ecd1694dd19cf27ee61be751d81e0ad92f6d531)

21 years agoEr, I think this is a better spelling. (-:
Tim Potter [Sat, 18 Jan 2003 05:51:13 +0000 (05:51 +0000)]
Er, I think this is a better spelling.  (-:
(This used to be commit 876f0b4d197586c1cd61d6dafb3ba97de8315b55)

21 years agoadding docs for rpc plugin libs
Gerald Carter [Sat, 18 Jan 2003 01:51:46 +0000 (01:51 +0000)]
adding docs for rpc plugin libs
(This used to be commit 36ade606e8fc7578f83590de45efbecdbe747011)

21 years agoremoving extra debug statement
Gerald Carter [Sat, 18 Jan 2003 01:41:00 +0000 (01:41 +0000)]
removing extra debug statement
(This used to be commit 657f8c25a585a02b86f4021e38641ee896f098d2)

21 years agodlsym() can return NULL validly, so we can't use that as the error test.
Jim McDonough [Fri, 17 Jan 2003 21:23:14 +0000 (21:23 +0000)]
dlsym() can return NULL validly, so we can't use that as the error test.
dlerror() is the correct way to test.
(This used to be commit 41b1be15bac271116a7096e511cc029685013e1f)

21 years agoEnable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instruc...
Jim McDonough [Fri, 17 Jan 2003 20:57:26 +0000 (20:57 +0000)]
Enable dynamic loading of RPC modules.  See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78ff8fc721d693fedbd1c633f39edd49)

21 years agosync WHATSNEW from SAMBA_3_0
Gerald Carter [Fri, 17 Jan 2003 16:34:25 +0000 (16:34 +0000)]
sync WHATSNEW from SAMBA_3_0
(This used to be commit 41a86bb66b1e48b8410acbfeb68231880d977927)

21 years agoconnect to the actual netbios name in smb.conf and not LOCALHOST
Gerald Carter [Fri, 17 Jan 2003 14:34:23 +0000 (14:34 +0000)]
connect to the actual netbios name in smb.conf and not LOCALHOST
(This used to be commit 3e9701f34c730783648fb2a666f7b57478e5942d)

21 years agoFix reference count bug where smbd's would not terminate with no
Jeremy Allison [Fri, 17 Jan 2003 06:35:33 +0000 (06:35 +0000)]
Fix reference count bug where smbd's would not terminate with no
open resources.
Jeremy.
(This used to be commit 0173d6fe164568a73247fa542895443fad6c20c3)

21 years agoreverted this patch till I sort out the craziness with UNIHDR
Andrew Tridgell [Fri, 17 Jan 2003 06:15:18 +0000 (06:15 +0000)]
reverted this patch till I sort out the craziness with UNIHDR
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)

21 years agoThis removes the 3rd argument from init_unistr2(). There were 240
Andrew Tridgell [Fri, 17 Jan 2003 04:58:45 +0000 (04:58 +0000)]
This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing.
(This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)

21 years agothe 'static' keyword here is useless as we are not declaring a
Andrew Tridgell [Fri, 17 Jan 2003 04:12:12 +0000 (04:12 +0000)]
the 'static' keyword here is useless as we are not declaring a
variable or function
(This used to be commit f2c9c64900c4da24f73b188deb0f57271e3bf3e7)

21 years agofix some undefined behaviour with increments in C. In theory a
Andrew Tridgell [Fri, 17 Jan 2003 04:09:23 +0000 (04:09 +0000)]
fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
(This used to be commit 0e90da0810b60dd1c2b1ec46c1a2993856b919d3)

21 years agoLet's clean up client side ntlmssp!
Tim Potter [Fri, 17 Jan 2003 04:05:28 +0000 (04:05 +0000)]
Let's clean up client side ntlmssp!

Removed a dead function.
(This used to be commit a1c790b5ea8de120a1d8710ac190955aea28246f)

21 years agoRemove unused variable in reply_spnego_ntlmssp_ok
Tim Potter [Fri, 17 Jan 2003 01:08:09 +0000 (01:08 +0000)]
Remove unused variable in reply_spnego_ntlmssp_ok
(This used to be commit 60c13a767523e3ec4db7ee5f5c6b20ca07d2a00a)

21 years agoupdate for 3.0
Herb Lewis [Thu, 16 Jan 2003 23:34:24 +0000 (23:34 +0000)]
update for 3.0
(This used to be commit 8b2d19eeaa59c709315062df6d68cf16b2905054)

21 years agoFix an error where the SK Offset was truncated to 16 bits. Variables needed
Richard Sharpe [Thu, 16 Jan 2003 23:27:37 +0000 (23:27 +0000)]
Fix an error where the SK Offset was truncated to 16 bits. Variables needed
to be unsigned int (DWORD) not unsigned int (WORD).
(This used to be commit e1e9c29c4095405d7031cfd618e06dd841075aad)

21 years agoFixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy Allison [Thu, 16 Jan 2003 20:08:33 +0000 (20:08 +0000)]
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit 3d04872499332ef2d8e7479b924afc8fc1ac29d7)

21 years agoAdding genlogon (from 3.0.0).
John Terpstra [Thu, 16 Jan 2003 05:55:47 +0000 (05:55 +0000)]
Adding genlogon (from 3.0.0).
(This used to be commit b776521ba757f4b4995aff3db87a0da226480a69)

21 years agoAdded NT4 Profile Modification Docs, updated Win2K version.
John Terpstra [Thu, 16 Jan 2003 05:35:11 +0000 (05:35 +0000)]
Added NT4 Profile Modification Docs, updated Win2K version.
NOTE: These documents are place holders for a REAL document.
(This used to be commit 393c4a37f3a1729ff92c42becfd066c76deefcda)

21 years ago(missed in last commit)
Andrew Bartlett [Thu, 16 Jan 2003 04:40:07 +0000 (04:40 +0000)]
(missed in last commit)

Change the 'cookie' to be the ntlmssp_context, and use the 'auth_context' on
that to store the cookie.  Ensures that simple callbacks can 'just work'.

Also make it clear that we are doing a pull_string into a pstring, not just
any sized buffer.

Andrew Bartlett
(This used to be commit c7793f27188e658b7fc6336aa51d367eab36fc17)

21 years agoallow a couple of LSA functions to take a username instead of a SID,
Andrew Tridgell [Thu, 16 Jan 2003 04:14:59 +0000 (04:14 +0000)]
allow a couple of LSA functions to take a username instead of a SID,
They still accept a SID, it just can be tedious to have to type SIDs
instead of names all the time.
(This used to be commit 665cc9b1aceb454074e9de9c6e8636b39be29493)

21 years agoAdd LIBSMB_OBJ for the new ntlm_auth functionality.
Andrew Bartlett [Thu, 16 Jan 2003 03:32:55 +0000 (03:32 +0000)]
Add LIBSMB_OBJ for the new ntlm_auth functionality.

Andrew Bartlett
(This used to be commit 9128aa3dd2f4bf4a21adac51be1da7c6380d23a0)