summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-05-07 22:10:38 +0000
committerGerald Carter <jerry@samba.org>2001-05-07 22:10:38 +0000
commit495f6e678774b013ec9da268fb69543ec9fc6cc6 (patch)
treedbbc650930adf821a075791cc5f8e4eb5ad24aba /source3/passdb
parentdbd7e0a54ee39a67e9e368b279cf89ef159b204c (diff)
downloadsamba-495f6e678774b013ec9da268fb69543ec9fc6cc6.tar.gz
samba-495f6e678774b013ec9da268fb69543ec9fc6cc6.tar.bz2
samba-495f6e678774b013ec9da268fb69543ec9fc6cc6.zip
merge from 2.2 removing the 'domain XXX' parameters.
(This used to be commit 9aefc86e355bf160300580acb85a58a18207ccdf)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 396eaf61f2..05572e3de2 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -352,20 +352,9 @@ BOOL pdb_name_to_rid(char *user_name, uint32 *u_rid, uint32 *g_rid)
return False;
}
- if (user_in_list(user_name, lp_domain_guest_users()))
- {
- *u_rid = DOMAIN_USER_RID_GUEST;
- }
- else if (user_in_list(user_name, lp_domain_admin_users()))
- {
- *u_rid = DOMAIN_USER_RID_ADMIN;
- }
- else
- {
- /* turn the unix UID into a Domain RID. this is what the posix
- sub-system does (adds 1000 to the uid) */
- *u_rid = pdb_uid_to_user_rid(pw->pw_uid);
- }
+ /* turn the unix UID into a Domain RID. this is what the posix
+ sub-system does (adds 1000 to the uid) */
+ *u_rid = pdb_uid_to_user_rid(pw->pw_uid);
/* absolutely no idea what to do about the unix GID to Domain RID mapping */
*g_rid = pdb_gid_to_group_rid(pw->pw_gid);
@@ -454,13 +443,11 @@ BOOL local_lookup_rid(uint32 rid, char *name, enum SID_NAME_USE *psid_name_use)
if(rid == DOMAIN_USER_RID_ADMIN) {
pstring admin_users;
char *p = admin_users;
- pstrcpy( admin_users, lp_domain_admin_users());
if(!next_token(&p, name, NULL, sizeof(fstring)))
fstrcpy(name, "Administrator");
} else if (rid == DOMAIN_USER_RID_GUEST) {
pstring guest_users;
char *p = guest_users;
- pstrcpy( guest_users, lp_domain_guest_users());
if(!next_token(&p, name, NULL, sizeof(fstring)))
fstrcpy(name, "Guest");
} else {