Andrew Tridgell [Tue, 25 Sep 2001 05:20:43 +0000 (05:20 +0000)]
added a little smbtorture test for dumping the unicode table of a
server. This is just a framework right now - I want this to eventually
replace the win32 test code from monyo
The interesting this about this test is that it shows up a really
horrible performance bug in our stat cache code. I'll see if I can fix
it.
Andrew Bartlett [Tue, 25 Sep 2001 05:08:05 +0000 (05:08 +0000)]
Change ./configure.developer to stay in effect across a
'./config.status --recheck' by making it a real configure option.
reran autoconf
Andrew Tridgell [Tue, 25 Sep 2001 04:27:59 +0000 (04:27 +0000)]
allow all ucs2 chars in utf8, rather than mapping some to a single
char like libiconv does
Andrew Tridgell [Tue, 25 Sep 2001 04:25:49 +0000 (04:25 +0000)]
added cli_qpathinfo_alt_name() for fetching the 8.3 name of a file
Andrew Bartlett [Tue, 25 Sep 2001 02:01:29 +0000 (02:01 +0000)]
Try to fix up manpage installation
Jeremy Allison [Tue, 25 Sep 2001 00:50:37 +0000 (00:50 +0000)]
Fixed enumeration of large numbers of groups from a Samba DC.
Tidied up debug messages in lib/messages.c
Jeremy.
Jeremy Allison [Tue, 25 Sep 2001 00:05:26 +0000 (00:05 +0000)]
Log sys_acl_set_XX at level 2 not zero.
Jeremy.
Jeremy Allison [Mon, 24 Sep 2001 23:50:28 +0000 (23:50 +0000)]
Change log message to 2 from zero when failing to create directory.
Stops spurious profile creation messages.
Jeremy.
Jeremy Allison [Mon, 24 Sep 2001 21:53:34 +0000 (21:53 +0000)]
Removed extra '()' s.
Jeremy.
Motonobu Takahashi [Mon, 24 Sep 2001 18:22:46 +0000 (18:22 +0000)]
fixed a typo in installman.sh
fixed a problem that source/install-sh is not executable
Motonobu Takahashi [Mon, 24 Sep 2001 16:38:54 +0000 (16:38 +0000)]
fixed a typo
Motonobu Takahashi [Mon, 24 Sep 2001 16:13:06 +0000 (16:13 +0000)]
added files and directories to support gettext() feature
Also added some po files to support:
English, Japanese, Polish, Turlish
Motonobu Takahashi [Mon, 24 Sep 2001 16:02:05 +0000 (16:02 +0000)]
Update configure from configure.in
Motonobu Takahashi [Mon, 24 Sep 2001 15:55:09 +0000 (15:55 +0000)]
Added SWAT i18n feature:
TO enable configure with --with-i18n-swat
to support this gettext is integrated
and a new directories name "po" and "intl" are created.
now these languages are supported:
en - English (default)
ja - Japanese
po - Polish
tr - Turkish
To add your language,
to create ${your_language}.po by translating source/po/en.po
into your language is needed.
some of html and image files of various language version are not
included yet, though message catalogue files are installed.
you need to copy files manually under
${swatdir}/lang/$ln/{help,images,included,using_samba}
And also added a option to intall manual pages:
of various lang version
To enable configure with --with-manlangs
but manual pages themself are not included yet.
Motonobu Takahashi [Mon, 24 Sep 2001 15:49:06 +0000 (15:49 +0000)]
added SWAT i18n support files for Japanese and Turkish
Andrew Tridgell [Mon, 24 Sep 2001 06:24:14 +0000 (06:24 +0000)]
fixed a silly off by 1 bug
Andrew Tridgell [Mon, 24 Sep 2001 06:02:31 +0000 (06:02 +0000)]
fixed bug in POST var handling
Andrew Bartlett [Mon, 24 Sep 2001 05:27:44 +0000 (05:27 +0000)]
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 [Mon, 24 Sep 2001 04:56:56 +0000 (04:56 +0000)]
tdbtorture updates from when I was trying to track down the hp tdb bug
Andrew Tridgell [Mon, 24 Sep 2001 04:49:14 +0000 (04:49 +0000)]
convert all POST variables from display to unix charset
Andrew Bartlett [Mon, 24 Sep 2001 01:04:52 +0000 (01:04 +0000)]
Add .headers.stamp
Andrew Bartlett [Sun, 23 Sep 2001 23:07:53 +0000 (23:07 +0000)]
Lets call an NTSTATUS an nt_status, not an ecode.
Andrew Bartlett [Sun, 23 Sep 2001 22:51:27 +0000 (22:51 +0000)]
Zero out these pstrings before we start: makes for much easier debugging.
Andrew Bartlett [Sun, 23 Sep 2001 05:16:03 +0000 (05:16 +0000)]
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 [Sat, 22 Sep 2001 07:50:08 +0000 (07:50 +0000)]
fixed the Makefile so we don't rebuild libsmbclient and build_env.h
(and thus smbd) every time
Jeremy Allison [Sat, 22 Sep 2001 06:45:24 +0000 (06:45 +0000)]
Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy.
Andrew Bartlett [Sat, 22 Sep 2001 03:44:15 +0000 (03:44 +0000)]
These are RIDs not Unix UIDs so make this clear in the feild names.
Andrew Bartlett
Jeremy Allison [Fri, 21 Sep 2001 22:06:03 +0000 (22:06 +0000)]
Attempt to make quotas work with RH7.1, and with other Linuxen... This is
*HARD*, dammit !
Jeremy.
Andrew Tridgell [Fri, 21 Sep 2001 14:27:43 +0000 (14:27 +0000)]
fixed the error code handling in can_delete() by converting it to
NTSTATUS. This gets the right error codes in SMBunlink
Volker Lendecke [Fri, 21 Sep 2001 13:37:52 +0000 (13:37 +0000)]
Added -s configfile to smbcontrol.c.
Volker
Andrew Tridgell [Fri, 21 Sep 2001 13:22:22 +0000 (13:22 +0000)]
fixed character set for user name pull
Jeremy Allison [Thu, 20 Sep 2001 21:06:02 +0000 (21:06 +0000)]
smbmount fixes from Urban.
Jeremy.
Andrew Bartlett [Thu, 20 Sep 2001 13:15:35 +0000 (13:15 +0000)]
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 [Thu, 20 Sep 2001 10:26:50 +0000 (10:26 +0000)]
We are not meant to touch the username, so use the pass->pw_name output rather
than Get_Pwnam(user, True).
Andrew Bartlett [Thu, 20 Sep 2001 08:28:41 +0000 (08:28 +0000)]
Fix up the test for some of the quirkier hosts on the farm, and enable one
previously disabled sub-test.
Andrew Bartlett [Thu, 20 Sep 2001 07:27:55 +0000 (07:27 +0000)]
Check 'hosts equiv' and 'use rhosts' compatability with 'hostname
lookup' value.
Andrew Bartlett [Thu, 20 Sep 2001 07:09:28 +0000 (07:09 +0000)]
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 [Thu, 20 Sep 2001 06:23:29 +0000 (06:23 +0000)]
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 [Thu, 20 Sep 2001 03:31:57 +0000 (03:31 +0000)]
Fix for MiXed and UPPER case usernames with plaintext PAM passwords.
Andrew Bartlett [Thu, 20 Sep 2001 00:19:55 +0000 (00:19 +0000)]
Revert this one: The NTLMv2 checks need the original username as found
on the wire.
Andrew Bartlett [Wed, 19 Sep 2001 23:53:51 +0000 (23:53 +0000)]
- Fix up to use sampass->username insted of user_info->smb_username
- Fix initial lookup to use the mapped username.
Andrew Bartlett [Wed, 19 Sep 2001 13:29:33 +0000 (13:29 +0000)]
Try to fix up the shell syntax
Andrew Bartlett [Wed, 19 Sep 2001 12:47:59 +0000 (12:47 +0000)]
Reran autoconf, autoheader
Andrew Bartlett [Wed, 19 Sep 2001 11:44:00 +0000 (11:44 +0000)]
typo
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
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
Andrew Bartlett [Wed, 19 Sep 2001 09:37:33 +0000 (09:37 +0000)]
printf() -> d_printf()
Andrew Bartlett [Wed, 19 Sep 2001 08:37:05 +0000 (08:37 +0000)]
This isn't used anymore
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.
Jeremy Allison [Wed, 19 Sep 2001 07:06:34 +0000 (07:06 +0000)]
Removed unneeded variable, added comment on deadlock prevention.
Jeremy.
Jeremy Allison [Wed, 19 Sep 2001 06:55:25 +0000 (06:55 +0000)]
Put pwrite code back in expand_file.
Jeremy.
Jeremy Allison [Wed, 19 Sep 2001 06:49:02 +0000 (06:49 +0000)]
Removed test code that got added by accident.
Jeremy.
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
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.
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
Andrew Tridgell [Wed, 19 Sep 2001 05:41:51 +0000 (05:41 +0000)]
*llist being NULL is not an error
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
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.
Andrew Tridgell [Wed, 19 Sep 2001 04:11:23 +0000 (04:11 +0000)]
got rid of bogus write list substitution error messages
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.
Andrew Tridgell [Wed, 19 Sep 2001 03:30:20 +0000 (03:30 +0000)]
don't try to initgroups in non root mode
Andrew Bartlett [Wed, 19 Sep 2001 02:53:14 +0000 (02:53 +0000)]
fix debug
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
Jeremy Allison [Wed, 19 Sep 2001 00:02:28 +0000 (00:02 +0000)]
Return correct error code on lock fail in tdb_expand.
Jeremy.
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.
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.
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.
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.
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.
Tim Potter [Tue, 18 Sep 2001 00:13:29 +0000 (00:13 +0000)]
Doc fix merge from 2.2
Simo Sorce [Mon, 17 Sep 2001 11:48:29 +0000 (11:48 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 11:37:57 +0000 (11:37 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 11:25:41 +0000 (11:25 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 10:26:23 +0000 (10:26 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 10:00:29 +0000 (10:00 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 09:41:30 +0000 (09:41 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 09:25:57 +0000 (09:25 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 05:04:17 +0000 (05:04 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:58:38 +0000 (04:58 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:52:45 +0000 (04:52 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 04:35:51 +0000 (04:35 +0000)]
move to SAFE_FREE()
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
Simo Sorce [Mon, 17 Sep 2001 04:16:35 +0000 (04:16 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 03:44:52 +0000 (03:44 +0000)]
typo
Andrew Tridgell [Mon, 17 Sep 2001 03:40:55 +0000 (03:40 +0000)]
fixed compilation of groupdb
Simo Sorce [Mon, 17 Sep 2001 03:33:37 +0000 (03:33 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 02:19:44 +0000 (02:19 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 00:58:15 +0000 (00:58 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 00:52:47 +0000 (00:52 +0000)]
move to SAFE_FREE()
Simo Sorce [Mon, 17 Sep 2001 00:47:40 +0000 (00:47 +0000)]
introduce SAFE_FREE() macro as suggested by andreas moroder.
Andrew Bartlett [Sun, 16 Sep 2001 08:29:03 +0000 (08:29 +0000)]
Fix compile warnings on IRIX's cc.
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
Andrew Bartlett [Sun, 16 Sep 2001 07:32:06 +0000 (07:32 +0000)]
Minor tidy-up.
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.
Andrew Tridgell [Sun, 16 Sep 2001 03:49:15 +0000 (03:49 +0000)]
fixed compilation error in smbw
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
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
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.
Simo Sorce [Sat, 15 Sep 2001 14:03:25 +0000 (14:03 +0000)]
free memory before returning.
tx Andreas Moroder.
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.