gd/samba-autobuild/.git
22 years agoTry to fix up the shell syntax
Andrew Bartlett [Wed, 19 Sep 2001 13:29:33 +0000 (13:29 +0000)]
Try to fix up the shell syntax
(This used to be commit f57b1085b3a608871f0c1c8fbfe19c121dc8504f)

22 years agoReran autoconf, autoheader
Andrew Bartlett [Wed, 19 Sep 2001 12:47:59 +0000 (12:47 +0000)]
Reran autoconf, autoheader
(This used to be commit 26e523bf6e36d1aa355bbaa7d9b1d5c65c1b5e6b)

22 years agotypo
Andrew Bartlett [Wed, 19 Sep 2001 11:44:00 +0000 (11:44 +0000)]
typo
(This used to be commit 7a47e0fceb8999de93ac9e5721bf65401630dec6)

22 years agoAdding the appropirate files might help...
Andrew Bartlett [Wed, 19 Sep 2001 10:45:33 +0000 (10:45 +0000)]
Adding the appropirate files might help...

(These are part of the build_options patch).

Andrew Bartlett
(This used to be commit 4e5c7724b4e4c132b7b43104d3063d2f7357bae2)

22 years agoAdd the ability to display Samba's build options with smbd -b and as a level 4
Andrew Bartlett [Wed, 19 Sep 2001 09:44:12 +0000 (09:44 +0000)]
Add the ability to display Samba's build options with smbd -b and as a level 4
DEBUG().  Also included are details like build date/time, location and
compiler.

This should get most of the options we set, except those that don't affect
smbd, like WITH_PAM_SMBPASSWD or WITH_WINBINDD.

This work due to Vance Lankhaar <vlankhaar@hotmail.com>

Some work needs to be done to make it only rebuild when needed (ie smbd being
rebuilt) but its in pretty good shape already.

Also fix up some printf() -> d_printf().

Andrew Bartlett
(This used to be commit beff1d2beaf4337dba6bfc372c5e09a43cfd791a)

22 years agoprintf() -> d_printf()
Andrew Bartlett [Wed, 19 Sep 2001 09:37:33 +0000 (09:37 +0000)]
printf() -> d_printf()
(This used to be commit e8bd42edc05226d49ab0b6768f898d883fcf8d1a)

22 years agoThis isn't used anymore
Andrew Bartlett [Wed, 19 Sep 2001 08:37:05 +0000 (08:37 +0000)]
This isn't used anymore
(This used to be commit c6df98a1e3886edd64c36ae23a8bfed11e6632b6)

22 years agoUse lp_private_dir() not magic on the lp_smb_passwd_file() output.
Andrew Bartlett [Wed, 19 Sep 2001 08:21:12 +0000 (08:21 +0000)]
Use lp_private_dir() not magic on the lp_smb_passwd_file() output.
(This used to be commit 65ae05ce638f0d12e6f1e2a6f337c53c5c0a4f3a)

22 years agoRemoved unneeded variable, added comment on deadlock prevention.
Jeremy Allison [Wed, 19 Sep 2001 07:06:34 +0000 (07:06 +0000)]
Removed unneeded variable, added comment on deadlock prevention.
Jeremy.
(This used to be commit 3f52632ac9c45c66613c3a2fd41f1ba73ca3fefc)

22 years agoPut pwrite code back in expand_file.
Jeremy Allison [Wed, 19 Sep 2001 06:55:25 +0000 (06:55 +0000)]
Put pwrite code back in expand_file.
Jeremy.
(This used to be commit a3267551d88dffb226e4a1c3852fe9c817517d02)

22 years agoRemoved test code that got added by accident.
Jeremy Allison [Wed, 19 Sep 2001 06:49:02 +0000 (06:49 +0000)]
Removed test code that got added by accident.
Jeremy.
(This used to be commit fc91ecc236e0d27f5836e9820332ababd762f1a7)

22 years agoremoved anti-race code that could cause a classic ABBA deadlock
Andrew Tridgell [Wed, 19 Sep 2001 06:46:35 +0000 (06:46 +0000)]
removed anti-race code that could cause a classic ABBA deadlock

