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_nisplus.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_nisplus.c')
-rw-r--r-- | source3/passdb/pdb_nisplus.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/passdb/pdb_nisplus.c b/source3/passdb/pdb_nisplus.c index 145e1d4f0c..0c4c2c5bb3 100644 --- a/source3/passdb/pdb_nisplus.c +++ b/source3/passdb/pdb_nisplus.c @@ -1030,7 +1030,15 @@ BOOL pdb_getsampwnam(SAM_ACCOUNT * user, const char *sname) /************************************************************************* Routine to search the nisplus passwd file for an entry matching the username *************************************************************************/ -BOOL pdb_getsampwrid(SAM_ACCOUNT * user, uint32 rid) + +BOOL pdb_getsampwsid(SAM_ACCOUNT * user, DOM_SID *sid) +{ + uint32 rid; + sid_peek_rid(sid, &rid); + return pdb_getsampwrid(user, rid); +} + +static BOOL pdb_getsampwrid(SAM_ACCOUNT * user, uint32 rid) { nis_result *result; char *nisname; |