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

abartlet at samba.org abartlet at samba.org
Wed Sep 22 10:34:49 GMT 2004


Author: abartlet
Date: 2004-09-22 10:34:49 +0000 (Wed, 22 Sep 2004)
New Revision: 2505

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/auth&rev=2505&nolog=1

Log:
Remove unused function.  If/when we implement plaintext authenticaton
in Samba4, I want to redo this.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/auth_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_util.c	2004-09-22 10:32:56 UTC (rev 2504)
+++ branches/SAMBA_4_0/source/auth/auth_util.c	2004-09-22 10:34:49 UTC (rev 2505)
@@ -232,66 +232,10 @@
 	data_blob_free(&nt_interactive_blob);
 	return nt_status;
 }
-
-
 /****************************************************************************
  Create an auth_usersupplied_data structure
 ****************************************************************************/
 
-BOOL make_user_info_for_reply(struct auth_usersupplied_info **user_info, 
-			      const char *smb_name, 
-			      const char *client_domain,
-			      const uint8_t chal[8],
-			      DATA_BLOB plaintext_password)
-{
-
-	DATA_BLOB local_lm_blob;
-	DATA_BLOB local_nt_blob;
-	NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
-			
-	/*
-	 * Not encrypted - do so.
-	 */
-	
-	DEBUG(5,("make_user_info_for_reply: User passwords not in encrypted format.\n"));
-	
-	if (plaintext_password.data) {
-		uint8_t local_lm_response[24];
-		
-#ifdef DEBUG_PASSWORD
-		DEBUG(10,("Unencrypted password (len %d):\n",plaintext_password.length));
-		dump_data(100, plaintext_password.data, plaintext_password.length);
-#endif
-
-		SMBencrypt( (const char *)plaintext_password.data, (const uint8_t *)chal, local_lm_response);
-		local_lm_blob = data_blob(local_lm_response, 24);
-		
-		/* We can't do an NT hash here, as the password needs to be
-		   case insensitive */
-		local_nt_blob = data_blob(NULL, 0); 
-		
-	} else {
-		local_lm_blob = data_blob(NULL, 0); 
-		local_nt_blob = data_blob(NULL, 0); 
-	}
-	
-	ret = make_user_info_map(user_info, smb_name,
-	                         client_domain, 
-	                         sub_get_remote_machine(),
-	                         local_lm_blob.data ? &local_lm_blob : NULL,
-	                         local_nt_blob.data ? &local_nt_blob : NULL,
-				 NULL, NULL,
-	                         plaintext_password.data ? &plaintext_password : NULL, 
-	                         False);
-	
-	data_blob_free(&local_lm_blob);
-	return NT_STATUS_IS_OK(ret) ? True : False;
-}
-
-/****************************************************************************
- Create an auth_usersupplied_data structure
-****************************************************************************/
-
 NTSTATUS make_user_info_for_reply_enc(struct auth_usersupplied_info **user_info, 
                                       const char *smb_name,
                                       const char *client_domain, 



More information about the samba-cvs mailing list