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

6318 Commits

Author SHA1 Message Date
Andrew Bartlett
fee958d31a Add .headers.stamp
(This used to be commit e12d757099)
2001-09-24 01:04:52 +00:00
Andrew Bartlett
7cb54b29dc Lets call an NTSTATUS an nt_status, not an ecode.
(This used to be commit b6048e28ab)
2001-09-23 23:07:53 +00:00
Andrew Bartlett
5993238b0e Zero out these pstrings before we start: makes for much easier debugging.
(This used to be commit d417b6b5cb)
2001-09-23 22:51:27 +00:00
Andrew Bartlett
4eb7ef6b61 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
(This used to be commit 67947bf6e3)
2001-09-23 05:16:03 +00:00
Andrew Tridgell
b192746e77 fixed the Makefile so we don't rebuild libsmbclient and build_env.h
(and thus smbd) every time
(This used to be commit e78d0a3615)
2001-09-22 07:50:08 +00:00
Jeremy Allison
0492effcf3 Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy.
(This used to be commit bc7963bd64)
2001-09-22 06:45:24 +00:00
Andrew Bartlett
81ad252fbc These are RIDs not Unix UIDs so make this clear in the feild names.
Andrew Bartlett
(This used to be commit d1bc778301)
2001-09-22 03:44:15 +00:00
Jeremy Allison
d76dfbb879 Attempt to make quotas work with RH7.1, and with other Linuxen... This is
*HARD*, dammit !
Jeremy.
(This used to be commit 59a4684201)
2001-09-21 22:06:03 +00:00
Andrew Tridgell
b49a1f01b0 fixed the error code handling in can_delete() by converting it to
NTSTATUS. This gets the right error codes in SMBunlink
(This used to be commit c82f7828c0)
2001-09-21 14:27:43 +00:00
Volker Lendecke
21532486d2 Added -s configfile to smbcontrol.c.
Volker
(This used to be commit 9ecd9db4ef)
2001-09-21 13:37:52 +00:00
Andrew Tridgell
80ad52d5c2 fixed character set for user name pull
(This used to be commit 374f76fa2d)
2001-09-21 13:22:22 +00:00
Jeremy Allison
b54692bea7 smbmount fixes from Urban.
Jeremy.
(This used to be commit 73ec939239)
2001-09-20 21:06:02 +00:00
Andrew Bartlett
fa6713bf8b 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.
(This used to be commit 2c2317c56e)
2001-09-20 13:15:35 +00:00
Andrew Bartlett
994a449703 We are not meant to touch the username, so use the pass->pw_name output rather
than Get_Pwnam(user, True).
(This used to be commit bf81f00213)
2001-09-20 10:26:50 +00:00
Andrew Bartlett
5377944635 Fix up the test for some of the quirkier hosts on the farm, and enable one
previously disabled sub-test.
(This used to be commit 4df974527c)
2001-09-20 08:28:41 +00:00
Andrew Bartlett
a88ed5d1be Check 'hosts equiv' and 'use rhosts' compatability with 'hostname
lookup' value.
(This used to be commit 5f5b4b48ca)
2001-09-20 07:27:55 +00:00
Andrew Bartlett
8bb1479500 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
(This used to be commit 99e8a263ad)
2001-09-20 07:09:28 +00:00
Andrew Bartlett
c16effd5fb 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
(This used to be commit 9e5a1d1623)
2001-09-20 06:23:29 +00:00
Andrew Bartlett
395454db5d Fix for MiXed and UPPER case usernames with plaintext PAM passwords.
(This used to be commit ba1b411f55)
2001-09-20 03:31:57 +00:00
Andrew Bartlett
79009d6afa Revert this one: The NTLMv2 checks need the original username as found
on the wire.
(This used to be commit 7c9ae76b3f)
2001-09-20 00:19:55 +00:00
Andrew Bartlett
158a5b8399 - Fix up to use sampass->username insted of user_info->smb_username
- Fix initial lookup to use the mapped username.
(This used to be commit 162b88e231)
2001-09-19 23:53:51 +00:00
Andrew Bartlett
14811e7d0a Try to fix up the shell syntax
(This used to be commit f57b1085b3)
2001-09-19 13:29:33 +00:00
Andrew Bartlett
e121186392 Reran autoconf, autoheader
(This used to be commit 26e523bf6e)
2001-09-19 12:47:59 +00:00
Andrew Bartlett
b882efea35 typo
(This used to be commit 7a47e0fceb)
2001-09-19 11:44:00 +00:00
Andrew Bartlett
31c44c4744 Adding the appropirate files might help...
(These are part of the build_options patch).

Andrew Bartlett
(This used to be commit 4e5c7724b4)
2001-09-19 10:45:33 +00:00
Andrew Bartlett
6794b58a8c 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 beff1d2bea)
2001-09-19 09:44:12 +00:00
Andrew Bartlett
ebe02a7e87 printf() -> d_printf()
(This used to be commit e8bd42edc0)
2001-09-19 09:37:33 +00:00
Andrew Bartlett
adb3579822 This isn't used anymore
(This used to be commit c6df98a1e3)
2001-09-19 08:37:05 +00:00
Andrew Bartlett
03b0f3b106 Use lp_private_dir() not magic on the lp_smb_passwd_file() output.
(This used to be commit 65ae05ce63)
2001-09-19 08:21:12 +00:00
Jeremy Allison
79a9902d39 Removed unneeded variable, added comment on deadlock prevention.
Jeremy.
(This used to be commit 3f52632ac9)
2001-09-19 07:06:34 +00:00
Jeremy Allison
0ef1acbabb Put pwrite code back in expand_file.
Jeremy.
(This used to be commit a3267551d8)
2001-09-19 06:55:25 +00:00
Jeremy Allison
8c8b9c69e5 Removed test code that got added by accident.
Jeremy.
(This used to be commit fc91ecc236)
2001-09-19 06:49:02 +00:00
Andrew Tridgell
01bb01b3ca 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 d4e4e81328)
2001-09-19 06:46:35 +00:00
Andrew Bartlett
6a7e334ea3 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 3afad9ae01)
2001-09-19 06:01:35 +00:00
Andrew Tridgell
2bc9ef3846 added a hook to reopen all tdb's after the server fork
this prevents the fd seek pointer problem
(This used to be commit f49518e497)
2001-09-19 05:43:15 +00:00
Andrew Tridgell
d9c1da5b0c *llist being NULL is not an error
(This used to be commit c4d8ad2c2e)
2001-09-19 05:41:51 +00:00
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
Tim Potter
006c8342de Doc fix merge from 2.2
(This used to be commit 865167203c)
2001-09-18 00:13:29 +00:00