mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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 a41fe2f6c8
)
This commit is contained in:
parent
7547398c97
commit
88ed747e29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user