CVS update: samba/source/passdb

abartlet at samba.org abartlet at samba.org
Sat May 18 15:52:51 EST 2002


Date:	Fri May 17 22:52:51 2002
Author:	abartlet

Update of /data/cvs/samba/source/passdb
In directory va:/tmp/cvs-serv6564/source/passdb

Modified Files:
	passdb.c pdb_get_set.c pdb_interface.c pdb_ldap.c 
	pdb_smbpasswd.c pdb_tdb.c 
Added Files:
	pdb_unix.c 
Log Message:
A few things in this commit:

cleanup some of the code in net_rpc_join re const warnings and 
fstrings.

Passdb:  

Make the %u and %U substituions in passdb work.  
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on 
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett




Revisions:
pdb_unix.c		NONE => 1.1
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_unix.c?rev=1.1
passdb.c		1.153 => 1.154
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/passdb.c?r1=1.153&r2=1.154
pdb_get_set.c		1.8 => 1.9
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_get_set.c?r1=1.8&r2=1.9
pdb_interface.c		1.12 => 1.13
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_interface.c?r1=1.12&r2=1.13
pdb_ldap.c		1.33 => 1.34
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_ldap.c?r1=1.33&r2=1.34
pdb_smbpasswd.c		1.42 => 1.43
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_smbpasswd.c?r1=1.42&r2=1.43
pdb_tdb.c		1.60 => 1.61
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/pdb_tdb.c?r1=1.60&r2=1.61




More information about the samba-cvs mailing list