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 [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
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).
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.
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.
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.
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.
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.
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 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.
Tim Potter [Fri, 20 Jul 2001 01:35:00 +0000 (01:35 +0000)]
Changed the cli_lsa_lookup_sids() function to unpack the domain and user or
group using rpcstr_pull_unistr2_fstring rather than pull_ascii_fstring (!!)
Tim Potter [Fri, 20 Jul 2001 01:32:56 +0000 (01:32 +0000)]
It looks like the rpc client code in libsmb hasn't been converted to the
new internal string stuff. The main problem is that some unicode strings
are null terminated and some aren't. There's no rhyme or reason to it -
some pipes have 99% of the strings terminated and some have 99%
unterminated. To avoid having to actually know the termination policy, I
propose a set of functions that take a UNISTR2* and use the length
contained there.
Added rpcstr_pull_unistr2_string() function to convert a unicode string of
dubious termination to a fstring.