kai/samba.git
23 years agoSome reformatting (sorry Gerald).
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.

23 years agonew mput code from idra that doesn't need a call to find
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

23 years agoFixed a compiler warning. Still more const warnings though. )-:
Tim Potter [Mon, 7 May 2001 01:48:03 +0000 (01:48 +0000)]
Fixed a compiler warning.  Still more const warnings though.  )-:

23 years agoFixed compiler warning.
Tim Potter [Mon, 7 May 2001 01:08:41 +0000 (01:08 +0000)]
Fixed compiler warning.

23 years agoPatch from David_Tiller@ccnotes.ccity.com finally applied now I've thought
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.

23 years agoreplace modf so we don't need the math library
Andrew Tridgell [Sun, 6 May 2001 15:19:25 +0000 (15:19 +0000)]
replace modf so we don't need the math library

23 years agoallow env variable TESTDIR for directory for fcntl_lock test
Andrew Tridgell [Sun, 6 May 2001 14:09:10 +0000 (14:09 +0000)]
allow env variable TESTDIR for directory for fcntl_lock test

23 years agoadd an alarm to fcntl test to stop tru64 from freezing on the 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

23 years agoclearer tdb_mmap code
Andrew Tridgell [Sun, 6 May 2001 02:05:00 +0000 (02:05 +0000)]
clearer tdb_mmap code

23 years agomerge from 2.2
Andrew Tridgell [Sun, 6 May 2001 01:28:17 +0000 (01:28 +0000)]
merge from 2.2

23 years agoFix problem with OpenBSD mmap and write not being coherent.
Jeremy Allison [Fri, 4 May 2001 22:23:37 +0000 (22:23 +0000)]
Fix problem with OpenBSD mmap and write not being coherent.
Jeremy.

23 years agoBig cleanup of passdb and backends.
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.

23 years agomerge from 2.2 in password_ok() to ensure that we check the
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()

23 years agomake proto
Gerald Carter [Fri, 4 May 2001 14:01:54 +0000 (14:01 +0000)]
make proto

23 years agofixes from Simo
Gerald Carter [Fri, 4 May 2001 14:01:33 +0000 (14:01 +0000)]
fixes from Simo

23 years agomake proto
Tim Potter [Fri, 4 May 2001 07:36:51 +0000 (07:36 +0000)]
make proto

23 years agoMerge of struct acct_info from TNG.
Tim Potter [Fri, 4 May 2001 07:36:09 +0000 (07:36 +0000)]
Merge of struct acct_info from TNG.

23 years agoAdded queryaliasmem function.
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.

23 years agoTidyup of server vs servername, username vs user to remove compiler
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.

23 years agoRenamed unknown field to access mask in open alias parsing functions.
Tim Potter [Fri, 4 May 2001 07:33:10 +0000 (07:33 +0000)]
Renamed unknown field to access mask in open alias parsing functions.

