diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-03-04 14:10:41 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-03-04 14:10:41 +1100 |
commit | 8ee0cc24b8302097bccae7891cb6f9c0547a1815 (patch) | |
tree | 3fb0605641da1230b34912ac725ff2f09f51af8f /source3/passdb/lookup_sid.c | |
parent | 52542e1affbaad3a29d913ced06f6c5ae0d7b4ad (diff) | |
parent | ef89c4bc0db2e9ba48f4dac1fd381e4cc6c8ca7d (diff) | |
download | samba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.tar.gz samba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.tar.bz2 samba-8ee0cc24b8302097bccae7891cb6f9c0547a1815.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Diffstat (limited to 'source3/passdb/lookup_sid.c')
-rw-r--r-- | source3/passdb/lookup_sid.c | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 10ff36d51b..9c20042a62 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1309,15 +1309,18 @@ void uid_to_sid(DOM_SID *psid, uid_t uid) /* Not in cache. Ask winbindd. */ if (!winbind_uid_to_sid(psid, uid)) { /* - * We shouldn't return the NULL SID - * here if winbind was running and - * couldn't map, as winbind will have - * added a negative entry that will - * cause us to go though the - * legacy_uid_to_sid() - * function anyway in the case above - * the next time we ask. - */ + * We shouldn't return the NULL SID + * here if winbind was running and + * couldn't map, as winbind will have + * added a negative entry that will + * cause us to go though the + * legacy_uid_to_sid() + * function anyway in the case above + * the next time we ask. + */ + DEBUG(5, ("uid_to_sid: winbind failed to find a sid " + "for uid %u\n", uid)); + legacy_uid_to_sid(psid, uid); return; } @@ -1359,15 +1362,18 @@ void gid_to_sid(DOM_SID *psid, gid_t gid) /* Not in cache. Ask winbindd. */ if (!winbind_gid_to_sid(psid, gid)) { /* - * We shouldn't return the NULL SID - * here if winbind was running and - * couldn't map, as winbind will have - * added a negative entry that will - * cause us to go though the - * legacy_gid_to_sid() - * function anyway in the case above - * the next time we ask. - */ + * We shouldn't return the NULL SID + * here if winbind was running and + * couldn't map, as winbind will have + * added a negative entry that will + * cause us to go though the + * legacy_gid_to_sid() + * function anyway in the case above + * the next time we ask. + */ + DEBUG(5, ("gid_to_sid: winbind failed to find a sid " + "for gid %u\n", gid)); + legacy_gid_to_sid(psid, gid); return; } |