I'd rather get the connection count wrong with a small probability
than deadlock
(This used to be commit d4e4e81328a63d6e3396306d5dae6cc45ddd35d7)

22 years agopassdb/pampass.c and passdb/pass_check.c are not passdb related at all,
Andrew Bartlett [Wed, 19 Sep 2001 06:01:35 +0000 (06:01 +0000)]
passdb/pampass.c and passdb/pass_check.c are not passdb related at all,
so don't link them as such.
(This used to be commit 3afad9ae012b8fb1bf5eaceca491b76ab32e68b6)

22 years agoadded a hook to reopen all tdb's after the server fork
Andrew Tridgell [Wed, 19 Sep 2001 05:43:15 +0000 (05:43 +0000)]
added a hook to reopen all tdb's after the server fork
this prevents the fd seek pointer problem
(This used to be commit f49518e497deeb46292456c3650769d50ec2a955)

22 years ago*llist being NULL is not an error
Andrew Tridgell [Wed, 19 Sep 2001 05:41:51 +0000 (05:41 +0000)]
*llist being NULL is not an error
(This used to be commit c4d8ad2c2e48ff31dae7477ff02e5bfc013832a9)

22 years agoRemove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c by
Andrew Bartlett [Wed, 19 Sep 2001 05:26:11 +0000 (05:26 +0000)]
Remove the ugly hacks to get around the Get_Pwnam() calls in pass_check.c by
simply not doing Get_Pwnam() calls in pass_check.c

We now make *one* sys_getpnam() call in cgi.c and we always call PAM no matter
what it returns.  We also no longer run the password cracker for these logins.

The truly parinod will note the slight difference in call paths, in that we only
call crypt for valid password structs (if not --with-pam).  The truly parinoid
don't run SWAT either, so I don't think this is an issue.

Andrew Bartlett
(This used to be commit 9020d884935243f28c19cedc88f076f0709e12cb)

22 years agoFix (I hope) compile on HP-UX. Found by the build farm.
Andrew Bartlett [Wed, 19 Sep 2001 04:16:35 +0000 (04:16 +0000)]
Fix (I hope) compile on HP-UX.  Found by the build farm.
(This used to be commit fd5c67d35a3e9eaee6c54151c5fd9381a47c7b14)

22 years agogot rid of bogus write list substitution error messages
Andrew Tridgell [Wed, 19 Sep 2001 04:11:23 +0000 (04:11 +0000)]
got rid of bogus write list substitution error messages
(This used to be commit 0deae6c407faa86ea871a219ad52fdd285166274)

22 years agoFix based on Andrew's insight as re-using a tdb after fork means
Jeremy Allison [Wed, 19 Sep 2001 03:33:47 +0000 (03:33 +0000)]
Fix based on Andrew's insight as re-using a tdb after fork means
parent and child share seek pointer. Damn....
Jeremy.
(This used to be commit 0e75c0fc1aa742fb0c29716c99a81cf5b33ef6e6)

22 years agodon't try to initgroups in non root mode
Andrew Tridgell [Wed, 19 Sep 2001 03:30:20 +0000 (03:30 +0000)]
don't try to initgroups in non root mode
(This used to be commit 1a04ea247680fa7ad1ae7dc3f9953f753d8cf955)

22 years agofix debug
Andrew Bartlett [Wed, 19 Sep 2001 02:53:14 +0000 (02:53 +0000)]
fix debug
(This used to be commit d103371e8028efb6eec3c4b917b68734832f5844)

22 years agoReverse some of the breakage I commited a day or two ago, as we need to
Andrew Bartlett [Wed, 19 Sep 2001 02:28:15 +0000 (02:28 +0000)]
Reverse some of the breakage I commited a day or two ago, as we need to
fill out the user_info struct (otherwise we don't have a vuid for
make_connection()).

Also add a become_user() call, becouse it really looks like it was missing
(we must pass it anyway to finish make_connection()).

Is there any reason not to be the user when reading an ACL?

Finally, fix up some formatting to show that the two functions are almost
identical.

Andrew Bartlett
(This used to be commit 00c667c0ad922a1bf388b8a2b8c6137fc7f0acaa)

