1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

6322 Commits

Author SHA1 Message Date
Andrew Tridgell
73f10d3ef6 fixed bug in POST var handling -
Andrew Bartlett
3a2a967723 If we disable hostname lookups we can at least get a uniform answer for testing
the rhosts and hostsequiv stuff with.

Andrew Bartlett
-
Andrew Tridgell
b8d9d1fca3 tdbtorture updates from when I was trying to track down the hp tdb bug -
Andrew Tridgell
cd6478ad98 convert all POST variables from display to unix charset -
Andrew Bartlett
e12d757099 Add .headers.stamp -
Andrew Bartlett
b6048e28ab Lets call an NTSTATUS an nt_status, not an ecode. -
Andrew Bartlett
d417b6b5cb Zero out these pstrings before we start: makes for much easier debugging. -
Andrew Bartlett
67947bf6e3 Fix up NT_STATUS return for session setups, Win2k objects to anything other
than NT_STATUS_LOGON_FAILURE.  This also brings us (almost) back in line with
their implementation.

Kill off SMBENCRYPT() macro

Kill off 'nt smb support' paramater - tridge okayed this one.

Andrew Bartlett
-
Andrew Tridgell
e78d0a3615 fixed the Makefile so we don't rebuild libsmbclient and build_env.h
(and thus smbd) every time
-
Jeremy Allison
bc7963bd64 Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy.
-
Andrew Bartlett
d1bc778301 These are RIDs not Unix UIDs so make this clear in the feild names.
Andrew Bartlett
-
Jeremy Allison
59a4684201 Attempt to make quotas work with RH7.1, and with other Linuxen... This is
*HARD*, dammit !
Jeremy.
-
Andrew Tridgell
c82f7828c0 fixed the error code handling in can_delete() by converting it to
NTSTATUS. This gets the right error codes in SMBunlink
-
Volker Lendecke
9ecd9db4ef Added -s configfile to smbcontrol.c.
Volker
-
Andrew Tridgell
374f76fa2d fixed character set for user name pull -
Jeremy Allison
73ec939239 smbmount fixes from Urban.
Jeremy.
-
Andrew Bartlett
2c2317c56e Move pass_check.c over to NTSTATUS, allowing full NTSTATUS from PAM to wire!
Add the ability for swat to run in non-root-mode (ie non-root from inetd).
 - we still need some of the am_root() calls fixed however.
-
Andrew Bartlett
bf81f00213 We are not meant to touch the username, so use the pass->pw_name output rather
than Get_Pwnam(user, True).
-
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.
-