diff options
author | Gerald Carter <jerry@samba.org> | 2003-08-21 21:05:01 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-08-21 21:05:01 +0000 |
commit | 49f7298ae02f2941f0488efe94ca49b5cdaceb58 (patch) | |
tree | 70e75ccf69db2a34357142fd686808cc9f362e84 | |
parent | 9f4ffd78ae14d8f9f6fd49a174a150565500a45b (diff) | |
download | samba-49f7298ae02f2941f0488efe94ca49b5cdaceb58.tar.gz samba-49f7298ae02f2941f0488efe94ca49b5cdaceb58.tar.bz2 samba-49f7298ae02f2941f0488efe94ca49b5cdaceb58.zip |
fix for BUG 245; make sure we set the sid type when falling back to the rid algorithm stuff
(This used to be commit f6363aa31aa3479a9566328752ecb4aeadde10b7)
-rw-r--r-- | source3/passdb/passdb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 34a5f7e32a..76745be3f0 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -776,6 +776,8 @@ BOOL local_lookup_sid(DOM_SID *sid, char *name, enum SID_NAME_USE *psid_name_use DEBUG(5,("local_lookup_sid: found user %s for rid %u\n", name, (unsigned int)rid )); + *psid_name_use = SID_NAME_USER; + return ( pw != NULL ); } else { gid_t gid; @@ -798,7 +800,11 @@ BOOL local_lookup_sid(DOM_SID *sid, char *name, enum SID_NAME_USE *psid_name_use DEBUG(5,("local_lookup_sid: found group %s for rid %u\n", name, (unsigned int)rid )); - + + /* assume fallback groups aer domain global groups */ + + *psid_name_use = SID_NAME_DOM_GRP; + return ( gr != NULL ); } } |