From 8fe1df84e1dc83085bdc137629ca6c882c13c388 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Mar 2002 00:30:26 +0000 Subject: if we know that the SID is local then don't try via winbindd (This used to be commit 1a8f3ba3ab7717c481e3fb4f1ea8938461160d09) --- source3/smbd/uid.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 1946078d6e..864d3d6c66 100644 --- a/source3/smbd/uid.c +++ b/source3/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? */ -- cgit