22 years agoReturn correct error code on lock fail in tdb_expand.
Jeremy Allison [Wed, 19 Sep 2001 00:02:28 +0000 (00:02 +0000)]
Return correct error code on lock fail in tdb_expand.
Jeremy.
(This used to be commit b45793ec3f6ff04587bee8f463ef6410b06097d6)

22 years agoRoll back earlier fix after talking with Andrew. The write_lock_record and
Jeremy Allison [Tue, 18 Sep 2001 22:59:12 +0000 (22:59 +0000)]
Roll back earlier fix after talking with Andrew. The write_lock_record and
unlock are explicitly non-blocking. I will add a comment to this effect later.
Jeremy.
(This used to be commit e4b41a8f31729dfec92c4cb1f8b4759446cac0ff)

22 years agoFixed a couple of nasty bugs only easily seen with no mmap. Firstly,
Jeremy Allison [Tue, 18 Sep 2001 21:17:58 +0000 (21:17 +0000)]
Fixed a couple of nasty bugs only easily seen with no mmap. Firstly,
map_ptr not neccessarily set to NULL if no mmap, secondly, iterating
through a tdb was using SETLK, instead of SETLKW - would almost never
fail with mmap as the time holding the lock was so short, but was
easily seen with read/write. One finaly bug needs tracking down w.r.t.
traversal......
Jeremy.
(This used to be commit 313c2e8652092a307165b6039dd7dfbbd0754ec3)

22 years agoCorrect fix for unaligned memcpy - malloc'ed memory incremented by sizeof(struct...
Jeremy Allison [Tue, 18 Sep 2001 06:41:29 +0000 (06:41 +0000)]
Correct fix for unaligned memcpy - malloc'ed memory incremented by sizeof(struct locking_data)
was not forced to be 8 byte aligned. Use union to force it to be correctly aligned
for memcpy and use void *, to tell compiler not to optimize aligned copy (this last fix
suggested by Trond @ RedHat). The first fix should be sufficient, but this provides a
"belt and braces" fix.
Jeremy.
(This used to be commit 22c5915bb466529ac1bcb5c2574888b360a9775b)

22 years agoUse structure copy to fix unaligned accesses on 64bit architectures on
Jeremy Allison [Tue, 18 Sep 2001 06:20:28 +0000 (06:20 +0000)]
Use structure copy to fix unaligned accesses on 64bit architectures on
Linux.
Jeremy.
(This used to be commit b4b891279b6292237113456f1bb0d4393f1f9af1)

22 years agoConverted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
Tim Potter [Tue, 18 Sep 2001 02:49:35 +0000 (02:49 +0000)]
Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
(This used to be commit e0bdcbc5994345fdc76f7590dba7bce5f0127d58)

22 years agoDoc fix merge from 2.2
Tim Potter [Tue, 18 Sep 2001 00:13:29 +0000 (00:13 +0000)]
Doc fix merge from 2.2
(This used to be commit 865167203ceff157a7204418cda8905833314575)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 11:48:29 +0000 (11:48 +0000)]
move to SAFE_FREE()
(This used to be commit 67db8f03c5c9e81e11b5f3276b50ee23e09a2659)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 11:37:57 +0000 (11:37 +0000)]
move to SAFE_FREE()
(This used to be commit fc71962409e11509a60fb2be6741c32970865881)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 11:25:41 +0000 (11:25 +0000)]
move to SAFE_FREE()
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 10:26:23 +0000 (10:26 +0000)]
move to SAFE_FREE()
(This used to be commit 5ceecc7bef71b455ba7c4efd9928e2433dccc961)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 10:00:29 +0000 (10:00 +0000)]
move to SAFE_FREE()
(This used to be commit 94b0fde8a8a4e888cee93ebde79390c7942a2785)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 09:41:30 +0000 (09:41 +0000)]
move to SAFE_FREE()
(This used to be commit 549fe42bd48b3418e63ba4872bc5992dae46d514)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 09:25:57 +0000 (09:25 +0000)]
move to SAFE_FREE()
(This used to be commit 09bf4425492fd96672ddd7a31d88854adcf7f0fe)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 05:04:17 +0000 (05:04 +0000)]
move to SAFE_FREE()
(This used to be commit 64d35e94fe6f7e56353b286162f670c8595a90e6)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:58:38 +0000 (04:58 +0000)]
move to SAFE_FREE()
(This used to be commit fb0984e60fd69100d9866304b83b4f3c85e9aea2)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:52:45 +0000 (04:52 +0000)]
move to SAFE_FREE()
(This used to be commit 03dc67788f68c9e01b5a82fdf43f837cb19f4608)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:35:51 +0000 (04:35 +0000)]
move to SAFE_FREE()
(This used to be commit 1446a1562b1c618c023b056f476e26da7ee3d532)

