summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 09:50:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 09:50:28 +0000
commit88ed747e2907066bc55f89349d86479b319793fc (patch)
tree9caca9e3335305b08352056c0d0dd55ccfdcfea9
parent7547398c97f1e5f67287a8e319eed146de2ecf05 (diff)
downloadsamba-88ed747e2907066bc55f89349d86479b319793fc.tar.gz
samba-88ed747e2907066bc55f89349d86479b319793fc.tar.bz2
samba-88ed747e2907066bc55f89349d86479b319793fc.zip
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)
-rw-r--r--source3/lib/util.c12
1 files changed, 0 insertions, 12 deletions
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);