diff options
author | Simo Sorce <idra@samba.org> | 2002-05-26 19:11:52 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-05-26 19:11:52 +0000 |
commit | a27a0e01e2f0c48a4a8d84b17693390a268310f8 (patch) | |
tree | 36a97084026b6bfe9528313ae4970d07a5ec0603 /source3/passdb/pdb_unix.c | |
parent | 069e6fb9eb4a0bf6720cbbf493d0cb36baac9580 (diff) | |
download | samba-a27a0e01e2f0c48a4a8d84b17693390a268310f8.tar.gz samba-a27a0e01e2f0c48a4a8d84b17693390a268310f8.tar.bz2 samba-a27a0e01e2f0c48a4a8d84b17693390a268310f8.zip |
change: pdb_getsampwrid() ->pdb_getsampwsid()
passdb interface change, now the passdb modules will be asked for SID not for rid, the modules have been updated with a passthrough function that calls the old getsampwrid() functions.
srv_samr_nt.c functions that made use of the pdb_getsampwrid funcion has been updated to use the SID one.
(This used to be commit f5c6496c33fa7f5c2826540ffb4a49d8a5790fb3)
Diffstat (limited to 'source3/passdb/pdb_unix.c')
-rw-r--r-- | source3/passdb/pdb_unix.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/passdb/pdb_unix.c b/source3/passdb/pdb_unix.c index 1c0ede76d3..85ff5bd933 100644 --- a/source3/passdb/pdb_unix.c +++ b/source3/passdb/pdb_unix.c @@ -65,6 +65,13 @@ static BOOL unixsam_getsampwrid (struct pdb_methods *methods, return ret; } +static BOOL unixsam_getsampwsid(struct pdb_methods *my_methods, SAM_ACCOUNT * user, DOM_SID *sid) +{ + uint32 rid; + sid_peek_rid(sid, &rid); + return unixsam_getsampwrid(my_methods, user, rid); +} + /*************************************************************************** Adds an existing SAM_ACCOUNT ****************************************************************************/ @@ -109,7 +116,7 @@ NTSTATUS pdb_init_unixsam(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, co (*pdb_method)->endsampwent = NULL; (*pdb_method)->getsampwent = NULL; (*pdb_method)->getsampwnam = unixsam_getsampwnam; - (*pdb_method)->getsampwrid = unixsam_getsampwrid; + (*pdb_method)->getsampwsid = unixsam_getsampwsid; (*pdb_method)->add_sam_account = unixsam_add_sam_account; (*pdb_method)->update_sam_account = unixsam_update_sam_account; (*pdb_method)->delete_sam_account = NULL; |