22 years agofixed ctemp in server and client. It turns out that ctemp on NT is completely broken...
Andrew Tridgell [Mon, 17 Sep 2001 04:23:48 +0000 (04:23 +0000)]
fixed ctemp in server and client. It turns out that ctemp on NT is completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
(This used to be commit 2d507ec669def6d49304559e53d6c14af9b290a9)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:16:35 +0000 (04:16 +0000)]
move to SAFE_FREE()
(This used to be commit e61aec84edaf55b9ee087b076d2f1311033dc839)

22 years agotypo
Simo Sorce [Mon, 17 Sep 2001 03:44:52 +0000 (03:44 +0000)]
typo
(This used to be commit 23dc3fc7009ce40064db57d5ec8b720c7d9350a8)

22 years agofixed compilation of groupdb
Andrew Tridgell [Mon, 17 Sep 2001 03:40:55 +0000 (03:40 +0000)]
fixed compilation of groupdb
(This used to be commit 23e2561a1c303942cfceae8929e0806db91b4aa4)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 03:33:37 +0000 (03:33 +0000)]
move to SAFE_FREE()
(This used to be commit 48fc6a6cd52e01b287030fbbf0aa08a6814c5e11)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 02:19:44 +0000 (02:19 +0000)]
move to SAFE_FREE()
(This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 00:58:15 +0000 (00:58 +0000)]
move to SAFE_FREE()
(This used to be commit 89833bbbd8508dcdca70dff2c94e1d8f22535f1f)

22 years agomove to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 00:52:47 +0000 (00:52 +0000)]
move to SAFE_FREE()
(This used to be commit 29db6ef7a7c4df51adf964c0aecb1164e4ab7dee)

22 years agointroduce SAFE_FREE() macro as suggested by andreas moroder.
Simo Sorce [Mon, 17 Sep 2001 00:47:40 +0000 (00:47 +0000)]
introduce SAFE_FREE() macro as suggested by andreas moroder.
(This used to be commit b7edd55885791f9aded11a0b0a131e02a819f374)

22 years agoFix compile warnings on IRIX's cc.
Andrew Bartlett [Sun, 16 Sep 2001 08:29:03 +0000 (08:29 +0000)]
Fix compile warnings on IRIX's cc.
(This used to be commit 5b369bce69c2cbe01f938a643d3b9e71bc2075c4)

22 years agoFix (I hope) for a number of little compile warnings found by the IRIX
Andrew Bartlett [Sun, 16 Sep 2001 08:24:44 +0000 (08:24 +0000)]
Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm.

Andrew Bartlett
(This used to be commit 0ff0a91a6baf7cf6b3ca59a2b4067cc07e3f2f88)

22 years agoMinor tidy-up.
Andrew Bartlett [Sun, 16 Sep 2001 07:32:06 +0000 (07:32 +0000)]
Minor tidy-up.
(This used to be commit dbb21aedbf10ebc4ef0d549c4f919cf91459eef7)

22 years agoFix up workstaion and kickoff time checks, moved to auth_smbpasswd.c where
Andrew Bartlett [Sun, 16 Sep 2001 06:35:35 +0000 (06:35 +0000)]
Fix up workstaion and kickoff time checks, moved to auth_smbpasswd.c where
they can have general effect.

Fixed up workstaion support in the rest of samba, so that we can do these
checks.

Pass through the workstation for cli_net_logon(), if supplied.
(This used to be commit 7f04a139b2ee34b4c282590509cdf21395815a7a)

