svn commit: samba r25576 - in branches/SAMBA_4_0/source/auth: .

metze at samba.org metze at samba.org
Mon Oct 8 14:18:20 GMT 2007


Author: metze
Date: 2007-10-08 14:18:19 +0000 (Mon, 08 Oct 2007)
New Revision: 25576

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

Log:
BOOL -> bool

metze
Modified:
   branches/SAMBA_4_0/source/auth/auth_server.c
   branches/SAMBA_4_0/source/auth/auth_unix.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_server.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_server.c	2007-10-08 13:31:08 UTC (rev 25575)
+++ branches/SAMBA_4_0/source/auth/auth_server.c	2007-10-08 14:18:19 UTC (rev 25576)
@@ -31,13 +31,13 @@
 	struct ipv4_addr dest_ip;
 	const char *p;
 	char *pserver;
-	BOOL connected_ok = False;
+	bool connected_ok = false;
 
 	if (!(cli = smbcli_initialise(cli)))
 		return NULL;
 
 	/* security = server just can't function with spnego */
-	cli->use_spnego = False;
+	cli->use_spnego = false;
 
         pserver = talloc_strdup(mem_ctx, lp_passwordserver());
 	p = pserver;
@@ -66,7 +66,7 @@
 
 		if (smbcli_connect(cli, desthost, &dest_ip)) {
 			DEBUG(3,("connected to password server %s\n",desthost));
-			connected_ok = True;
+			connected_ok = true;
 			break;
 		}
 	}
@@ -198,7 +198,7 @@
 	static bool tested_password_server = false;
 	static bool bad_password_server = false;
 	NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE;
-	BOOL locally_made_cli = False;
+	bool locally_made_cli = false;
 
 	/* 
 	 * Check that the requested domain is not our own machine name.
@@ -216,7 +216,7 @@
 	if (cli) {
 	} else {
 		cli = server_cryptkey(mem_ctx);
-		locally_made_cli = True;
+		locally_made_cli = true;
 	}
 
 	if (!cli || !cli->initialised) {
@@ -273,7 +273,7 @@
 			 * We connected to the password server so we
 			 * can say we've tested it.
 			 */
-			tested_password_server = True;
+			tested_password_server = true;
 
 			if ((SVAL(cli->inbuf,smb_vwv2) & 1) == 0) {
 				DEBUG(0,("server_validate: password server %s allows users as non-guest \
@@ -285,7 +285,7 @@
 				/*
 				 * Password server has the bug.
 				 */
-				bad_password_server = True;
+				bad_password_server = true;
 				return NT_STATUS_LOGON_FAILURE;
 			}
 			smbcli_ulogoff(cli);

Modified: branches/SAMBA_4_0/source/auth/auth_unix.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_unix.c	2007-10-08 13:31:08 UTC (rev 25575)
+++ branches/SAMBA_4_0/source/auth/auth_unix.c	2007-10-08 14:18:19 UTC (rev 25576)
@@ -499,7 +499,7 @@
 static NTSTATUS password_check(const char *username, const char *password,
 					const char *crypted, const char *salt)
 {
-	BOOL ret;
+	bool ret;
 
 #ifdef WITH_AFS
 	if (afs_auth(username, password))



More information about the samba-cvs mailing list