Tim Potter [Mon, 7 May 2001 01:55:08 +0000 (01:55 +0000)]
Some reformatting (sorry Gerald).
Cleanup of exit paths.
Added query domain info and query display info.
Andrew Tridgell [Mon, 7 May 2001 01:51:56 +0000 (01:51 +0000)]
new mput code from idra that doesn't need a call to find
Tim Potter [Mon, 7 May 2001 01:48:03 +0000 (01:48 +0000)]
Fixed a compiler warning. Still more const warnings though. )-:
Tim Potter [Mon, 7 May 2001 01:08:41 +0000 (01:08 +0000)]
Fixed compiler warning.
Jeremy Allison [Sun, 6 May 2001 20:56:14 +0000 (20:56 +0000)]
Patch from David_Tiller@ccnotes.ccity.com finally applied now I've thought
about it to stop account lockouts with "security=server" mode. Sorry for
the delay David.
Jeremy.
Andrew Tridgell [Sun, 6 May 2001 15:19:25 +0000 (15:19 +0000)]
replace modf so we don't need the math library
Andrew Tridgell [Sun, 6 May 2001 14:09:10 +0000 (14:09 +0000)]
allow env variable TESTDIR for directory for fcntl_lock test
Andrew Tridgell [Sun, 6 May 2001 12:47:32 +0000 (12:47 +0000)]
add an alarm to fcntl test to stop tru64 from freezing on the test
Andrew Tridgell [Sun, 6 May 2001 02:05:00 +0000 (02:05 +0000)]
clearer tdb_mmap code
Andrew Tridgell [Sun, 6 May 2001 01:28:17 +0000 (01:28 +0000)]
merge from 2.2
Jeremy Allison [Fri, 4 May 2001 22:23:37 +0000 (22:23 +0000)]
Fix problem with OpenBSD mmap and write not being coherent.
Jeremy.
Jean-François Micouleau [Fri, 4 May 2001 15:44:27 +0000 (15:44 +0000)]
Big cleanup of passdb and backends.
I did some basic tests but I have probably broken something. Notably the
password changing. So don't cry ;-)
J.F.
Gerald Carter [Fri, 4 May 2001 14:28:28 +0000 (14:28 +0000)]
merge from 2.2 in password_ok() to ensure that we check the
return code from smb_pam_accountcheck()
Gerald Carter [Fri, 4 May 2001 14:01:54 +0000 (14:01 +0000)]
make proto
Gerald Carter [Fri, 4 May 2001 14:01:33 +0000 (14:01 +0000)]
fixes from Simo
Tim Potter [Fri, 4 May 2001 07:36:51 +0000 (07:36 +0000)]
make proto
Tim Potter [Fri, 4 May 2001 07:36:09 +0000 (07:36 +0000)]
Merge of struct acct_info from TNG.
Tim Potter [Fri, 4 May 2001 07:35:25 +0000 (07:35 +0000)]
Added queryaliasmem function.
Moved fetch_domain_sid() calls out of harms way so they didn't spam out
queries on SAMR pipe.
Tim Potter [Fri, 4 May 2001 07:34:16 +0000 (07:34 +0000)]
Tidyup of server vs servername, username vs user to remove compiler
warnings.
Tim Potter [Fri, 4 May 2001 07:33:10 +0000 (07:33 +0000)]
Renamed unknown field to access mask in open alias parsing functions.
Tim Potter [Fri, 4 May 2001 07:32:28 +0000 (07:32 +0000)]
Added some missing winbind parameters. Yes they're already documented.
(-:
Tim Potter [Fri, 4 May 2001 07:28:41 +0000 (07:28 +0000)]
Zero fnum when initialising a cli_state.
Tim Potter [Fri, 4 May 2001 07:27:52 +0000 (07:27 +0000)]
Added cli_samr_query_aliasmem() and cli_samr_open_alias() functions.
Tim Potter [Fri, 4 May 2001 07:26:46 +0000 (07:26 +0000)]
renamed unknown field to access mask in open alias structures.
Tim Potter [Fri, 4 May 2001 07:25:43 +0000 (07:25 +0000)]
Added a SMB_ASSERT() so that two cli_state structures aren't opened
on different pipes. This seriously confuses NT. Unfortunately HEAD
branch is limited to one rpc pipe per connection as the fnum is stored
inside the cli_state structure. It should really be broken out into
it's own structure so multiple pipes can be opened on one TCP/IP socket.
What a good idea! But look over here! I've already done it in another
workarea but it will require a day or two to refactor some of the internal
samba rpc client stuff (i.e netlogon requests) so it will remain uncommitted
for another while.
Tim Potter [Fri, 4 May 2001 04:17:39 +0000 (04:17 +0000)]
Added cmd_samr_enum_dom_groups() function.
Tim Potter [Fri, 4 May 2001 04:16:59 +0000 (04:16 +0000)]
Added cli_samr_enum_dom_groups() function.
Tim Potter [Fri, 4 May 2001 04:15:48 +0000 (04:15 +0000)]
More usability fixes.
Tim Potter [Fri, 4 May 2001 01:04:23 +0000 (01:04 +0000)]
Allow ctrl-d to exit rpcclient.
Don't try to run anything if user just presses return at rpcclient prompt.
Tim Potter [Fri, 4 May 2001 00:43:20 +0000 (00:43 +0000)]
Merge from TNG branch.
Jeremy Allison [Thu, 3 May 2001 19:47:30 +0000 (19:47 +0000)]
Fixed SHM_R/SHM_W warnings by moving sys/ipc.h and sys/shm.h into includes.h
and using autoconf tests.
Added "restrict acl with mask" parameter.
Jeremy.
Jeremy Allison [Thu, 3 May 2001 02:51:08 +0000 (02:51 +0000)]
Merging Gerald's "no printer driver" fix from 2.2.
Jeremy.
Jeremy Allison [Thu, 3 May 2001 02:50:11 +0000 (02:50 +0000)]
Merging Gerald's PDC SAM name fix.
Jeremy.
Jeremy Allison [Wed, 2 May 2001 23:32:09 +0000 (23:32 +0000)]
Had to add a "pam password change" parameter (defaults to "off") and inlined
the pam password change code to ensure that existing and working password
chat scripts don't break with 2.2.1. PAM password changing has to be explicitly
requested.
Allowed wildcards in pam password change matching (matches password chat
script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to
stop warnings. Don't worry - the const changes are isolated and don't
cause any other warnings :-).
Jeremy.
Jeremy Allison [Wed, 2 May 2001 20:32:17 +0000 (20:32 +0000)]
Fix noticed by John Trostel - we need to return our account SID for level 5.
Jeremy.
Jeremy Allison [Wed, 2 May 2001 08:14:00 +0000 (08:14 +0000)]
Remove embedded '/*' in comment.
Jeremy.
Andrew Tridgell [Wed, 2 May 2001 07:58:40 +0000 (07:58 +0000)]
use O_EXCL for fcntl_lock.c test in case some fool runs on /tmp
Andrew Tridgell [Wed, 2 May 2001 06:54:52 +0000 (06:54 +0000)]
added sys/wait.h to fcntl_lock test
Andrew Tridgell [Wed, 2 May 2001 06:52:25 +0000 (06:52 +0000)]
added error msgs to fcntl_lock test
Jeremy Allison [Tue, 1 May 2001 23:07:30 +0000 (23:07 +0000)]
Fixup smbcacls. Don't return memory already freed, don't free memory allocated
with talloc.
Jeremy.
Jeremy Allison [Tue, 1 May 2001 18:25:20 +0000 (18:25 +0000)]
Runtime check for broken PAM systems with no appdata_ptr support. This
should eventually be an autoconf test with a #ifdef workaround. I *HATE* pam :-).
Jeremy.
Jeremy Allison [Tue, 1 May 2001 18:19:15 +0000 (18:19 +0000)]
Stop coredump on pam password change with pam_pwdb.so module on error.
Jeremy.
Jeremy Allison [Tue, 1 May 2001 17:19:42 +0000 (17:19 +0000)]
Added Andrew Bartlett's fixes to my changes to his original patch (at the
court of king caractacus, was just passing by... :-).
Jeremy.
Andrew Tridgell [Tue, 1 May 2001 04:16:28 +0000 (04:16 +0000)]
added more complete C99 snprintf test
Andrew Tridgell [Tue, 1 May 2001 04:05:53 +0000 (04:05 +0000)]
fixed some uninitialised variables
Andrew Tridgell [Tue, 1 May 2001 04:02:15 +0000 (04:02 +0000)]
fixed comment-in-comment
Jeremy Allison [Tue, 1 May 2001 01:26:15 +0000 (01:26 +0000)]
Allow pam code to compile on Solaris (which doesn't have PAM_AUTHTOK_RECOVER_ERR).
Jeremy.
Jeremy Allison [Tue, 1 May 2001 01:01:19 +0000 (01:01 +0000)]
Added code from "Nigel Williams" <nigel@veritas.com> (yes, the same famous
Nigel Williams who did NIS/GINA !) to implement add/modify/delete shares
for Win2k. Needs testing as I made a few mods to the original code.
Jeremy.
Jeremy Allison [Mon, 30 Apr 2001 23:14:44 +0000 (23:14 +0000)]
Fixing consts in pam code.
Jeremy.
Jeremy Allison [Mon, 30 Apr 2001 22:56:52 +0000 (22:56 +0000)]
Fixed password entry caching bug pointed out by Elrond.
Jeremy.
Jeremy Allison [Mon, 30 Apr 2001 22:12:38 +0000 (22:12 +0000)]
Ensure correct password change script gets selected --with-pam.
Jeremy.
Jeremy Allison [Mon, 30 Apr 2001 21:05:58 +0000 (21:05 +0000)]
Based on an original PAM patch by Andrew Bartlett, re-written by me to
remove global static PAM variables, and to tidy up the PAM internals code.
Now looks like the rest of Samba.
Still needs testing.
Jeremy.
Andrew Tridgell [Sun, 29 Apr 2001 04:54:56 +0000 (04:54 +0000)]
make clean should remove PROGS
John Terpstra [Sat, 28 Apr 2001 21:34:43 +0000 (21:34 +0000)]
Adding developer mode option.
Andrew Tridgell [Sat, 28 Apr 2001 14:11:09 +0000 (14:11 +0000)]
fixed %u/%U example
Andrew Tridgell [Sat, 28 Apr 2001 14:01:02 +0000 (14:01 +0000)]
- fixed some compiler warnings
- fixed slprintf and vsprintf macros
Andrew Tridgell [Sat, 28 Apr 2001 13:52:50 +0000 (13:52 +0000)]
don't need slprintf.c any more
Andrew Tridgell [Sat, 28 Apr 2001 13:49:34 +0000 (13:49 +0000)]
- added test for vasprintf
- cleaned up GNUC printf attribute macros
- added enum handling in mkproto
- removed non-vararg code
- made slprintf and vslprintf just macros for snprintf and vsnprintf
- don't need slprintf code any more
Andrew Tridgell [Sat, 28 Apr 2001 12:43:15 +0000 (12:43 +0000)]
use asprintf for hideunreadable option
Andrew Tridgell [Sat, 28 Apr 2001 12:35:00 +0000 (12:35 +0000)]
added asprintf test
Andrew Tridgell [Sat, 28 Apr 2001 12:27:37 +0000 (12:27 +0000)]
got asprintf defn right
Gerald Carter [Sat, 28 Apr 2001 01:07:27 +0000 (01:07 +0000)]
few cleanups to bring in line with 2.2
Gerald Carter [Sat, 28 Apr 2001 00:35:05 +0000 (00:35 +0000)]
removing the references to rpc_client_proto.h
Gerald Carter [Sat, 28 Apr 2001 00:32:56 +0000 (00:32 +0000)]
rpcclient merge from 2.2 (including Jeremy's non-void return fix)
Jeremy Allison [Sat, 28 Apr 2001 00:05:11 +0000 (00:05 +0000)]
rpcclient/rpcclient.c: Non-void return in void function.
smbd/sec_ctx.c: Fixed potential memory leak spotted by
Kenichi Okuyama@Tokyo Research Lab, IBM-Japan, Co.
utils/nmblookup.c: gcc warning on Solaris fix.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 22:42:10 +0000 (22:42 +0000)]
More gcc compile on solaris tidyups.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 22:19:25 +0000 (22:19 +0000)]
Mismatched format and args.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 22:17:10 +0000 (22:17 +0000)]
More debug %d -> %u issues.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 22:02:23 +0000 (22:02 +0000)]
More %d (uid_t) stuff...
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 21:49:22 +0000 (21:49 +0000)]
More acl -> the_acl, %d with uid_t issues.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 21:20:20 +0000 (21:20 +0000)]
Don't use variables called "acl" as it's the name of a function in Solaris.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 21:14:18 +0000 (21:14 +0000)]
Tidy up args to DEBUG Statements - found by gcc on Solaris.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 19:56:15 +0000 (19:56 +0000)]
Fixes for problems in NFS server code from Michael Gerdts <Michael.Gerdts@usa.alcatel.com>.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 19:03:29 +0000 (19:03 +0000)]
Patch from Frédéric Blanc <el_blaf@yahoo.fr> to correctly uninstall
codepages.
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 18:03:12 +0000 (18:03 +0000)]
Fix from matthew.hart@veritas.com - bad error return from linux_oplock_receive_message().
Jeremy.
Jeremy Allison [Fri, 27 Apr 2001 17:32:46 +0000 (17:32 +0000)]
Added Herb's comment fix.
Jeremy.
Jean-François Micouleau [Fri, 27 Apr 2001 17:08:33 +0000 (17:08 +0000)]
fix a bug in printer name handling that jerry reported.
names can be \\server -> print server
\\server\printer -> printer
printer -> printer
J.F.
Andrew Tridgell [Fri, 27 Apr 2001 13:09:55 +0000 (13:09 +0000)]
C99 test for snprintf
Andrew Tridgell [Fri, 27 Apr 2001 02:45:08 +0000 (02:45 +0000)]
added much better snprintf code, plus new function asprintf
Andrew Tridgell [Fri, 27 Apr 2001 02:35:42 +0000 (02:35 +0000)]
added test for C99 compliant vsnprintf
Andrew Tridgell [Fri, 27 Apr 2001 02:11:47 +0000 (02:11 +0000)]
fixed typo
Jeremy Allison [Thu, 26 Apr 2001 18:36:38 +0000 (18:36 +0000)]
Fixed REPLACE_GETPASS test.
Jeremy.
Gerald Carter [Thu, 26 Apr 2001 13:25:46 +0000 (13:25 +0000)]
removed references to SMBRUN
Gerald Carter [Thu, 26 Apr 2001 02:24:45 +0000 (02:24 +0000)]
removed SMBRUN references
Jeremy Allison [Wed, 25 Apr 2001 23:25:58 +0000 (23:25 +0000)]
Sync with default perm changes in 2.2.
Jeremy.
Gerald Carter [Wed, 25 Apr 2001 22:12:13 +0000 (22:12 +0000)]
converted the passdb smbpasswd implementation to using talloc
for memory allocation. This fixes a long standing seg fault
(i knew i would get around to it one day :) )
Tested with NT4 and Win2k. Needs a little more testing with the
"create the machine account on the fly" code for NT4.
Simo, this is probably going to break the tdb passdb code.
Can you look at that when you get a chance and see what you think?
Jeremy Allison [Wed, 25 Apr 2001 19:03:57 +0000 (19:03 +0000)]
Re-ran autoheader; autoconf to fix pam_smb build.
Jeremy.
Jeremy Allison [Wed, 25 Apr 2001 18:39:31 +0000 (18:39 +0000)]
Fixed %U and %D substitutions. %U is lowercase user name, %D is uppercase
domain name.
Jeremy.
Andrew Tridgell [Wed, 25 Apr 2001 06:45:27 +0000 (06:45 +0000)]
added solaris wrapper from tng
Andrew Tridgell [Wed, 25 Apr 2001 05:47:50 +0000 (05:47 +0000)]
merge some of the nsswitch code from tng to head
the libnss_winbind.so from head now works with
the winbindd from tng
Andrew Tridgell [Wed, 25 Apr 2001 01:52:54 +0000 (01:52 +0000)]
merge from 2_2
Jeremy Allison [Wed, 25 Apr 2001 01:07:33 +0000 (01:07 +0000)]
More paranioa fixes against nmbd lengths.
Jeremy.
Jeremy Allison [Tue, 24 Apr 2001 23:51:57 +0000 (23:51 +0000)]
Fix bad length in dgram.
Jeremy.
John Terpstra [Tue, 24 Apr 2001 21:13:48 +0000 (21:13 +0000)]
Added Steve Langasek <vorlon@netexpress.net> pam_smbpass support
John Terpstra [Tue, 24 Apr 2001 20:00:12 +0000 (20:00 +0000)]
Added Steve Langasek <vorlon@netexpress.net> pam_smbpass PAM module code.
Note: Still have to add build stuff - not ready yet.
Gerald Carter [Tue, 24 Apr 2001 19:10:40 +0000 (19:10 +0000)]
syncing up with 2.2
Gerald Carter [Tue, 24 Apr 2001 19:09:42 +0000 (19:09 +0000)]
syncing up changes in 2.2
Herb Lewis [Tue, 24 Apr 2001 18:53:15 +0000 (18:53 +0000)]
fix typo
Jeremy Allison [Tue, 24 Apr 2001 18:01:40 +0000 (18:01 +0000)]
Patch for nmbd core dump in printing debug packets. No length check.
Jeremy.
Herb Lewis [Tue, 24 Apr 2001 16:44:28 +0000 (16:44 +0000)]
don't allow both add and delete user to be set at the same time