Gerald Carter [Thu, 9 Aug 2001 15:53:49 +0000 (15:53 +0000)]
a few cleanups while mergeing the passdb code into 2.2
Andrew Bartlett [Thu, 9 Aug 2001 12:52:05 +0000 (12:52 +0000)]
Try to set the socket options early for some OSs (like Sol 8) where they
can't be set after the listen().
Andrew Bartlett
Tim Potter [Thu, 9 Aug 2001 03:41:18 +0000 (03:41 +0000)]
Link fix for smbpasswd.
Simo Sorce [Wed, 8 Aug 2001 16:54:16 +0000 (16:54 +0000)]
Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.
thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
Andrew Bartlett [Wed, 8 Aug 2001 03:25:47 +0000 (03:25 +0000)]
Some better debugs for our security=server code. I want to track down why
we occasionally don't make the connection to the server.
Tim Potter [Wed, 8 Aug 2001 03:21:43 +0000 (03:21 +0000)]
Merge of modesty patch from 2.2 spec file.
Tim Potter [Wed, 8 Aug 2001 03:18:49 +0000 (03:18 +0000)]
Factored out common rpc pipe initialisation and shutdown code.
Tim Potter [Tue, 7 Aug 2001 23:21:45 +0000 (23:21 +0000)]
Patch for having spaces in tdb keys, NULL termination fixes and other
stuff. From Andrew Esh <AEsh@tricord.com>
Jeremy Allison [Tue, 7 Aug 2001 19:48:54 +0000 (19:48 +0000)]
Update to work with no crypt available, just like it will in Samba.
Jermey.
Gerald Carter [Tue, 7 Aug 2001 19:34:38 +0000 (19:34 +0000)]
merge from 2.2
Jeremy Allison [Tue, 7 Aug 2001 19:18:27 +0000 (19:18 +0000)]
Always return NT_STATUS_DISK_FULL, even for quota errors.
Jeremy.
Jeremy Allison [Tue, 7 Aug 2001 01:19:32 +0000 (01:19 +0000)]
Added fixes to return correct error codes on space allocation fail.
Jeremy.
Jeremy Allison [Tue, 7 Aug 2001 00:36:10 +0000 (00:36 +0000)]
Correctly report amount written in debug when allocation space.
Jeremy.
Tim Potter [Tue, 7 Aug 2001 00:01:41 +0000 (00:01 +0000)]
A collection of fixes/cleanups to the security descriptor code by
matt_zinkevicius@hp.com
Tim Potter [Mon, 6 Aug 2001 23:29:25 +0000 (23:29 +0000)]
Fixed another possible memleak in cli_initialise()
Jeremy Allison [Mon, 6 Aug 2001 22:39:51 +0000 (22:39 +0000)]
Added Gerald's lanman printing only change to HEAD.
Jeremy.
Jeremy Allison [Mon, 6 Aug 2001 19:21:23 +0000 (19:21 +0000)]
Fix for getting allocate_file_space to return the correct errno.
Jeremy.
Andrew Bartlett [Mon, 6 Aug 2001 09:35:08 +0000 (09:35 +0000)]
Record the NT_STATUS constant rather than its number in the logfiles
Fix typo in lmhosts manpage
Richard Sharpe [Mon, 6 Aug 2001 08:52:39 +0000 (08:52 +0000)]
Stop HP/UX building shared libraries for the moment ...
Tim Potter [Mon, 6 Aug 2001 02:35:14 +0000 (02:35 +0000)]
We don't use indent in the HEAD branch.
Tim Potter [Mon, 6 Aug 2001 02:18:40 +0000 (02:18 +0000)]
Cleaned up error handling in cli_initialise() to fix a memleak found by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
Tim Potter [Mon, 6 Aug 2001 02:13:23 +0000 (02:13 +0000)]
Changed lone malloc() call to talloc(). Spotted by
Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
Tim Potter [Mon, 6 Aug 2001 02:10:59 +0000 (02:10 +0000)]
Added smbtree to list of ignored files.
Simo Sorce [Sun, 5 Aug 2001 16:05:40 +0000 (16:05 +0000)]
me stupid.
never commit without building.
sorry.
Tim Potter [Sun, 5 Aug 2001 11:19:34 +0000 (11:19 +0000)]
Another winbind test - fill in later.
Simo Sorce [Sun, 5 Aug 2001 10:10:16 +0000 (10:10 +0000)]
Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder
Volker Lendecke [Sat, 4 Aug 2001 18:17:30 +0000 (18:17 +0000)]
Print an error message if database could not be opened.
Volker
Jeremy Allison [Sat, 4 Aug 2001 00:24:54 +0000 (00:24 +0000)]
Extra debug to see what errno is on write fail.
Jeremy.
Jeremy Allison [Fri, 3 Aug 2001 19:32:33 +0000 (19:32 +0000)]
The write zero bytes is an allocate, not set EOF.
Jeremy.
Jeremy Allison [Fri, 3 Aug 2001 17:28:18 +0000 (17:28 +0000)]
Added include guards...
We may need to rename this file smbauth.h, as auth.h
is so generic it will probably conflict with system header
files on some systems.
Jeremy.
Andrew Bartlett [Fri, 3 Aug 2001 13:24:38 +0000 (13:24 +0000)]
This is the fix for the PAM bug I probably introduced in the previous commit,
which I will confirm once I can find a box it would break on in the first place.
(this is the pam accounts as nobody thing we had with 2.2.0)
Andrew Bartlett
Andrew Bartlett [Fri, 3 Aug 2001 13:09:23 +0000 (13:09 +0000)]
This is my 'Authentication Rewrite' version 1.01, mostly as submitted to
samba-technical a few weeks ago.
The idea here is to standardize the checking of user names and passwords,
thereby ensuring that all authtentications pass the same standards. The
interface currently implemented in as
nt_status = check_password(user_info, server_info)
where user_info contains (mostly) the authentication data, and server_info
contains things like the user-id they got, and their resolved user name.
The current ugliness with the way the structures are created will be killed
the next revision, when they will be created and malloced by creator functions.
This patch also includes the first implementation of NTLMv2 in HEAD, but which
needs some more testing. We also add a hack to allow plaintext passwords to be
compared with smbpasswd, not the system password database.
Finally, this patch probably reintroduces the PAM accounts bug we had in
2.2.0, I'll fix that once this hits the tree. (I've just finished testing
it on a wide variety of platforms, so I want to get this patch in).
Tim Potter [Fri, 3 Aug 2001 03:43:24 +0000 (03:43 +0000)]
Fix for smbpasswd set_userinfo24 was in the wrong place!
Jeremy Allison [Thu, 2 Aug 2001 23:48:51 +0000 (23:48 +0000)]
Allow smbpasswd to join a W2K hosted AD domain.
Jeremy.
Jeremy Allison [Thu, 2 Aug 2001 20:52:57 +0000 (20:52 +0000)]
Put HPUX on mmap blacklist.
Jeremy.
Jeremy Allison [Thu, 2 Aug 2001 20:17:40 +0000 (20:17 +0000)]
Added mmap fix to pass lock test from HP.
Ok - now we're no longer trying to reach a silly 1k loc target,
change the formatting to be *readable* - eg.
change if (x) y else z to be :
if (x)
y
else
z
and other compact sillyness. Oh look - when I did this I found
some areas where we *WEREN'T CHECKING SYSTEM CALL ERROR RETURNS !!!!*
CompSci 101 guys....... :-).
Jeremy.
Gerald Carter [Thu, 2 Aug 2001 14:33:32 +0000 (14:33 +0000)]
changed --with-profile to --with-profiling-data to "stop the madness!"
of people somehow thinking this was related to user profiles.
Hope this is ok Herb.
jerry
Jeremy Allison [Wed, 1 Aug 2001 22:13:50 +0000 (22:13 +0000)]
Added "strict allocate" per share parameter. This causes actual on-disk allocation
to be done. Without it just does the ftruncate.
Jeremy.
Jeremy Allison [Wed, 1 Aug 2001 17:43:57 +0000 (17:43 +0000)]
Oops. Typo.
Jeremy.
Jeremy Allison [Wed, 1 Aug 2001 17:32:45 +0000 (17:32 +0000)]
Pidfile check can be read-only. Removed old ifdef in password.c
Jeremy.
Tim Potter [Wed, 1 Aug 2001 06:03:54 +0000 (06:03 +0000)]
Modifying spec files is PITA.
- Install winbind daemon, client programs, nss and pam libraries
- Removed codepage stuff so spec file works with current HEAD branch
Tim Potter [Wed, 1 Aug 2001 05:55:01 +0000 (05:55 +0000)]
Tweaked the installdirs target to ignore errors. This allows RPMS to be
built as non-root user, assuming you have permissions set up properly
in your /usr/src/redhat directory.
Added nsswitch sub-target to all target.
Tim Potter [Wed, 1 Aug 2001 03:19:58 +0000 (03:19 +0000)]
Reran autoconf.
Tim Potter [Wed, 1 Aug 2001 02:39:13 +0000 (02:39 +0000)]
Added autogenerated spec files for various rpm versions.
Tim Potter [Wed, 1 Aug 2001 02:30:33 +0000 (02:30 +0000)]
Rewrite of winbind autoconf fragment.
- can now use --with-winbind to force compilation on systems that are
not linux or solaris (-:
- don't compile winbind if the unix domain socket test fails
- compile right number of bits if --with-pam used
Tim Potter [Wed, 1 Aug 2001 02:12:36 +0000 (02:12 +0000)]
Fixed up compilation of pam_winbind.so to be consistent with value of
--with-pam passed to configure.
Fixed nsswitch target to compile the sbin and lib winbind targets.
Winbind still doesn't install its lib targets (libnss_winbind.so and
pam_winbind.so) properly - the install script is a big mess. )-:
Tim Potter [Wed, 1 Aug 2001 01:20:10 +0000 (01:20 +0000)]
Added some command line argument checking and usage info.
Tim Potter [Wed, 1 Aug 2001 01:00:53 +0000 (01:00 +0000)]
Added and populated .cvsignore files for packaging subdirectories.
Jeremy Allison [Tue, 31 Jul 2001 00:03:24 +0000 (00:03 +0000)]
Fix for rare tdb pattern store failure. Found & fixed by Rusty.
Jeremy.
Jeremy Allison [Mon, 30 Jul 2001 23:12:48 +0000 (23:12 +0000)]
Fixup error returns in updating driver db version.
Jeremy.
Jeremy Allison [Mon, 30 Jul 2001 22:21:31 +0000 (22:21 +0000)]
Added "use mmap" for HPUX.
Jeremy.
Jeremy Allison [Mon, 30 Jul 2001 20:25:35 +0000 (20:25 +0000)]
Throw out crappy (non-ascii unaware) mbtows stuff and use proper unicode
push calls. If this breaks authentication then good, it needed fixing anyway :-).
Jeremy.
Jeremy Allison [Mon, 30 Jul 2001 17:53:39 +0000 (17:53 +0000)]
uint -> uint32.
Jeremy.
Jeremy Allison [Mon, 30 Jul 2001 17:52:26 +0000 (17:52 +0000)]
Fixes for varargs problems with std c.
Fix from Rick Lake <rwlake@anp.nl> for QNX.
Jeremy.
Tim Potter [Mon, 30 Jul 2001 06:19:54 +0000 (06:19 +0000)]
Ignore some of the autoconf files.
Jeremy Allison [Sat, 28 Jul 2001 01:46:47 +0000 (01:46 +0000)]
Fix invalid uid being used after logoff. Thanks to Nigel Williams
for this bug report.
Jeremy.
Jeremy Allison [Sat, 28 Jul 2001 01:26:44 +0000 (01:26 +0000)]
Fix for potential crash bug with bad fid.
Jeremy.
Tim Potter [Fri, 27 Jul 2001 22:54:50 +0000 (22:54 +0000)]
Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
Simo Sorce [Thu, 26 Jul 2001 22:05:51 +0000 (22:05 +0000)]
better debug messages + fix typo in debug message
Jeremy Allison [Thu, 26 Jul 2001 21:16:39 +0000 (21:16 +0000)]
Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.
Digital UNIX).
Jeremy.
Jeremy Allison [Wed, 25 Jul 2001 18:59:56 +0000 (18:59 +0000)]
Always check fstat for error.
Jeremy.
Jeremy Allison [Wed, 25 Jul 2001 18:07:36 +0000 (18:07 +0000)]
Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
problem with wrong token being used in current_user.
Jeremy.
Andrew Tridgell [Wed, 25 Jul 2001 13:25:31 +0000 (13:25 +0000)]
we need to pull passwords in client charset for crypto to work
Andrew Tridgell [Wed, 25 Jul 2001 13:19:14 +0000 (13:19 +0000)]
need to push smb_search strings in client charset
Tim Potter [Wed, 25 Jul 2001 06:42:05 +0000 (06:42 +0000)]
Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.
According to the incorruptible judges find and grep, the latter won.
Mmm - procrastination. (-:
Andrew Tridgell [Wed, 25 Jul 2001 06:29:26 +0000 (06:29 +0000)]
- don't try to print pointers
- removed some unused mangling code
Tim Potter [Wed, 25 Jul 2001 06:21:07 +0000 (06:21 +0000)]
Re-ran autoconf.
Tim Potter [Wed, 25 Jul 2001 06:16:27 +0000 (06:16 +0000)]
Merge ... change machine account password race fix from appliance branch.
Andrew Tridgell [Wed, 25 Jul 2001 04:10:23 +0000 (04:10 +0000)]
got rid of INFO: msgs at debug level 1
Andrew Tridgell [Wed, 25 Jul 2001 04:09:44 +0000 (04:09 +0000)]
nicer smbtree output
Andrew Tridgell [Wed, 25 Jul 2001 04:00:40 +0000 (04:00 +0000)]
ucs2 is always a multiple of 2 bytes
this gets rid of a bunch of iconv warnings
Andrew Tridgell [Wed, 25 Jul 2001 03:28:45 +0000 (03:28 +0000)]
a better test for unix domain sockets
Andrew Tridgell [Wed, 25 Jul 2001 03:05:00 +0000 (03:05 +0000)]
added a --with-libiconv=BASEDIR/ option to allow easier use of an
alternative iconv library
Andrew Tridgell [Wed, 25 Jul 2001 01:41:45 +0000 (01:41 +0000)]
build smbtree by default. It's a very useful utility.
Tim Potter [Tue, 24 Jul 2001 23:30:13 +0000 (23:30 +0000)]
Store winbindd in the sbin directory. Make the winbind pam module also as
a sbin program.
Currently the pam and nss modules are installed into @prefix@/sbin - I'm
not sure whether this is a good idea or not. Perhaps they should be left
in the build tree and copied across as needed by hand or a packaging tool.
Simo Sorce [Tue, 24 Jul 2001 20:02:48 +0000 (20:02 +0000)]
Convert other parameters (read list, write list, valid users...) to the P_LIST format.
changed functions to use list instead of strings
addedd lp_list_substitute function
Richard Sharpe [Tue, 24 Jul 2001 12:17:00 +0000 (12:17 +0000)]
Make sure that a shared library build of libsmbclient causes build
breakage if there are problems. I will take this out tomorrow if it
causes too many problems.
Tim Potter [Tue, 24 Jul 2001 06:54:58 +0000 (06:54 +0000)]
make nsswitch target wasn't building the winbind pam module.
Richard Sharpe [Tue, 24 Jul 2001 01:44:22 +0000 (01:44 +0000)]
Commit an updated configure, but the build_farm should run autoconf!
Jeremy Allison [Tue, 24 Jul 2001 01:18:43 +0000 (01:18 +0000)]
We were making an assumption in the oplock
break code path that was invalid (ie. we were assuming
we could infer a non-levelII oplock when such an oplock
was detected - this may no longer be valid once we've
processed the break process dealing with the break will
change the state of it anyway.
This prevents the state where we get the following packet
trace :
client server
NTcreate ->
<- NTcreate resp
NTcreate ->
<- break to level II
ok - broken ->
<- break to none
Thanks to Alan Romeril for providing the trace that allowed
me to track this down.
Jeremy.
Richard Sharpe [Tue, 24 Jul 2001 00:34:45 +0000 (00:34 +0000)]
Another fine mess, err, fine tune to the Slowaris build ...
Richard Sharpe [Tue, 24 Jul 2001 00:18:20 +0000 (00:18 +0000)]
Make the Slowaris build a bit nicer with cc
Jeremy Allison [Mon, 23 Jul 2001 22:06:05 +0000 (22:06 +0000)]
Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory.
Jeremy.
Jeremy Allison [Mon, 23 Jul 2001 20:47:55 +0000 (20:47 +0000)]
Same fix for resume as for pause.
Jeremy.i
Jeremy Allison [Mon, 23 Jul 2001 20:40:16 +0000 (20:40 +0000)]
Fix for CUPS pause/restart code.
Jeremy.
Jeremy Allison [Mon, 23 Jul 2001 19:50:36 +0000 (19:50 +0000)]
Fix for cups compile.
Jeremy.
Richard Sharpe [Mon, 23 Jul 2001 14:13:19 +0000 (14:13 +0000)]
Fix some fscked up things that I added to the Solaris CC build of shared libs
Richard Sharpe [Mon, 23 Jul 2001 12:22:08 +0000 (12:22 +0000)]
One more possible fix for Solaris CC and GCC
Richard Sharpe [Mon, 23 Jul 2001 11:22:29 +0000 (11:22 +0000)]
Fix the POOBAD_CC on Slowaris so we can handle things correctly ...
Lets see how this goes.
Richard Sharpe [Mon, 23 Jul 2001 07:22:11 +0000 (07:22 +0000)]
Try and build shared on SCO. Assume that it is like others, but uses
-KPIC, which it does!
Tim Potter [Mon, 23 Jul 2001 07:21:52 +0000 (07:21 +0000)]
In wb_samr_query_dispinfo() pass back the 32-bit status code from
cli_samr_query_dispinfo().
Tim Potter [Mon, 23 Jul 2001 07:20:46 +0000 (07:20 +0000)]
cli_samr_query_dispinfo() can return STATUS_MORE_ENTRIES which isn't an
entry.
Richard Sharpe [Mon, 23 Jul 2001 07:18:03 +0000 (07:18 +0000)]
OK, I think I have fscking IRIX figured out for building PIC code.
You have to check which fsking compiler is used and do different things!
Tim Potter [Mon, 23 Jul 2001 03:06:40 +0000 (03:06 +0000)]
Call cli_samr_lookup_rids() in bunches of < 1000 rids to avoid crashing
NT. Note this can be done completely anonymously.
Tim Potter [Mon, 23 Jul 2001 03:05:01 +0000 (03:05 +0000)]
Added a warning debug if cli_samr_lookup_rids is called with more than 1000
rids as this seems to crash LSASS.EXE more often than not.
Andrew Tridgell [Sun, 22 Jul 2001 10:50:21 +0000 (10:50 +0000)]
if EILSEQ doesn't exist then use EIO. It doesn't really matter what
error code we use, as long as its not another one that iconv() can
give.
Andrew Tridgell [Sun, 22 Jul 2001 07:38:32 +0000 (07:38 +0000)]
changed the iconv interface to go via ucs2 for all conversions. This
fixes some problems wih some character sets and allows for using
internal charsets in conjunction with ionv charsets
this makes us slower but more correct. speed will come later.
Andrew Tridgell [Sun, 22 Jul 2001 00:27:30 +0000 (00:27 +0000)]
switch from UCS2 to UCS-2LE
Andrew Bartlett [Sat, 21 Jul 2001 02:23:19 +0000 (02:23 +0000)]
This patch fixes up a few issues where we would do lookups in the local system
on username we already know are perfectly valid, and in their final form. In
particular we don't want to do a lookup for DOMAIN\nobody, it just does not
make sense, nor should we do map_username and the like if the username is as
specified in the vuid - we have done it already.
Andrew Bartlett
Andrew Bartlett [Fri, 20 Jul 2001 10:06:35 +0000 (10:06 +0000)]
This should fix the build, I think tpot just missed the file for his CVS
commit. It seems to work fine, but if its not the right fix then just yell.
Andrew Bartlett