From 98010a076797f4d05d8c9bff45e65c076f30da3a Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 30 Dec 2001 00:03:47 +0000 Subject: pdb_getsampwnuid() merge from 2.2 (This used to be commit 54cbfc7ebcdf1bd2094407b689b0050f0abfa46f) --- source3/passdb/pdb_tdb.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'source3/passdb/pdb_tdb.c') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 08439a9d20..fbfdd1aace 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -541,31 +541,6 @@ BOOL pdb_getsampwnam (SAM_ACCOUNT *user, const char *sname) return True; } -/*************************************************************************** - Search by uid - **************************************************************************/ - -BOOL pdb_getsampwuid (SAM_ACCOUNT* user, uid_t uid) -{ - struct passwd *pw; - fstring name; - - if (user==NULL) { - DEBUG(0,("pdb_getsampwuid: SAM_ACCOUNT is NULL.\n")); - return False; - } - - pw = sys_getpwuid(uid); - if (pw == NULL) { - DEBUG(0,("pdb_getsampwuid: getpwuid(%d) return NULL. User does not exist!\n", uid)); - return False; - } - fstrcpy (name, pw->pw_name); - - return pdb_getsampwnam (user, name); - -} - /*************************************************************************** Search by rid **************************************************************************/ -- cgit