svn commit: samba r25064 - in branches: SAMBA_3_0_25/source/nsswitch SAMBA_3_2/source/nsswitch SAMBA_3_2_0/source/nsswitch

idra at samba.org idra at samba.org
Mon Sep 10 19:20:00 GMT 2007


Author: idra
Date: 2007-09-10 19:19:59 +0000 (Mon, 10 Sep 2007)
New Revision: 25064

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25064

Log:

We use BOOL/True/False not bool/true/false


Modified:
   branches/SAMBA_3_0_25/source/nsswitch/idmap_ldap.c
   branches/SAMBA_3_2/source/nsswitch/idmap_ldap.c
   branches/SAMBA_3_2_0/source/nsswitch/idmap_ldap.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/nsswitch/idmap_ldap.c
===================================================================
--- branches/SAMBA_3_0_25/source/nsswitch/idmap_ldap.c	2007-09-10 19:14:22 UTC (rev 25063)
+++ branches/SAMBA_3_0_25/source/nsswitch/idmap_ldap.c	2007-09-10 19:19:59 UTC (rev 25064)
@@ -78,7 +78,7 @@
 	char *secret = NULL;
 	const char *tmp = NULL;
 	char *user_dn = NULL;
-	bool anon = false;
+	BOOL anon = False;
 
 	/* assume anonymous if we don't have a specified user */
 
@@ -87,10 +87,10 @@
 	if ( tmp ) {
 		if (!dom) {
 			/* only the alloc backend can pass in a NULL dom */
-			secret = idmap_fetch_secret("ldap", true,
+			secret = idmap_fetch_secret("ldap", True,
 						    NULL, tmp);
 		} else {
-			secret = idmap_fetch_secret("ldap", false,
+			secret = idmap_fetch_secret("ldap", False,
 						    dom->name, tmp);
 		}
 
@@ -107,7 +107,7 @@
 		if (!fetch_ldap_pw(&user_dn, &secret)) {
 			DEBUG(2, ("get_credentials: Failed to lookup ldap "
 				  "bind creds. Using anonymous connection.\n"));
-			anon = true;
+			anon = True;
 		} else {
 			*dn = talloc_strdup(mem_ctx, user_dn);
 			SAFE_FREE( user_dn );

Modified: branches/SAMBA_3_2/source/nsswitch/idmap_ldap.c
===================================================================
--- branches/SAMBA_3_2/source/nsswitch/idmap_ldap.c	2007-09-10 19:14:22 UTC (rev 25063)
+++ branches/SAMBA_3_2/source/nsswitch/idmap_ldap.c	2007-09-10 19:19:59 UTC (rev 25064)
@@ -78,7 +78,7 @@
 	char *secret = NULL;
 	const char *tmp = NULL;
 	char *user_dn = NULL;
-	bool anon = false;
+	BOOL anon = False;
 
 	/* assume anonymous if we don't have a specified user */
 
@@ -87,10 +87,10 @@
 	if ( tmp ) {
 		if (!dom) {
 			/* only the alloc backend can pass in a NULL dom */
-			secret = idmap_fetch_secret("ldap", true,
+			secret = idmap_fetch_secret("ldap", True,
 						    NULL, tmp);
 		} else {
-			secret = idmap_fetch_secret("ldap", false,
+			secret = idmap_fetch_secret("ldap", False,
 						    dom->name, tmp);
 		}
 
@@ -107,7 +107,7 @@
 		if (!fetch_ldap_pw(&user_dn, &secret)) {
 			DEBUG(2, ("get_credentials: Failed to lookup ldap "
 				  "bind creds. Using anonymous connection.\n"));
-			anon = true;
+			anon = True;
 		} else {
 			*dn = talloc_strdup(mem_ctx, user_dn);
 			SAFE_FREE( user_dn );

Modified: branches/SAMBA_3_2_0/source/nsswitch/idmap_ldap.c
===================================================================
--- branches/SAMBA_3_2_0/source/nsswitch/idmap_ldap.c	2007-09-10 19:14:22 UTC (rev 25063)
+++ branches/SAMBA_3_2_0/source/nsswitch/idmap_ldap.c	2007-09-10 19:19:59 UTC (rev 25064)
@@ -78,7 +78,7 @@
 	char *secret = NULL;
 	const char *tmp = NULL;
 	char *user_dn = NULL;
-	bool anon = false;
+	BOOL anon = False;
 
 	/* assume anonymous if we don't have a specified user */
 
@@ -87,10 +87,10 @@
 	if ( tmp ) {
 		if (!dom) {
 			/* only the alloc backend can pass in a NULL dom */
-			secret = idmap_fetch_secret("ldap", true,
+			secret = idmap_fetch_secret("ldap", True,
 						    NULL, tmp);
 		} else {
-			secret = idmap_fetch_secret("ldap", false,
+			secret = idmap_fetch_secret("ldap", False,
 						    dom->name, tmp);
 		}
 
@@ -107,7 +107,7 @@
 		if (!fetch_ldap_pw(&user_dn, &secret)) {
 			DEBUG(2, ("get_credentials: Failed to lookup ldap "
 				  "bind creds. Using anonymous connection.\n"));
-			anon = true;
+			anon = True;
 		} else {
 			*dn = talloc_strdup(mem_ctx, user_dn);
 			SAFE_FREE( user_dn );



More information about the samba-cvs mailing list