From 88ed747e2907066bc55f89349d86479b319793fc Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 26 Jan 2002 09:50:28 +0000 Subject: Remove the 'direct to winbind' hacks, as they should (if I understand correctly) be no longer needed. This is in aid of the 'winbind default domain' code - which works much better when smbd always goes via the standard unix interfaces. Andrew Bartlett (This used to be commit a41fe2f6c845789c719de1d9a26a1374fb0e7fdb) --- source3/lib/util.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 2b71b3cb3d..d548f48e85 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1047,9 +1047,6 @@ char *uidtoname(uid_t uid) static fstring name; struct passwd *pass; - if (winbind_uidtoname(name, uid)) - return name; - pass = sys_getpwuid(uid); if (pass) return(pass->pw_name); slprintf(name, sizeof(name) - 1, "%d",(int)uid); @@ -1066,9 +1063,6 @@ char *gidtoname(gid_t gid) static fstring name; struct group *grp; - if (winbind_gidtoname(name, gid)) - return name; - grp = getgrgid(gid); if (grp) return(grp->gr_name); slprintf(name,sizeof(name) - 1, "%d",(int)gid); @@ -1089,9 +1083,6 @@ uid_t nametouid(char *name) if ((p != name) && (*p == '\0')) return u; - if (winbind_nametouid(&u, name)) - return u; - pass = getpwnam_alloc(name); if (pass) { return(pass->pw_uid); @@ -1115,9 +1106,6 @@ gid_t nametogid(const char *name) if ((p != name) && (*p == '\0')) return g; - if (winbind_nametogid(&g, name)) - return g; - grp = getgrnam(name); if (grp) return(grp->gr_gid); -- cgit