CVS update: samba/source/passdb

abartlet at samba.org abartlet at samba.org
Sat Jun 15 22:38:12 EST 2002


Date:	Sat Jun 15 05:38:12 2002
Author:	abartlet

Update of /home/cvs/samba/source/passdb
In directory va:/tmp/cvs-serv19907/source/passdb

Modified Files:
	pdb_get_set.c 
Log Message:
Rework much of the service.c code:

The aim of this execise is to give the 'security>=user' code a straight paper
path.  Security=share will sill call authorise_login(), but otherwise we avoid
that mess.

This allow *much* more accurate error code reporting, beocuse we don't start
pretending that we can use the (nonexistant) password etc.

Also in this patch is code to create the 'homes' share at session setup time
(as we have done in the past - been broken recently) and to record this on
the user's vuser struct for later reference.  The changes here should also
allow for much better use of %H (some more changes to come here).

The service.c changes move a lot of code around, but are not as drastric
as they look...

(Also included is a fix to srv_srvsvc_nt.c where 'total_entries' not 
'*total_entries' was compared).

This code is needs testing, but passes my basic tests.

I expect we have lost some functionality, but the stuff I had expected
to loose was already broken before I started.  In particular, we don't 'fall 
back' to guest if the user cannot access a share (for security=user).  If you 
want this kind of stuff then you really want security=share anyway.

Andrew Bartlett


Revisions:
pdb_get_set.c		1.13 => 1.14
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_get_set.c?r1=1.13&r2=1.14




More information about the samba-cvs mailing list