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)
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)
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)
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)
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)
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)
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)
Tim Potter [Thu, 23 Jan 2003 00:21:00 +0000 (00:21 +0000)]
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)
Jim McDonough [Tue, 21 Jan 2003 14:05:37 +0000 (14:05 +0000)]
revert accidentally committed changes
(This used to be commit
5d43346761cd120c12766536efb0513994d7bace)
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)
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)
Tim Potter [Tue, 21 Jan 2003 06:30:11 +0000 (06:30 +0000)]
Updated some comments.
(This used to be commit
f150af98a77ebcfa848735b7a67bbb95bd6d5b57)
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)
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)
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)
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)
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)
Gerald Carter [Tue, 21 Jan 2003 01:20:48 +0000 (01:20 +0000)]
sanity checks from Ken Cross
(This used to be commit
ec26877f0b4fbe2c651a6069d22b9ac0637aa2d1)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Gerald Carter [Sat, 18 Jan 2003 01:41:00 +0000 (01:41 +0000)]
removing extra debug statement
(This used to be commit
657f8c25a585a02b86f4021e38641ee896f098d2)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Herb Lewis [Thu, 16 Jan 2003 23:34:24 +0000 (23:34 +0000)]
update for 3.0
(This used to be commit
8b2d19eeaa59c709315062df6d68cf16b2905054)
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)
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)
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)
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)
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)
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)
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)
Andrew Bartlett [Thu, 16 Jan 2003 03:29:54 +0000 (03:29 +0000)]
Updates to the NTLMSSP code again - moving the base64 decode fuctionality out
of the SWAT code, and adding a base64 encoder.
The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for
use with Squid. Unfortunetly the squid side doesn't quite support what we need
yet.
Changes to winbind to get us the info we need, and a couple of consequential
changes/cleanups in the rest of the code.
Andrew Bartlett
(This used to be commit
fe50ca8f54ded2e119bde08831785fbe0db2ee99)
Jeremy Allison [Thu, 16 Jan 2003 02:58:25 +0000 (02:58 +0000)]
More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit
c3544c119e4cafb817479b4c5dfae178c3de000b)
Jeremy Allison [Thu, 16 Jan 2003 02:39:58 +0000 (02:39 +0000)]
Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
(This used to be commit
a776fbef3244ae82a17c57a7f62de115fd023c86)
Gerald Carter [Thu, 16 Jan 2003 02:20:27 +0000 (02:20 +0000)]
* merge fixes for SGML syntax errors (does no one ever regenerate the docs?)
* regenerate the docs
* add some files from SAMBA_3_0
(This used to be commit
1af74785f334bd84b2d62e7fc2975f9477386acb)
Andrew Bartlett [Thu, 16 Jan 2003 02:02:23 +0000 (02:02 +0000)]
Fix a signed/unsigned warning.
(This used to be commit
b5ae49544d8e389595a3b076466498912de42081)
Jeremy Allison [Thu, 16 Jan 2003 00:27:30 +0000 (00:27 +0000)]
Add mutex protection around auth calls.
Jeremy.
(This used to be commit
af8a5d79682410482646eea075dff2d344d60e31)
Gerald Carter [Wed, 15 Jan 2003 23:11:45 +0000 (23:11 +0000)]
s/WIFSIGNALLED/WIFSIGNALED/g
(This used to be commit
251585142bb5d13951160a76f65bb2bf32f209bf)
Gerald Carter [Wed, 15 Jan 2003 22:37:16 +0000 (22:37 +0000)]
do not use RCS variables in file
(This used to be commit
88d673e1a14b5c91843bd64a516555b6f1f77d7f)
Gerald Carter [Wed, 15 Jan 2003 22:19:03 +0000 (22:19 +0000)]
add ntlogon directory and files from 3.0
(This used to be commit
3ae66807d86753b840b674e76a27b9f6133cca98)
Tim Potter [Wed, 15 Jan 2003 22:15:07 +0000 (22:15 +0000)]
Removed level 0 DEBUG leftover from testing.
(This used to be commit
7ed8046d043743d1a7af70eaa1d215e8c04e7700)
Andrew Bartlett [Wed, 15 Jan 2003 20:39:33 +0000 (20:39 +0000)]
Missed auth_ntlmssp.c in last night's checkin. Also keep track of the current
challenge in the NTLMSSP context.
Andrew Bartlett
(This used to be commit
ba13e058d4533b1ffba723b9e98e95090ad63d85)
Gerald Carter [Wed, 15 Jan 2003 19:00:44 +0000 (19:00 +0000)]
remove torture tools on make clean
(This used to be commit
dfeab6ff24e87e3459d28aa4bbaa5187505c199c)
Gerald Carter [Wed, 15 Jan 2003 18:31:46 +0000 (18:31 +0000)]
small merges from SAMBA_3_0; mostly typos, renames, etc...
(This used to be commit
9ac196dad4893b0ceef13281a140be5d85391e6c)
Herb Lewis [Wed, 15 Jan 2003 16:44:35 +0000 (16:44 +0000)]
initialize acct_ctrl before using it
remove ldap_msgfree(result); as result is unitialized at this point
(This used to be commit
dc8882778694289ca461de57d443992f52ab7524)
Gerald Carter [Wed, 15 Jan 2003 16:07:14 +0000 (16:07 +0000)]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
(This used to be commit
4a6d8280ea27ca7a6998219aacc4b15b1227a659)
Andrew Bartlett [Wed, 15 Jan 2003 12:52:38 +0000 (12:52 +0000)]
Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem. The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.
Andrew Bartlett
(This used to be commit
9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)
Andrew Bartlett [Wed, 15 Jan 2003 12:48:06 +0000 (12:48 +0000)]
Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.
Andrew Bartlett
(This used to be commit
c781e34d274f4185ec932cc59029d3f9a65e47c4)
Andrew Tridgell [Wed, 15 Jan 2003 07:40:40 +0000 (07:40 +0000)]
added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!
this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.
(This used to be commit
65bac11d716f873dcdbda528313c33634c26a072)
Andrew Bartlett [Wed, 15 Jan 2003 05:56:12 +0000 (05:56 +0000)]
Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.
Andrew Bartlett
(This used to be commit
919889de78fc3c7bc5dfebcc180385f2f3d7a564)
Andrew Bartlett [Wed, 15 Jan 2003 05:55:22 +0000 (05:55 +0000)]
Crash fixes:
- fix a crash when a second NTLMSSP session tried to free the first
- fix a crash due to some NULL pointers in the Add Printer Wizard (or read
printer code too it appears). As far as I can tell it's just that the
GUID just might not exist.
Andrew Bartlett
(This used to be commit
51b1413056b0d001076ff47a755eb35baa2d9e6d)
Martin Pool [Wed, 15 Jan 2003 05:27:33 +0000 (05:27 +0000)]
One more from waitpid() audit: Correctly interpret waitstatus when a
child fails. Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
(This used to be commit
1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)
Martin Pool [Wed, 15 Jan 2003 05:23:40 +0000 (05:23 +0000)]
Run autoheader
(This used to be commit
82e4bb598c9fc26eaa090687d0daa6505fa0d550)
Martin Pool [Wed, 15 Jan 2003 05:00:04 +0000 (05:00 +0000)]
Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.
According to the autoconf manual we need to check for libraries before
looking for functions in them.
(This used to be commit
468c487df42c6fc25d1862f36995b3d9a78902ff)
Herb Lewis [Wed, 15 Jan 2003 01:05:35 +0000 (01:05 +0000)]
IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit
50adb8cc1074e9bedac365a92db96c5f01f30223)
Gerald Carter [Tue, 14 Jan 2003 23:55:14 +0000 (23:55 +0000)]
[merge] removing unused variable and unused file
(This used to be commit
099e844571975eecde7aea342c64d3f768110e03)
Andrew Bartlett [Tue, 14 Jan 2003 23:45:14 +0000 (23:45 +0000)]
Fix some debug lines, and add a bit more info to help track down ldap
connectivity problems.
Andrew Bartlett
(This used to be commit
68de9a59203ed9778f11b78f233dc437b9dab55d)
Gerald Carter [Tue, 14 Jan 2003 16:03:27 +0000 (16:03 +0000)]
merge: disable [u|g]idPool objects
(This used to be commit
4c98700e54f3cc617eb578758695fd4dbd690f82)
Gerald Carter [Tue, 14 Jan 2003 15:52:45 +0000 (15:52 +0000)]
make -i flag work lik eit did in 2.2
(This used to be commit
54b054c1edd44096c7158993a886f915d7a07493)
Andrew Bartlett [Tue, 14 Jan 2003 06:53:35 +0000 (06:53 +0000)]
Commit my (disabled) fstring/pstring mixup detection code.
We need to fix some 'overmalloc' cases before it can be enabled by default.
Andrew Bartlett
(This used to be commit
2c2c52a18be1bd0a5ae1f4a48b1d9e18f4887dda)
Andrew Bartlett [Tue, 14 Jan 2003 06:46:14 +0000 (06:46 +0000)]
The last of the fstring/pstring mixups, and an extra 'static'.
(This used to be commit
b328b67fd8fd605636ed58ffd33cf5be3d480672)
Andrew Bartlett [Tue, 14 Jan 2003 06:36:40 +0000 (06:36 +0000)]
A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
harmless, but breaks my automated check.
(This used to be commit
e5d2b1f6c3c0883054f4e0eab2cac958706a790d)
Tim Potter [Tue, 14 Jan 2003 05:25:08 +0000 (05:25 +0000)]
Added comment about a SMB_ASSERT()
(This used to be commit
056bdfbce73bbd7ddaa198d18e596b94b2224d3d)
Tim Potter [Tue, 14 Jan 2003 05:08:42 +0000 (05:08 +0000)]
Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call
secrets_fetch_trust_account_password().
(This used to be commit
7b0c03cbf1376f82b0bb5f4cf86e2db3b0bc1dec)
Tim Potter [Tue, 14 Jan 2003 04:04:13 +0000 (04:04 +0000)]
Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
(This used to be commit
c64e2308bae31d48171685b3b67b8cace1b003b5)
Andrew Tridgell [Tue, 14 Jan 2003 02:51:37 +0000 (02:51 +0000)]
query_alt_name takes a forced unicode string in win2000. It is not
null terminated.
Thanks to Metze for finding this.
(This used to be commit
e4ce26332b8f876e25ff9baf06d4767a473e2676)
Andrew Tridgell [Tue, 14 Jan 2003 00:39:18 +0000 (00:39 +0000)]
clearer debug message when the user is already in the ldap db
(This used to be commit
31894ba0e5847eb934688598cd8d65bead23c58b)
Andrew Tridgell [Tue, 14 Jan 2003 00:35:38 +0000 (00:35 +0000)]
add help text for 'net ads lookup'
(This used to be commit
2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)
Jeremy Allison [Mon, 13 Jan 2003 23:07:28 +0000 (23:07 +0000)]
Missing indirect in final free.
Jeremy.
(This used to be commit
faf443e5198e270f1a60d7a0939074efca750a94)
Andrew Bartlett [Mon, 13 Jan 2003 21:49:49 +0000 (21:49 +0000)]
Always initialise this variable - and don't set the 'must change now' if it was
last changed at '0'.
We need to actually change this password sometime...
Andrew Bartlett
(This used to be commit
740bf439d2d1512127c873cf0e57697161d6566b)
Andrew Bartlett [Mon, 13 Jan 2003 21:48:52 +0000 (21:48 +0000)]
Fix typo, and the build.
(This used to be commit
d7452e73b511ceaebfaed66c18e7c61cbe0289d2)
Richard Sharpe [Mon, 13 Jan 2003 20:30:28 +0000 (20:30 +0000)]
Make sure that those cleanups actually went in.
(This used to be commit
9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)
Andrew Bartlett [Mon, 13 Jan 2003 13:11:36 +0000 (13:11 +0000)]
Patch from metze to add what he feels is the correct semantics for a Domain
Controller. As we have had a number of attempts at this over the last little
while, I need to get my test rig going, and give this whole area a poke...
Meanwhile, if you want to use this, just adjust your 'auth methods' line to use
samstrict_dc...
Andrew Bartlett
(This used to be commit
18e598ec24493026008fcfe486057555b8832108)
Andrew Bartlett [Mon, 13 Jan 2003 13:03:25 +0000 (13:03 +0000)]
Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'. Probably has a similar effect on SWAT.
Also adds '-V' to testparm.
Andrew Bartlett
(This used to be commit
71f4d8efd36351ddb2180103c160a6d737da62b1)
Andrew Bartlett [Mon, 13 Jan 2003 12:54:59 +0000 (12:54 +0000)]
Patch from ab, to make findsmb omit -r most of the time.
(original mail follows)
--
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Greetings!
I propose to make an optional argument '-r' for findsmb utility to pass
'-r' option to nmblookup optionally and default to omit it. The reason is
to have findsmb working more user-friendly in contemporary office
environments where Windows 95/98 boxes are rare and also to allow usage of
the utility under non-priviledged accounts when Windows95/98 boxes are in
minority or even absent in network neighbourhood.
An attached patch provides this change for HEAD together with
documentation changes.
--
/ Alexander Bokovoy
(This used to be commit
d0bebea521e12fb9cef66feecd969216607ef63d)
Andrew Bartlett [Mon, 13 Jan 2003 12:48:37 +0000 (12:48 +0000)]
Updates to our NTLMSSP code:
This tries to extract our server-side code out of sessetup.c, and into a more
general lib. I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.
Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.
This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them. Win2k authenticates
fine under forced ASCII, btw.
Tested with Win2k, NTLMv2 and Samba's smbclient.
Andrew Bartlett
(This used to be commit
b6641badcbb2fb3bfec9d00a6466318203ea33e1)
Andrew Bartlett [Mon, 13 Jan 2003 12:42:20 +0000 (12:42 +0000)]
Accessing data after it's been free()ed really is a no-no...
Andrew Bartlett
(This used to be commit
6e821285a4aacfc0031957b88ddbec73d7e1dc11)
Andrew Bartlett [Mon, 13 Jan 2003 12:21:07 +0000 (12:21 +0000)]
Fix to debian bug #171071 - we had the wrong dereference on the pointer to be
Realloc()ed, causing it to fail.
Big thanks to Sandor Sonfeld <sonf@linuxmail.org> for the debug, stack and
valgrind traces!
Andrew Bartlett
(This used to be commit
7abca6d281da6388899f78e3440d7ce37bf2094e)
Andrew Bartlett [Mon, 13 Jan 2003 08:53:54 +0000 (08:53 +0000)]
Don't force the DOS password into a 14 char space, as this would imply null
termination - the password will not be null terminated before hashing if
len >= 14.
related to debian bug #157432
Andrew Bartlett
(This used to be commit
c6535836f2e48903aa89a18c11cbb37576fb4a20)
Andrew Bartlett [Mon, 13 Jan 2003 08:09:32 +0000 (08:09 +0000)]
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind).
Andrew Bartlett
(This used to be commit
f8d9880c5f5321f4dba6b42896419412284c3e7b)
Martin Pool [Mon, 13 Jan 2003 04:57:21 +0000 (04:57 +0000)]
Fix typo in comment.
(This used to be commit
26660f939f0e0650d54631bf8243b22f32b64132)
Tim Potter [Mon, 13 Jan 2003 03:45:31 +0000 (03:45 +0000)]
Merge ... remove "winbindd holding pattern" from appliance. It's a bit
simpler as the rescanning of trusted domains helps us out a bit.
(This used to be commit
089729c02cb2088e85f0e7f8ec79afb58fe98be7)
Andrew Bartlett [Sun, 12 Jan 2003 12:23:37 +0000 (12:23 +0000)]
Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.
Andrew Bartlett
(This used to be commit
f087fe546fd0c943dec022c657f849803f4b807e)