Gerald Carter [Fri, 31 Oct 2003 20:29:18 +0000 (20:29 +0000)]
prompt for password when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
Jeremy Allison [Fri, 31 Oct 2003 19:16:59 +0000 (19:16 +0000)]
Patch from Aurélien Degrémont <adegremont@idealx.com>. "entry" is dependent
on "result", don't free result first.
Jeremy.
Tim Potter [Fri, 31 Oct 2003 01:30:02 +0000 (01:30 +0000)]
Sync up formatting of the va list stuff - the HEAD version was nicer.
Jeremy Allison [Thu, 30 Oct 2003 20:09:13 +0000 (20:09 +0000)]
If nothing to do, return success. Fix from Aur?lien Degr?mont <adegremont@idealx.com>
Jeremy.
Gerald Carter [Thu, 30 Oct 2003 15:57:52 +0000 (15:57 +0000)]
bug 696; check for an invalid fid before dereferencing the fsp pointer
Jeremy Allison [Thu, 30 Oct 2003 00:07:48 +0000 (00:07 +0000)]
Check for nsswitch.h. Patch from albert chin (china@thewrittenword.com).
Jeremy.
Jeremy Allison [Wed, 29 Oct 2003 21:28:00 +0000 (21:28 +0000)]
Fixes to check for wraps which could cause coredumps.
Jeremy.
Tim Potter [Wed, 29 Oct 2003 06:17:33 +0000 (06:17 +0000)]
Compile fix for tdbbackup when Samba needs to override non-C99
compliant implementations of snprintf.
Andrew Tridgell [Wed, 29 Oct 2003 04:58:48 +0000 (04:58 +0000)]
parameterise the listen backlog in smbd and make it larger by default. A backlog of 5 is way too small these days.
Jeremy Allison [Tue, 28 Oct 2003 18:32:03 +0000 (18:32 +0000)]
Don't log at level zero when chdir fails. Ensure correct error message is returned.
Jeremy.
Alexander Bokovoy [Tue, 28 Oct 2003 11:04:08 +0000 (11:04 +0000)]
Update WHATSNEW.txt with proper version from release branch
Jeremy Allison [Tue, 28 Oct 2003 00:51:21 +0000 (00:51 +0000)]
Fix for bug #667. DFS filenames can now have arbitrary case.
Jeremy.
Tim Potter [Mon, 27 Oct 2003 23:43:15 +0000 (23:43 +0000)]
Remove trailing comma on typedef enum. albert chin (china@thewrittenword.com)
Jeremy Allison [Mon, 27 Oct 2003 20:09:15 +0000 (20:09 +0000)]
Missing UNIX -> DOS codepage conversion. Fix from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy.
Richard Sharpe [Mon, 27 Oct 2003 06:51:39 +0000 (06:51 +0000)]
Remove some unused variables uncovered by the build farm.
Richard Sharpe [Sat, 25 Oct 2003 04:13:32 +0000 (04:13 +0000)]
Put in a work-around for ENOTSUP not being defined on OpenBSD.
Richard Sharpe [Fri, 24 Oct 2003 20:24:05 +0000 (20:24 +0000)]
Apply these patches as well ... not sure if they all build. They don't on
FreeBSD 4.3. They might on Linux.
Richard Sharpe [Fri, 24 Oct 2003 18:58:41 +0000 (18:58 +0000)]
Apply latest of Derrell Lippman's changes to libsmbclient.
Richard Sharpe [Fri, 24 Oct 2003 17:58:30 +0000 (17:58 +0000)]
Fix one other place VA_COPY is defined ... should fix NetBSD build.
Richard Sharpe [Fri, 24 Oct 2003 17:01:19 +0000 (17:01 +0000)]
Commit Derrell's changes to libsmbclient plus a small change to configure.in
to see if SGI and other platforms will build.
Richard Sharpe [Fri, 24 Oct 2003 16:08:03 +0000 (16:08 +0000)]
Some spelling mistakes in aclocal.m4 and the va_copy fixups in configure.in
and lib/snprintf. Check for va_copy first, and then look for __va_copy.
Jim McDonough [Fri, 24 Oct 2003 14:03:18 +0000 (14:03 +0000)]
Add shutdown abort try over initshutdown pipe first, then fall back to
winreg pipe if it doesn't work. Fixes bug #534.
I will go back and add the same logic for the shutdown itself, even though
that works so far against win2k (haven't tested all win clients).
Jim McDonough [Fri, 24 Oct 2003 13:49:29 +0000 (13:49 +0000)]
Add initshutdown pipe commands to rpcclient. Second part of fix to bug
#534
Jim McDonough [Fri, 24 Oct 2003 13:38:16 +0000 (13:38 +0000)]
New files for support of initshutdown pipe. Win2k doesn't respond properly
to all requests on the winreg pipe, so we need to handle this new pipe.
First part of fix for bug #534
cvs2svn Import User [Fri, 24 Oct 2003 13:38:14 +0000 (13:38 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
Jim McDonough [Fri, 24 Oct 2003 13:38:13 +0000 (13:38 +0000)]
New files for support of initshutdown pipe. Win2k doesn't respond properly
to all requests on the winreg pipe, so we need to handle this new pipe.
First part of fix for bug #534
Richard Sharpe [Fri, 24 Oct 2003 05:47:39 +0000 (05:47 +0000)]
Check for va_copy before you check for __va_copy, since va_copy is the
actual standard, and __va_copy was the proposed standard.
Tim Potter [Fri, 24 Oct 2003 05:44:19 +0000 (05:44 +0000)]
Add some debugs in the error paths for tdb_brlock() to help track down
a locking problem on HPUX.
Jeremy Allison [Fri, 24 Oct 2003 01:19:23 +0000 (01:19 +0000)]
Andrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy.
Jeremy Allison [Fri, 24 Oct 2003 01:18:56 +0000 (01:18 +0000)]
Andrew Bartlett patch to cope with Exchange 5.5 cleartext pop password auth.
Jeremy.
Volker Lendecke [Thu, 23 Oct 2003 16:51:08 +0000 (16:51 +0000)]
Merge from 3_0:
After a phonecall with jra finally commit this.
This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.
I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.
Volker
Volker Lendecke [Thu, 23 Oct 2003 16:49:46 +0000 (16:49 +0000)]
After a phonecall with jra finally commit this.
This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.
I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.
Volker
Jim McDonough [Thu, 23 Oct 2003 14:33:21 +0000 (14:33 +0000)]
Fix bug 451. Stop net -P from prompting for machine account password.
Based on work by Ken Cross (kcross@nssolutions.com).
Jim McDonough [Thu, 23 Oct 2003 14:33:19 +0000 (14:33 +0000)]
Fix bug 451. Stop net -P from prompting for machine account password.
Based on work by Ken Cross (kcross@nssolutions.com).
Jim McDonough [Thu, 23 Oct 2003 13:47:21 +0000 (13:47 +0000)]
Volker's fix for bug #668. Change the \n after the password prompt to go
to tty instead of stdout.
Jim McDonough [Thu, 23 Oct 2003 13:47:17 +0000 (13:47 +0000)]
Volker's fix for bug #668. Change the \n after the password prompt to go
to tty instead of stdout.
Volker Lendecke [Thu, 23 Oct 2003 13:46:32 +0000 (13:46 +0000)]
Merge from 3_0:
According to Ethereal we have a 32-Bit quantity here. And with SSVAL valgrind
reports an unitialized read which is obviously correct. And I hate valgrind
errors ;-)
Volker
Volker Lendecke [Thu, 23 Oct 2003 13:45:48 +0000 (13:45 +0000)]
According to Ethereal we have a 32-Bit quantity here. And with SSVAL valgrind
reports an unitialized read which is obviously correct. And I hate valgrind
errors ;-)
Volker
Richard Sharpe [Thu, 23 Oct 2003 06:35:45 +0000 (06:35 +0000)]
Apply the changes to libsmbclient that derrell has contributed. Fix some
of the problems with this.
From: Derrell.Lipman@unwireduniverse.com
Jeremy Allison [Wed, 22 Oct 2003 23:38:20 +0000 (23:38 +0000)]
Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
Jeremy Allison [Wed, 22 Oct 2003 23:38:18 +0000 (23:38 +0000)]
Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
Jim McDonough [Wed, 22 Oct 2003 20:59:46 +0000 (20:59 +0000)]
Be sure referent ID is updated for incoming structures, too.
Alexander Bokovoy [Wed, 22 Oct 2003 15:52:36 +0000 (15:52 +0000)]
Fix segfault in mount.cifs helper when there is no options specified during mount
Alexander Bokovoy [Wed, 22 Oct 2003 15:41:08 +0000 (15:41 +0000)]
Fix segfault in mount.cifs helper when there is no options specified during mount
Volker Lendecke [Wed, 22 Oct 2003 07:31:17 +0000 (07:31 +0000)]
Merge from 3_0:
In cli_lsa_lookup_sids don't leave the domain field uninitialized if
some sid could not be mapped. Otherwise this call is unnecessarily
complicated to call.
Volker
Volker Lendecke [Wed, 22 Oct 2003 07:29:18 +0000 (07:29 +0000)]
In cli_lsa_lookup_sids don't leave the domain field uninitialized if
some sid could not be mapped. Otherwise this call is unnecessarily
complicated to call.
Volker
Jeremy Allison [Tue, 21 Oct 2003 23:14:41 +0000 (23:14 +0000)]
Fix for bug #64, Win9x Nexus tools not working against Samba3.0. Missing
map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
Jeremy.
Jeremy Allison [Tue, 21 Oct 2003 23:14:39 +0000 (23:14 +0000)]
Fix for bug #64, Win9x Nexus tools not working against Samba3.0. Missing
map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
Jeremy.
Jeremy Allison [Tue, 21 Oct 2003 21:19:00 +0000 (21:19 +0000)]
Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problems
when reverse connecting back to a client for printer notify.
Jeremy.
Jeremy Allison [Tue, 21 Oct 2003 21:18:58 +0000 (21:18 +0000)]
Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problems
when reverse connecting back to a client for printer notify.
Jeremy.
Jeremy Allison [Tue, 21 Oct 2003 20:17:42 +0000 (20:17 +0000)]
Merge tridge's AIX fixes.
Jeremy.
Jim McDonough [Tue, 21 Oct 2003 17:59:08 +0000 (17:59 +0000)]
Add server side support for epmapper pipe. Currently only does a fixed
mapping, but this is the base for changes to come.
Jeremy Allison [Tue, 21 Oct 2003 17:40:58 +0000 (17:40 +0000)]
Fix signing miss-sequence noticed by Stefan Metzmacher <metze@metzemix.de>
Jeremy.
Jeremy Allison [Tue, 21 Oct 2003 17:40:48 +0000 (17:40 +0000)]
Fix signing miss-sequence noticed by Stefan Metzmacher <metze@metzemix.de>
Jeremy.
Jim McDonough [Tue, 21 Oct 2003 16:27:46 +0000 (16:27 +0000)]
Fix typo
Gerald Carter [Tue, 21 Oct 2003 14:20:02 +0000 (14:20 +0000)]
call initgroups before becomming the user; patch from Fabio Cecchi
Gerald Carter [Tue, 21 Oct 2003 14:19:32 +0000 (14:19 +0000)]
call initgroups before becomming the user; patch from Fabio Cecchi
Andrew Tridgell [Tue, 21 Oct 2003 12:18:08 +0000 (12:18 +0000)]
fixed a number of bugs and memory leaks in the AIX winbind shim
Tim Potter [Tue, 21 Oct 2003 04:54:20 +0000 (04:54 +0000)]
Merge of another fix from Monyo.
Tim Potter [Tue, 21 Oct 2003 04:46:23 +0000 (04:46 +0000)]
Merge of mmap blacklist fix from HEAD.
Tim Potter [Tue, 21 Oct 2003 04:45:33 +0000 (04:45 +0000)]
Merge ... krb5_keytab entry key vs keyblock member check from HEAD.
Tim Potter [Tue, 21 Oct 2003 04:43:48 +0000 (04:43 +0000)]
Merge of wrepld link fix.
Tim Potter [Tue, 21 Oct 2003 04:38:23 +0000 (04:38 +0000)]
Merge of spelling fix from HEAD.
Tim Potter [Tue, 21 Oct 2003 04:08:32 +0000 (04:08 +0000)]
If we have blacklisted mmap() try to avoid using it accidentally by
undefining the HAVE_MMAP symbol.
Jim McDonough [Mon, 20 Oct 2003 21:10:18 +0000 (21:10 +0000)]
Update structures after ethereal showed some marshalling/unmarshalling
errors.
Jeremy Allison [Mon, 20 Oct 2003 21:02:08 +0000 (21:02 +0000)]
Fixed typo spotted by Daniel Jarboe <daniel.jarboe@custserv.com>.
Jeremy.
Jeremy Allison [Mon, 20 Oct 2003 21:02:05 +0000 (21:02 +0000)]
Fixed typo spotted by Daniel Jarboe <daniel.jarboe@custserv.com>.
Jeremy.
Jeremy Allison [Mon, 20 Oct 2003 19:04:06 +0000 (19:04 +0000)]
Merge Volker's fix.
It's a perfectly valid condition to have zero alias members.
Jeremy.
Jeremy Allison [Mon, 20 Oct 2003 19:02:04 +0000 (19:02 +0000)]
Merge Volker's fix.
We are doing NT error codes now.... If we have an NT error, report that
back the same way we handle the DOS error. Although I don't see why
BUFFER_TOO_SMALL should not be handled as an error, simply copy the logic.
This is only called from smbcacls and smbcquotas.
Jeremy.
Jim McDonough [Mon, 20 Oct 2003 18:35:12 +0000 (18:35 +0000)]
Several updates:
- add support for named pipe and netbios queries in parse code
- fix map request structure...unknown byte was alignment
- add sample of named pipe over netbios query in rpcclient (comment only)
Jeremy Allison [Mon, 20 Oct 2003 18:05:22 +0000 (18:05 +0000)]
Merge tridge's tdb updates.
Jeremy.
Gerald Carter [Mon, 20 Oct 2003 16:50:14 +0000 (16:50 +0000)]
more 2.2.x compatibility fixes - allow user looksup in the kerb5
sesssetup to fall back to 'user' instaed of failing is REA.LM\user
doesn't exist.
also fix include line in smb_acls.h as requested by metze
Gerald Carter [Mon, 20 Oct 2003 16:49:45 +0000 (16:49 +0000)]
more 2.2.x compatibility fixes - allow user looksup in the kerb5
sesssetup to fall back to 'user' instaed of failing is REA.LM\user
doesn't exist.
also fix include line in smb_acls.h as requested by metze
Volker Lendecke [Mon, 20 Oct 2003 15:42:09 +0000 (15:42 +0000)]
It's a perfectly valid condition to have zero alias members.
Volker
Gerald Carter [Mon, 20 Oct 2003 14:02:58 +0000 (14:02 +0000)]
make sure we have a devmode before copying a string to the devicename; patch from metze
Gerald Carter [Mon, 20 Oct 2003 14:02:02 +0000 (14:02 +0000)]
make sure we have a devmode before copying a string to the devicename; patch from metze
Volker Lendecke [Mon, 20 Oct 2003 08:41:32 +0000 (08:41 +0000)]
We are doing NT error codes now.... If we have an NT error, report that
back the same way we handle the DOS error. Although I don't see why
BUFFER_TOO_SMALL should not be handled as an error, simply copy the logic.
This is only called from smbcacls and smbcquotas.
Volker
John Terpstra [Mon, 20 Oct 2003 04:51:40 +0000 (04:51 +0000)]
Changed output so all debug output goes to stderr, and all file processing
goes to stdout.
Note: This change permits use of testparm processing of smb.conf to be
redirected into a file that can be used as an smb.conf file. ie: All
information that should not be in smb.conf will be on stderr, all pertinent
smb.conf info will go to stdout.
Example of use:
A fully documented smb.conf.master file can be maintained.
To create smb.conf do:
testparm -s > smb.conf
Jelmer Vernooij [Sun, 19 Oct 2003 23:30:09 +0000 (23:30 +0000)]
Compile libsmbclient with DYNEXP
Jelmer Vernooij [Sun, 19 Oct 2003 22:44:32 +0000 (22:44 +0000)]
Compile libsmbclient with $(DYNEXP) (fixes bug #505)
John Terpstra [Sat, 18 Oct 2003 17:46:41 +0000 (17:46 +0000)]
Fix from Monyo.
Andrew Tridgell [Sat, 18 Oct 2003 08:52:16 +0000 (08:52 +0000)]
fixed spinlocks in tdb
I still wouldn't recommend them, but at least they now work
Jim McDonough [Sat, 18 Oct 2003 01:14:41 +0000 (01:14 +0000)]
Add epmapper commands to rpcclient
Jim McDonough [Sat, 18 Oct 2003 01:14:25 +0000 (01:14 +0000)]
Add epmapper client files to rpcclient build
Jim McDonough [Sat, 18 Oct 2003 01:13:01 +0000 (01:13 +0000)]
Add client side code to do endpoint map queries. Currently does one
fixed query. Updates to come soon.
Jim McDonough [Sat, 18 Oct 2003 01:07:37 +0000 (01:07 +0000)]
Fix tower length calculations and add some const
Jeremy Allison [Fri, 17 Oct 2003 21:19:17 +0000 (21:19 +0000)]
Typo broke win9x logins.
Jeremy.
Jeremy Allison [Fri, 17 Oct 2003 21:19:15 +0000 (21:19 +0000)]
Typo broke win9x logins.
Jeremy.
Jim McDonough [Fri, 17 Oct 2003 19:47:06 +0000 (19:47 +0000)]
uuid itself might not be aligned (as is the case in epm map requests), so
it needs to be aligned outside the smb_io_rpc_uuid() call if a specific
rpc or struct needs it that way.
Gerald Carter [Fri, 17 Oct 2003 16:27:26 +0000 (16:27 +0000)]
* fix some compile warnings in the gums code
* add server support for DsEnumerateDomainTrusts()
Jim McDonough [Fri, 17 Oct 2003 15:07:53 +0000 (15:07 +0000)]
Add endpoint mapper parse code
Jim McDonough [Fri, 17 Oct 2003 15:07:23 +0000 (15:07 +0000)]
Add epmapper pipe
Jim McDonough [Fri, 17 Oct 2003 15:03:46 +0000 (15:03 +0000)]
Add (un)marshalling code for endpoint mapper map operation
Jim McDonough [Fri, 17 Oct 2003 15:02:38 +0000 (15:02 +0000)]
Add endpoint mapper rpc definitions
Jelmer Vernooij [Fri, 17 Oct 2003 14:43:09 +0000 (14:43 +0000)]
CP* modules are not related to development
Tim Potter [Fri, 17 Oct 2003 04:59:07 +0000 (04:59 +0000)]
Add configure test for krb5_keytab_entry keyblock vs key member. Bug #636.
Richard Sharpe [Thu, 16 Oct 2003 22:03:34 +0000 (22:03 +0000)]
Remove DEBUG statement from wb_common.c as it should not be there.
Jeremy Allison [Thu, 16 Oct 2003 20:44:43 +0000 (20:44 +0000)]
Tidyup wrap checking.
Jeremy.
Jeremy Allison [Thu, 16 Oct 2003 20:44:41 +0000 (20:44 +0000)]
Tidyup wrap checking.
Jeremy.
Jeremy Allison [Thu, 16 Oct 2003 18:17:44 +0000 (18:17 +0000)]
Fix buggy data_len calculation in echo. Add paranoia debug message.
Jeremy.