23 years agoAdded some missing winbind parameters. Yes they're already documented.
Tim Potter [Fri, 4 May 2001 07:32:28 +0000 (07:32 +0000)]
Added some missing winbind parameters.  Yes they're already documented.
(-:

23 years agoZero fnum when initialising a cli_state.
Tim Potter [Fri, 4 May 2001 07:28:41 +0000 (07:28 +0000)]
Zero fnum when initialising a cli_state.

23 years agoAdded cli_samr_query_aliasmem() and cli_samr_open_alias() functions.
Tim Potter [Fri, 4 May 2001 07:27:52 +0000 (07:27 +0000)]
Added cli_samr_query_aliasmem() and cli_samr_open_alias() functions.

23 years agorenamed unknown field to access mask in open alias structures.
Tim Potter [Fri, 4 May 2001 07:26:46 +0000 (07:26 +0000)]
renamed unknown field to access mask in open alias structures.

23 years agoAdded a SMB_ASSERT() so that two cli_state structures aren't opened
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.

23 years agoAdded cmd_samr_enum_dom_groups() function.
Tim Potter [Fri, 4 May 2001 04:17:39 +0000 (04:17 +0000)]
Added cmd_samr_enum_dom_groups() function.

23 years agoAdded cli_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.

23 years agoMore usability fixes.
Tim Potter [Fri, 4 May 2001 04:15:48 +0000 (04:15 +0000)]
More usability fixes.

23 years agoAllow ctrl-d to exit rpcclient.
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.

23 years agoMerge from TNG branch.
Tim Potter [Fri, 4 May 2001 00:43:20 +0000 (00:43 +0000)]
Merge from TNG branch.

23 years agoFixed SHM_R/SHM_W warnings by moving sys/ipc.h and sys/shm.h into includes.h
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.

23 years agoMerging Gerald's "no printer driver" fix from 2.2.
Jeremy Allison [Thu, 3 May 2001 02:51:08 +0000 (02:51 +0000)]
Merging Gerald's "no printer driver" fix from 2.2.
Jeremy.

23 years agoMerging Gerald's PDC SAM name fix.
Jeremy Allison [Thu, 3 May 2001 02:50:11 +0000 (02:50 +0000)]
Merging Gerald's PDC SAM name fix.
Jeremy.

23 years agoHad to add a "pam password change" parameter (defaults to "off") and inlined
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.

23 years agoFix noticed by John Trostel - we need to return our account SID for level 5.
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.

23 years agoRemove embedded '/*' in comment.
Jeremy Allison [Wed, 2 May 2001 08:14:00 +0000 (08:14 +0000)]
Remove embedded '/*' in comment.
Jeremy.

23 years agouse O_EXCL for fcntl_lock.c test in case some fool runs on /tmp
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

23 years agoadded sys/wait.h to fcntl_lock test
Andrew Tridgell [Wed, 2 May 2001 06:54:52 +0000 (06:54 +0000)]
added sys/wait.h to fcntl_lock test

23 years agoadded error msgs to fcntl_lock test
Andrew Tridgell [Wed, 2 May 2001 06:52:25 +0000 (06:52 +0000)]
added error msgs to fcntl_lock test

23 years agoFixup smbcacls. Don't return memory already freed, don't free memory allocated
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.

23 years agoRuntime check for broken PAM systems with no appdata_ptr support. This
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.

23 years agoStop coredump on pam password change with pam_pwdb.so module on error.
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.

23 years agoAdded Andrew Bartlett's fixes to my changes to his original patch (at the
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.

23 years agoadded more complete C99 snprintf test
Andrew Tridgell [Tue, 1 May 2001 04:16:28 +0000 (04:16 +0000)]
added more complete C99 snprintf test

23 years agofixed some uninitialised variables
Andrew Tridgell [Tue, 1 May 2001 04:05:53 +0000 (04:05 +0000)]
fixed some uninitialised variables

23 years agofixed comment-in-comment
Andrew Tridgell [Tue, 1 May 2001 04:02:15 +0000 (04:02 +0000)]
fixed comment-in-comment

23 years agoAllow pam code to compile on Solaris (which doesn't have PAM_AUTHTOK_RECOVER_ERR).
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.

23 years agoAdded code from "Nigel Williams" <nigel@veritas.com> (yes, the same famous
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.

23 years agoFixing consts in pam code.
Jeremy Allison [Mon, 30 Apr 2001 23:14:44 +0000 (23:14 +0000)]
Fixing consts in pam code.
Jeremy.

23 years agoFixed password entry caching bug pointed out by Elrond.
Jeremy Allison [Mon, 30 Apr 2001 22:56:52 +0000 (22:56 +0000)]
Fixed password entry caching bug pointed out by Elrond.
Jeremy.

23 years agoEnsure correct password change script gets selected --with-pam.
Jeremy Allison [Mon, 30 Apr 2001 22:12:38 +0000 (22:12 +0000)]
Ensure correct password change script gets selected --with-pam.
Jeremy.

23 years agoBased on an original PAM patch by Andrew Bartlett, re-written by me to
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.

23 years agomake clean should remove PROGS
Andrew Tridgell [Sun, 29 Apr 2001 04:54:56 +0000 (04:54 +0000)]
make clean should remove PROGS

23 years agoAdding developer mode option.
John Terpstra [Sat, 28 Apr 2001 21:34:43 +0000 (21:34 +0000)]
Adding developer mode option.

23 years agofixed %u/%U example
Andrew Tridgell [Sat, 28 Apr 2001 14:11:09 +0000 (14:11 +0000)]
fixed %u/%U example

23 years ago- fixed some compiler warnings
Andrew Tridgell [Sat, 28 Apr 2001 14:01:02 +0000 (14:01 +0000)]
- fixed some compiler warnings
- fixed slprintf and vsprintf macros

23 years agodon't need slprintf.c any more
Andrew Tridgell [Sat, 28 Apr 2001 13:52:50 +0000 (13:52 +0000)]
don't need slprintf.c any more

23 years ago- added test for vasprintf
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

23 years agouse asprintf for hideunreadable option
Andrew Tridgell [Sat, 28 Apr 2001 12:43:15 +0000 (12:43 +0000)]
use asprintf for hideunreadable option

23 years agoadded asprintf test
Andrew Tridgell [Sat, 28 Apr 2001 12:35:00 +0000 (12:35 +0000)]
added asprintf test

23 years agogot asprintf defn right
Andrew Tridgell [Sat, 28 Apr 2001 12:27:37 +0000 (12:27 +0000)]
got asprintf defn right

23 years agofew cleanups to bring in line with 2.2
Gerald Carter [Sat, 28 Apr 2001 01:07:27 +0000 (01:07 +0000)]
few cleanups to bring in line with 2.2

23 years agoremoving the references to rpc_client_proto.h
Gerald Carter [Sat, 28 Apr 2001 00:35:05 +0000 (00:35 +0000)]
removing the references to rpc_client_proto.h

23 years agorpcclient merge from 2.2 (including Jeremy's non-void return fix)
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)

23 years agorpcclient/rpcclient.c: Non-void return in void function.
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.

23 years agoMore gcc compile on solaris tidyups.
Jeremy Allison [Fri, 27 Apr 2001 22:42:10 +0000 (22:42 +0000)]
More gcc compile on solaris tidyups.
Jeremy.

23 years agoMismatched format and args.
Jeremy Allison [Fri, 27 Apr 2001 22:19:25 +0000 (22:19 +0000)]
Mismatched format and args.
Jeremy.

23 years agoMore debug %d -> %u issues.
Jeremy Allison [Fri, 27 Apr 2001 22:17:10 +0000 (22:17 +0000)]
More debug %d -> %u issues.
Jeremy.

23 years agoMore %d (uid_t) stuff...
Jeremy Allison [Fri, 27 Apr 2001 22:02:23 +0000 (22:02 +0000)]
More %d (uid_t) stuff...
Jeremy.

23 years agoMore acl -> the_acl, %d with uid_t issues.
Jeremy Allison [Fri, 27 Apr 2001 21:49:22 +0000 (21:49 +0000)]
More acl -> the_acl, %d with uid_t issues.
Jeremy.

23 years agoDon't use variables called "acl" as it's the name of a function in Solaris.
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.

23 years agoTidy up args to DEBUG Statements - found by gcc on Solaris.
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.

23 years agoFixes for problems in NFS server code from Michael Gerdts <Michael.Gerdts@usa.alcatel...
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.

23 years agoPatch from Frédéric Blanc <el_blaf@yahoo.fr> to correctly uninstall
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.

23 years agoFix from matthew.hart@veritas.com - bad error return from linux_oplock_receive_message().
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.

23 years agoAdded Herb's comment fix.
Jeremy Allison [Fri, 27 Apr 2001 17:32:46 +0000 (17:32 +0000)]
Added Herb's comment fix.
Jeremy.

23 years agofix a bug in printer name handling that jerry reported.
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.

23 years agoC99 test for snprintf
Andrew Tridgell [Fri, 27 Apr 2001 13:09:55 +0000 (13:09 +0000)]
C99 test for snprintf

23 years agoadded much better snprintf code, plus new function asprintf
Andrew Tridgell [Fri, 27 Apr 2001 02:45:08 +0000 (02:45 +0000)]
added much better snprintf code, plus new function asprintf

23 years agoadded test for C99 compliant vsnprintf
Andrew Tridgell [Fri, 27 Apr 2001 02:35:42 +0000 (02:35 +0000)]
added test for C99 compliant vsnprintf

23 years agofixed typo
Andrew Tridgell [Fri, 27 Apr 2001 02:11:47 +0000 (02:11 +0000)]
fixed typo

23 years agoFixed REPLACE_GETPASS test.
Jeremy Allison [Thu, 26 Apr 2001 18:36:38 +0000 (18:36 +0000)]
Fixed REPLACE_GETPASS test.
Jeremy.

23 years agoremoved references to SMBRUN
Gerald Carter [Thu, 26 Apr 2001 13:25:46 +0000 (13:25 +0000)]
removed references to SMBRUN

23 years agoremoved SMBRUN references
Gerald Carter [Thu, 26 Apr 2001 02:24:45 +0000 (02:24 +0000)]
removed SMBRUN references

23 years agoSync with default perm changes in 2.2.
Jeremy Allison [Wed, 25 Apr 2001 23:25:58 +0000 (23:25 +0000)]
Sync with default perm changes in 2.2.
Jeremy.

23 years agoconverted the passdb smbpasswd implementation to using talloc
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?

23 years agoRe-ran autoheader; autoconf to fix pam_smb build.
Jeremy Allison [Wed, 25 Apr 2001 19:03:57 +0000 (19:03 +0000)]
Re-ran autoheader; autoconf to fix pam_smb build.
Jeremy.

23 years agoFixed %U and %D substitutions. %U is lowercase user name, %D is uppercase
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.

23 years agoadded solaris wrapper from tng
Andrew Tridgell [Wed, 25 Apr 2001 06:45:27 +0000 (06:45 +0000)]
added solaris wrapper from tng

23 years agomerge some of the nsswitch code from tng to head
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

23 years agomerge from 2_2
Andrew Tridgell [Wed, 25 Apr 2001 01:52:54 +0000 (01:52 +0000)]
merge from 2_2

23 years agoMore paranioa fixes against nmbd lengths.
Jeremy Allison [Wed, 25 Apr 2001 01:07:33 +0000 (01:07 +0000)]
More paranioa fixes against nmbd lengths.
Jeremy.

23 years agoFix bad length in dgram.
Jeremy Allison [Tue, 24 Apr 2001 23:51:57 +0000 (23:51 +0000)]
Fix bad length in dgram.
Jeremy.

23 years agoAdded Steve Langasek <vorlon@netexpress.net> pam_smbpass support
John Terpstra [Tue, 24 Apr 2001 21:13:48 +0000 (21:13 +0000)]
Added Steve Langasek <vorlon@netexpress.net> pam_smbpass support

23 years agoAdded Steve Langasek <vorlon@netexpress.net> pam_smbpass PAM module code.
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.

23 years agosyncing up with 2.2
Gerald Carter [Tue, 24 Apr 2001 19:10:40 +0000 (19:10 +0000)]
syncing up with 2.2

23 years agosyncing up changes in 2.2
Gerald Carter [Tue, 24 Apr 2001 19:09:42 +0000 (19:09 +0000)]
syncing up changes in 2.2

23 years agofix typo
Herb Lewis [Tue, 24 Apr 2001 18:53:15 +0000 (18:53 +0000)]
fix typo

23 years agoPatch for nmbd core dump in printing debug packets. No length check.
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.

23 years agodon't allow both add and delete user to be set at the same time
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