diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-13 00:30:26 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-13 00:30:26 +0000 |
commit | 1a8f3ba3ab7717c481e3fb4f1ea8938461160d09 (patch) | |
tree | 1f337aaffa30ef7e7e629196b06abf79d180b5e0 /source/smbd/uid.c | |
parent | df9e345366078ccaa94df7c2f2e33b292605e88a (diff) | |
download | samba-1a8f3ba3ab7717c481e3fb4f1ea8938461160d09.tar.gz samba-1a8f3ba3ab7717c481e3fb4f1ea8938461160d09.tar.xz samba-1a8f3ba3ab7717c481e3fb4f1ea8938461160d09.zip |
if we know that the SID is local then don't try via winbindd
Diffstat (limited to 'source/smbd/uid.c')
-rw-r--r-- | source/smbd/uid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c index 1946078d6e1..864d3d6c666 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -593,6 +593,11 @@ BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype) { fstring sid_str; + /* if we know its local then don't try winbindd */ + if (sid_compare_domain(&global_sam_sid, psid) == 0) { + return local_sid_to_uid(puid, psid, sidtype); + } + /* (tridge) I commented out the slab of code below in order to support foreign SIDs Do we really need to validate the type of SID we have in this case? */ |