[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5035-g784a9ae

Tim Prouty tprouty at samba.org
Wed Mar 4 00:57:54 GMT 2009


The branch, v3-3-test has been updated
       via  784a9ae6fed4169b2e21608a1963a2b9af8c47fc (commit)
      from  da340c674d52d79cd4c45ab961a8fd7a204f7a67 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 784a9ae6fed4169b2e21608a1963a2b9af8c47fc
Author: Tim Prouty <tprouty at samba.org>
Date:   Tue Mar 3 16:47:48 2009 -0800

    s3 passdb: Add back some useful debug statements
    
    Originally removed in be1dfff02d562e42a7847bd02fed8538630d3f41

-----------------------------------------------------------------------

Summary of changes:
 source/passdb/lookup_sid.c |   42 ++++++++++++++++++++++++------------------
 1 files changed, 24 insertions(+), 18 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c
index ec42587..2a5eacd 100644
--- a/source/passdb/lookup_sid.c
+++ b/source/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;
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list