1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

5449 Commits

Author SHA1 Message Date
Andrew Bartlett
6adafe50d4 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 9020d88493)
2001-09-19 05:26:11 +00:00
Andrew Bartlett
2309cd7f64 Fix (I hope) compile on HP-UX. Found by the build farm.
(This used to be commit fd5c67d35a)
2001-09-19 04:16:35 +00:00
Andrew Tridgell
56aa0a274d got rid of bogus write list substitution error messages
(This used to be commit 0deae6c407)
2001-09-19 04:11:23 +00:00
Jeremy Allison
af0d86a9fc 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 0e75c0fc1a)
2001-09-19 03:33:47 +00:00
Andrew Tridgell
3e9bcd111d don't try to initgroups in non root mode
(This used to be commit 1a04ea2476)
2001-09-19 03:30:20 +00:00
Andrew Bartlett
01529e340c fix debug
(This used to be commit d103371e80)
2001-09-19 02:53:14 +00:00
Andrew Bartlett
36939fcd24 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 00c667c0ad)
2001-09-19 02:28:15 +00:00
Jeremy Allison
e9479e8d8a Return correct error code on lock fail in tdb_expand.
Jeremy.
(This used to be commit b45793ec3f)
2001-09-19 00:02:28 +00:00
Jeremy Allison
a27509937c 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 e4b41a8f31)
2001-09-18 22:59:12 +00:00
Jeremy Allison
c64cd552c4 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 313c2e8652)
2001-09-18 21:17:58 +00:00
Jeremy Allison
5bc82e443b 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 22c5915bb4)
2001-09-18 06:41:29 +00:00
Jeremy Allison
36a6611da2 Use structure copy to fix unaligned accesses on 64bit architectures on
Linux.
Jeremy.
(This used to be commit b4b891279b)
2001-09-18 06:20:28 +00:00
Tim Potter
15a6649c01 Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
(This used to be commit e0bdcbc599)
2001-09-18 02:49:35 +00:00
Simo Sorce
c0ef0e113e move to SAFE_FREE()
(This used to be commit 67db8f03c5)
2001-09-17 11:48:29 +00:00
Simo Sorce
2d6a3079b8 move to SAFE_FREE()
(This used to be commit fc71962409)
2001-09-17 11:37:57 +00:00
Simo Sorce
61b2794968 move to SAFE_FREE()
(This used to be commit a95943fde0)
2001-09-17 11:25:41 +00:00
Simo Sorce
87945989c0 move to SAFE_FREE()
(This used to be commit 5ceecc7bef)
2001-09-17 10:26:23 +00:00
Simo Sorce
e7db47bffb move to SAFE_FREE()
(This used to be commit 94b0fde8a8)
2001-09-17 10:00:29 +00:00
Simo Sorce
941a3a5d3a move to SAFE_FREE()
(This used to be commit 549fe42bd4)
2001-09-17 09:41:30 +00:00
Simo Sorce
091dbaa00b move to SAFE_FREE()
(This used to be commit 09bf442549)
2001-09-17 09:25:57 +00:00
Simo Sorce
4561e8a8ea move to SAFE_FREE()
(This used to be commit 64d35e94fe)
2001-09-17 05:04:17 +00:00
Simo Sorce
84ab9d2cb3 move to SAFE_FREE()
(This used to be commit fb0984e60f)
2001-09-17 04:58:38 +00:00
Simo Sorce
b50d10c2a3 move to SAFE_FREE()
(This used to be commit 03dc67788f)
2001-09-17 04:52:45 +00:00
Simo Sorce
1f312492ec move to SAFE_FREE()
(This used to be commit 1446a1562b)
2001-09-17 04:35:51 +00:00
Andrew Tridgell
23af074326 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 2d507ec669)
2001-09-17 04:23:48 +00:00
Simo Sorce
81fdc3c3f7 move to SAFE_FREE()
(This used to be commit e61aec84ed)
2001-09-17 04:16:35 +00:00
Simo Sorce
acc3732971 typo
(This used to be commit 23dc3fc700)
2001-09-17 03:44:52 +00:00
Andrew Tridgell
7f641b4676 fixed compilation of groupdb
(This used to be commit 23e2561a1c)
2001-09-17 03:40:55 +00:00
Simo Sorce
bcbd75f7ad move to SAFE_FREE()
(This used to be commit 48fc6a6cd5)
2001-09-17 03:33:37 +00:00
Simo Sorce
484a7c0341 move to SAFE_FREE()
(This used to be commit 60e907b7e8)
2001-09-17 02:19:44 +00:00
Simo Sorce
31c3f7a8b2 move to SAFE_FREE()
(This used to be commit 89833bbbd8)
2001-09-17 00:58:15 +00:00
Simo Sorce
77bdea1b95 move to SAFE_FREE()
(This used to be commit 29db6ef7a7)
2001-09-17 00:52:47 +00:00
Simo Sorce
e2d393bd24 introduce SAFE_FREE() macro as suggested by andreas moroder.
(This used to be commit b7edd55885)
2001-09-17 00:47:40 +00:00
Andrew Bartlett
b0c3915d5e Fix compile warnings on IRIX's cc.
(This used to be commit 5b369bce69)
2001-09-16 08:29:03 +00:00
Andrew Bartlett
f7f0200210 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 0ff0a91a6b)
2001-09-16 08:24:44 +00:00
Andrew Bartlett
6ff605c283 Minor tidy-up.
(This used to be commit dbb21aedbf)
2001-09-16 07:32:06 +00:00
Andrew Bartlett
dec3cbcaf0 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 7f04a139b2)
2001-09-16 06:35:35 +00:00
Andrew Tridgell
9bae3609ac fixed compilation error in smbw
(This used to be commit d1e9fb7778)
2001-09-16 03:49:15 +00:00
Andrew Bartlett
4d89a65a84 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 d618880661)
2001-09-16 02:35:55 +00:00
Andrew Bartlett
41432074f5 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 eecda11eef)
2001-09-16 00:07:04 +00:00
Andrew Bartlett
06ccf1e499 Looks like it missed these. make_connection now no longer takes a 'username'
argument.
(This used to be commit 0e1322227b)
2001-09-15 23:32:19 +00:00
Simo Sorce
13301415ca free memory before returning.
tx Andreas Moroder.
(This used to be commit 8d60a825f7)
2001-09-15 14:03:25 +00:00
Simo Sorce
72c35310b2 use variables _before_ freeing them!
thanks to Andreas Moroder for spotting these two.
(This used to be commit 01f30ca0ad)
2001-09-15 13:21:54 +00:00
Andrew Bartlett
7892c494e7 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 fb0c3629c3)
2001-09-15 12:55:59 +00:00
Andrew Bartlett
cde3f0fae1 update for .proto.stamp
(This used to be commit d3a731a3d5)
2001-09-15 12:24:09 +00:00
Andrew Bartlett
eb8a3778d0 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 51baa1614d)
2001-09-15 12:20:21 +00:00
Andrew Bartlett
90b5a6279e This looked suspicious now we are attempting to to NTLMv2.
Andrew Bartlett
(This used to be commit 21baa33946)
2001-09-15 12:16:22 +00:00
Andrew Bartlett
1c6b0ff99e Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94)
2001-09-15 03:57:12 +00:00
Andrew Bartlett
9a846daf44 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 bc1385fc5e)
2001-09-15 02:10:22 +00:00
Andrew Bartlett
1c8c7c558b Actually fill in the status for sainity checks
Andrew Bartlett
(This used to be commit d47016de52)
2001-09-15 01:59:44 +00:00