22 years agofixed compilation error in smbw
Andrew Tridgell [Sun, 16 Sep 2001 03:49:15 +0000 (03:49 +0000)]
fixed compilation error in smbw
(This used to be commit d1e9fb7778268a626b0550fa350d55d8eec7706e)

22 years agoStart pushing the NTSTATUS stuff out to the wire for session setups.
Andrew Bartlett [Sun, 16 Sep 2001 02:35:55 +0000 (02:35 +0000)]
Start pushing the NTSTATUS stuff out to the wire for session setups.

Rework the 'map to guest' code, its now possible to follow what its trying
to do...

Add an NT_STATUS_EQUAL(x,y) macro to make this stuff sane to look at.

Andrew Bartlett
(This used to be commit d618880661976644a6ee713edf969ad561e82097)

22 years agoKill off the dangerous passwd program default, as its both very
Andrew Bartlett [Sun, 16 Sep 2001 00:07:04 +0000 (00:07 +0000)]
Kill off the dangerous passwd program default, as its both very
system-dependent and can allow (when unix password sync = yes) the
'syncronisation' of root's password by a normal user :-(

Andrew Bartlett
(This used to be commit eecda11eef8bff73286c6a3c9f89ed0d1dcd7f73)

22 years agoLooks like it missed these. make_connection now no longer takes a 'username'
Andrew Bartlett [Sat, 15 Sep 2001 23:32:19 +0000 (23:32 +0000)]
Looks like it missed these.  make_connection now no longer takes a 'username'
argument.
(This used to be commit 0e1322227b0a91226b4b85c8e0ff838ebfd9e962)

22 years agofree memory before returning.
Simo Sorce [Sat, 15 Sep 2001 14:03:25 +0000 (14:03 +0000)]
free memory before returning.
tx Andreas Moroder.
(This used to be commit 8d60a825f74a340beba11193a28fd83b0c4a8129)

22 years agouse variables _before_ freeing them!
Simo Sorce [Sat, 15 Sep 2001 13:21:54 +0000 (13:21 +0000)]
use variables _before_ freeing them!
thanks to Andreas Moroder for spotting these two.
(This used to be commit 01f30ca0ad472eaab8f80ec4278b1d391be3a1ae)

22 years agoKill off the //server/share%user hack in share level security.
Andrew Bartlett [Sat, 15 Sep 2001 12:55:59 +0000 (12:55 +0000)]
Kill off the //server/share%user hack in share level security.

This should help make much of this code simpiler.

Andrew Bartlett
(This used to be commit fb0c3629c360fd0c57129500474960e6da6f9ef0)

22 years agoupdate for .proto.stamp
Andrew Bartlett [Sat, 15 Sep 2001 12:24:09 +0000 (12:24 +0000)]
update for .proto.stamp
(This used to be commit d3a731a3d52a0cc297404b74e74cc9376ddd597f)

22 years agoOops... For reference, NTLMv2 passwords are > 24 chars in length, while
Andrew Bartlett [Sat, 15 Sep 2001 12:20:21 +0000 (12:20 +0000)]
Oops...  For reference, NTLMv2 passwords are > 24 chars in length, while
NTLMv1 passwords (and old LM passwords) are exactly 24 in lenghth.
(This used to be commit 51baa1614d1a338f50dbf8eaa5ea31ab58c11409)

22 years agoThis looked suspicious now we are attempting to to NTLMv2.
Andrew Bartlett [Sat, 15 Sep 2001 12:16:22 +0000 (12:16 +0000)]
This looked suspicious now we are attempting to to NTLMv2.

Andrew Bartlett
(This used to be commit 21baa33946a24159ebe873ac37cf30581437aa1a)

22 years agoFix up NTSTATUS stuff in rpcclient's help function
Andrew Bartlett [Sat, 15 Sep 2001 03:57:12 +0000 (03:57 +0000)]
Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94ba71bdea2bdecb8f21f9daad51ef3a)

22 years agoRestore the profiling data shmem parinoia. This whole area needs to be
Andrew Bartlett [Sat, 15 Sep 2001 02:10:22 +0000 (02:10 +0000)]
Restore the profiling data shmem parinoia.  This whole area needs to be
fixed - an mmaped file or the like would be a good idea.
(This used to be commit bc1385fc5e55eeed626615fad92877296064a27e)

