1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

6604 Commits

Author SHA1 Message Date
Andrew Bartlett
4df974527c Fix up the test for some of the quirkier hosts on the farm, and enable one
previously disabled sub-test.
-
Andrew Bartlett
5f5b4b48ca Check 'hosts equiv' and 'use rhosts' compatability with 'hostname
lookup' value.
-
Andrew Bartlett
99e8a263ad Rearrange the ordering of the checks in make_connection(). The new order has
some sainity, avoiding things like 'root preexec' when the connection would
otherwise already be denied (max connections).

This does change behaviour, but I think its for the best.

Andrew Bartlett
-
Andrew Bartlett
9e5a1d1623 Add and modify some of the various tests I have had sitting around here for a
little while.  This should give us a bit more coverage.

Andrew Bartlett
-
Andrew Bartlett
ba1b411f55 Fix for MiXed and UPPER case usernames with plaintext PAM passwords. -
Andrew Bartlett
7c9ae76b3f Revert this one: The NTLMv2 checks need the original username as found
on the wire.
-
Andrew Bartlett
162b88e231 - Fix up to use sampass->username insted of user_info->smb_username
- Fix initial lookup to use the mapped username.
-
Andrew Bartlett
f57b1085b3 Try to fix up the shell syntax -
Andrew Bartlett
26e523bf6e Reran autoconf, autoheader -
Andrew Bartlett
7a47e0fceb typo -
Andrew Bartlett
4e5c7724b4 Adding the appropirate files might help...
(These are part of the build_options patch).

Andrew Bartlett
-
Andrew Bartlett
beff1d2bea 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
-
Andrew Bartlett
e8bd42edc0 printf() -> d_printf() -
Andrew Bartlett
c6df98a1e3 This isn't used anymore -
Andrew Bartlett
65ae05ce63 Use lp_private_dir() not magic on the lp_smb_passwd_file() output. -
Jeremy Allison
3f52632ac9 Removed unneeded variable, added comment on deadlock prevention.
Jeremy.
-
Jeremy Allison
a3267551d8 Put pwrite code back in expand_file.
Jeremy.
-
Jeremy Allison
fc91ecc236 Removed test code that got added by accident.
Jeremy.
-
Andrew Tridgell
d4e4e81328 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
-
Andrew Bartlett
3afad9ae01 passdb/pampass.c and passdb/pass_check.c are not passdb related at all,
so don't link them as such.
-
Andrew Tridgell
f49518e497 added a hook to reopen all tdb's after the server fork
this prevents the fd seek pointer problem
-
Andrew Tridgell
c4d8ad2c2e *llist being NULL is not an error -
Andrew Bartlett
9020d88493 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
-
Andrew Bartlett
fd5c67d35a Fix (I hope) compile on HP-UX. Found by the build farm. -
Andrew Tridgell
0deae6c407 got rid of bogus write list substitution error messages -
Jeremy Allison
0e75c0fc1a Fix based on Andrew's insight as re-using a tdb after fork means
parent and child share seek pointer. Damn....
Jeremy.
-
Andrew Tridgell
1a04ea2476 don't try to initgroups in non root mode -
Andrew Bartlett
d103371e80 fix debug -
Andrew Bartlett
00c667c0ad 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
-
Jeremy Allison
b45793ec3f Return correct error code on lock fail in tdb_expand.
Jeremy.
-
Jeremy Allison
e4b41a8f31 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.
-
Jeremy Allison
313c2e8652 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.
-
Jeremy Allison
22c5915bb4 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.
-
Jeremy Allison
b4b891279b Use structure copy to fix unaligned accesses on 64bit architectures on
Linux.
Jeremy.
-
Tim Potter
e0bdcbc599 Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS. -
Tim Potter
865167203c Doc fix merge from 2.2 -
Simo Sorce
67db8f03c5 move to SAFE_FREE() -
Simo Sorce
fc71962409 move to SAFE_FREE() -
Simo Sorce
a95943fde0 move to SAFE_FREE() -
Simo Sorce
5ceecc7bef move to SAFE_FREE() -
Simo Sorce
94b0fde8a8 move to SAFE_FREE() -
Simo Sorce
549fe42bd4 move to SAFE_FREE() -
Simo Sorce
09bf442549 move to SAFE_FREE() -
Simo Sorce
64d35e94fe move to SAFE_FREE() -
Simo Sorce
fb0984e60f move to SAFE_FREE() -
Simo Sorce
03dc67788f move to SAFE_FREE() -
Simo Sorce
1446a1562b move to SAFE_FREE() -
Andrew Tridgell
2d507ec669 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 -
Simo Sorce
e61aec84ed move to SAFE_FREE() -
Simo Sorce
23dc3fc700 typo -