22 years agoActually fill in the status for sainity checks
Andrew Bartlett [Sat, 15 Sep 2001 01:59:44 +0000 (01:59 +0000)]
Actually fill in the status for sainity checks

Andrew Bartlett
(This used to be commit d47016de52e9e5c468edf4c87dc60535a9796b99)

22 years agoFixed up Solaris 64 bit configure.
Jeremy Allison [Sat, 15 Sep 2001 00:29:54 +0000 (00:29 +0000)]
Fixed up Solaris 64 bit configure.
Jeremy.
(This used to be commit 36516b2ca97e8644a29055dfab868aced644f9aa)

22 years agomerges from 2.2
Gerald Carter [Fri, 14 Sep 2001 15:33:09 +0000 (15:33 +0000)]
merges from 2.2
(This used to be commit b619458dde158c37a4420a28a7e1e1f70e7a18d1)

22 years agomerge from appliance_head
Gerald Carter [Fri, 14 Sep 2001 15:22:49 +0000 (15:22 +0000)]
merge from appliance_head
(This used to be commit f70b1707e42b3f7aaa38cc5637fcc5cbcdd5a26a)

22 years agomerge from 2.2
Gerald Carter [Fri, 14 Sep 2001 15:19:15 +0000 (15:19 +0000)]
merge from 2.2
(This used to be commit 0e4d2384dee905c730d011595337ff5ecc260a13)

22 years agoUpdate manpage for new 'add machine script' paramater
Andrew Bartlett [Fri, 14 Sep 2001 12:30:14 +0000 (12:30 +0000)]
Update manpage for new 'add machine script' paramater
(This used to be commit 68dc525e8e7906a8618b6d28c5543ce89768563d)

22 years agoNow that we always get back an NTSTATUS code actually pass it on to the
Andrew Bartlett [Fri, 14 Sep 2001 10:38:40 +0000 (10:38 +0000)]
Now that we always get back an NTSTATUS code actually pass it on to the
auth subsytem.  Also kill off the (unneeded) wrapper fuction.

Andrew Bartlett
(This used to be commit 96f06b490ac5e9fd86debccf8d41675fa41f7726)

22 years agoFinally commit my fix to this little mess...
Andrew Bartlett [Fri, 14 Sep 2001 10:31:39 +0000 (10:31 +0000)]
Finally commit my fix to this little mess...

The same function that adds machines to the system also adds users, and the
new 'add user script'/'add machine script' distinction needs to be made
correctly.  Also introduces a sainity check for correct $ termination.

Andrew Bartlett
(This used to be commit ef377ea0cc55cb6647ecd7a634cf5983e11cfe99)

22 years agoProduce correct lanman and nt hashes in samsync smbpasswd output. The
Tim Potter [Fri, 14 Sep 2001 04:37:49 +0000 (04:37 +0000)]
Produce correct lanman and nt hashes in samsync smbpasswd output.  The
output from samsync -p produces the same output as running PWDUMP.EXE on
the domain controller except it happens via the sam synchronisation protocol.
(This used to be commit 5da98620021cda92d4752e7388f0e0cdfcd0e8cd)

22 years agoMerge prs_hash1() function from tng.
Tim Potter [Fri, 14 Sep 2001 04:36:19 +0000 (04:36 +0000)]
Merge prs_hash1() function from tng.
(This used to be commit 3245714243d15160b9e0e27c413fef65ea91f455)

22 years agoDecode 68-byte password blocks using sam replication password key (which
Tim Potter [Fri, 14 Sep 2001 04:35:48 +0000 (04:35 +0000)]
Decode 68-byte password blocks using sam replication password key (which
is actually the user session key).
(This used to be commit 0f041597f8afa378fc3177264f1e52e014e6cf00)

22 years agoMerge of sam_pwd_hash() function from tng.
Tim Potter [Fri, 14 Sep 2001 04:34:06 +0000 (04:34 +0000)]
Merge of sam_pwd_hash() function from tng.
(This used to be commit b6cb6b837ac06d8b9cb898668e69236b64a8b698)

22 years agoUse session key from cli_state struct rather than the uninitialised one
Tim Potter [Fri, 14 Sep 2001 04:32:52 +0000 (04:32 +0000)]
Use session key from cli_state struct rather than the uninitialised one
when calling cli_netlogon_sam_sync().  (-:
(This used to be commit e4a3231a074b01cb1d6c4bf42e0a8e687e584413)

22 years agoRemoved CHECK_STRUCT macro - it isn't used anywhere.
Tim Potter [Fri, 14 Sep 2001 04:31:15 +0000 (04:31 +0000)]
Removed CHECK_STRUCT macro - it isn't used anywhere.
(This used to be commit 06c619b395f212ec3122cf1c804b27afba04e79d)

22 years agoOops.
Tim Potter [Fri, 14 Sep 2001 00:20:38 +0000 (00:20 +0000)]
Oops.
(This used to be commit 4c92d82bdb35db3e01a162fb0aa00a6fe7486c70)

22 years agoDiscovered a whole lot more opcodes on the LSA pipe while writing a rpc
Tim Potter [Thu, 13 Sep 2001 07:15:35 +0000 (07:15 +0000)]
Discovered a whole lot more opcodes on the LSA pipe while writing a rpc
scanner.  There's lots of quota, privilege, and trusted domain goodness
waiting to be reverse engineered here!

Unfortunately the scanner can crash LSASS.EXE on NT4 just by writing
packets containing 0xdeadbeef.  )-:
(This used to be commit f0ef301cff57c9bf07694e0675eec67c61367afb)

22 years agoFixed return value for cli_dfs_exist() - nt4 returns 1, w2k returns 2.
Tim Potter [Thu, 13 Sep 2001 01:00:46 +0000 (01:00 +0000)]
Fixed return value for cli_dfs_exist() - nt4 returns 1, w2k returns 2.

Use werror_to_ntstatus() to convert error returns from dfs client functions
into nt errors.
(This used to be commit a83061ef3e4933c52e7206270b455a3888fa63a8)

22 years agoadded a new global option "hostname lookups = yes/no"
Andrew Tridgell [Thu, 13 Sep 2001 00:30:47 +0000 (00:30 +0000)]
added a new global option "hostname lookups = yes/no"
This should finally kill off the remaining places where we
attempt reverse lookups of the IP of the client. It may be that some
pam modules called via the session code will need "hostname lookups = yes"
but I've left it off by default as most sites don't need it and so
many sites have broken reverse maps
(This used to be commit 2b83ad03965d00bba88fe56452d2990099b75ef1)

22 years agoTerminate dfs referral alternate path string. DFS now works again in head
Tim Potter [Thu, 13 Sep 2001 00:30:16 +0000 (00:30 +0000)]
Terminate dfs referral alternate path string.  DFS now works again in head
- hooray!
(This used to be commit 95df7ede465d835eb8ca1d1466c5153caf1a0d71)

22 years agoFixed problems with arg parsing as root with smbpasswd.
Jeremy Allison [Wed, 12 Sep 2001 20:00:42 +0000 (20:00 +0000)]
Fixed problems with arg parsing as root with smbpasswd.
Jeremy.
(This used to be commit 6399cf490dffbd162afa06f18cdd6e0364db567d)

22 years agoConverted msdfs referral server code to use rpcstr_push() functions. Still
Tim Potter [Wed, 12 Sep 2001 12:20:14 +0000 (12:20 +0000)]
Converted msdfs referral server code to use rpcstr_push() functions.  Still
doesn't work though.  )-:
(This used to be commit ec7296d6e9b5b61bac778c2093ee0cd0e23a2344)

22 years agoString length fix from Toomas Soome <tsoome@ut.ee>
Tim Potter [Wed, 12 Sep 2001 11:48:22 +0000 (11:48 +0000)]
String length fix from Toomas Soome <tsoome@ut.ee>
(This used to be commit 42417a425b524bc74360fdf6f1a16bfad38b9818)

22 years agoIgnore torture test binaries.
Tim Potter [Wed, 12 Sep 2001 07:36:27 +0000 (07:36 +0000)]
Ignore torture test binaries.
(This used to be commit c5a94780dc653260cf6abd09f6a321b93806529a)

22 years agoFixed typo.
Tim Potter [Wed, 12 Sep 2001 07:22:55 +0000 (07:22 +0000)]
Fixed typo.
(This used to be commit 2138c4461921b8ac3141231169af1eaa6e85f9ba)

22 years agoSome patches to authentication:
Tim Potter [Wed, 12 Sep 2001 06:39:50 +0000 (06:39 +0000)]
Some patches to authentication:

 - the usersupplied_info now contains a smb_username (as it comes across on
   the wire) and a unix_username (after being passed through mapping
   functions)

 - when doing security={server,domain} use the smb_username, otherwise use
   the unix_username
(This used to be commit d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547)

22 years ago- enable MSDFS by default, there seems no reason not to have it enabled
Andrew Tridgell [Wed, 12 Sep 2001 03:08:51 +0000 (03:08 +0000)]
- enable MSDFS by default, there seems no reason not to have it enabled
  by default in Samba 3.x

- got rid of some unused parameters in Makefile.in

- declare DEBUGLEVEL in debug.h rather than in each file
(This used to be commit b8651acb9c0d7248a6a2e82c33b1e43633fd83fd)

22 years agoHmm - needs to be converted to pull/push unistr routines. But at least it
Tim Potter [Wed, 12 Sep 2001 01:15:24 +0000 (01:15 +0000)]
Hmm - needs to be converted to pull/push unistr routines.  But at least it
compiles now which should keep the build farm happy.
(This used to be commit 5686a2cfe874e8b30bcb2781fa4bfe7ae0cefb17)

22 years agoConverted DFS error returns to WERROR instead of uint32.
Tim Potter [Wed, 12 Sep 2001 01:14:03 +0000 (01:14 +0000)]
Converted DFS error returns to WERROR instead of uint32.
(This used to be commit 97286570ef6f9151b5fe0be32aa4b294e7db9ab8)

22 years agoMoved and renamed DFS error constants from include/rpc_dfs.h to doserr.h to
Tim Potter [Wed, 12 Sep 2001 01:11:43 +0000 (01:11 +0000)]
Moved and renamed DFS error constants from include/rpc_dfs.h to doserr.h to
fit in with new error reporting subsystem.
(This used to be commit dbfd50d447e4166a4233034885666d985ca6beb8)

22 years agoUpdate from sgml source.
Tim Potter [Tue, 11 Sep 2001 05:28:56 +0000 (05:28 +0000)]
Update from sgml source.
(This used to be commit e101e945b78fbe53b6bdcf6ddaa9355547af09fd)

22 years agoFixed some bad markup.
Tim Potter [Tue, 11 Sep 2001 05:26:44 +0000 (05:26 +0000)]
Fixed some bad markup.
(This used to be commit f66899965ea3d9677ba75dff56df2319b3e4b7c0)

22 years agoStandardised on 'var = value' when referencing smb.conf parameters, rather
Tim Potter [Tue, 11 Sep 2001 05:19:10 +0000 (05:19 +0000)]
Standardised on 'var = value' when referencing smb.conf parameters, rather
than 'var=value'.

Fixed up some dodgy quoting on the way.
(This used to be commit 0606c194d6e3aba0c1aac883fe04e0c6e9e9a578)

22 years agoTweak the building rules under Solaris with CC.
Richard Sharpe [Tue, 11 Sep 2001 04:29:25 +0000 (04:29 +0000)]
Tweak the building rules under Solaris with CC.
(This used to be commit d3758404d43b1b4be0b980a4fe078cab458e6d21)

22 years agoAdded a string for NT_STATUS_OK, m'kay?
Tim Potter [Tue, 11 Sep 2001 04:14:26 +0000 (04:14 +0000)]
Added a string for NT_STATUS_OK, m'kay?
(This used to be commit ff149308349fbf80399d9d541659f3c1d668306a)

22 years agoMake sure to commit configure
Richard Sharpe [Tue, 11 Sep 2001 03:11:06 +0000 (03:11 +0000)]
Make sure to commit configure
(This used to be commit a3f5139beb774163f811d9e68839742b4d938e87)