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

abartlet at samba.org abartlet at samba.org
Fri Nov 5 12:46:00 GMT 2004


Author: abartlet
Date: 2004-11-05 12:46:00 +0000 (Fri, 05 Nov 2004)
New Revision: 3555

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

Log:
Fix auth_winbind to work with the new auth_util conversion code.

Andrew Bartlett

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


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_winbind.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_winbind.c	2004-11-05 12:44:18 UTC (rev 3554)
+++ branches/SAMBA_4_0/source/auth/auth_winbind.c	2004-11-05 12:46:00 UTC (rev 3555)
@@ -104,14 +104,16 @@
 	}
 
 	if (result == NSS_STATUS_SUCCESS && response.extra_data) {
-		if (NT_STATUS_IS_OK(nt_status)) {
-			if (NT_STATUS_IS_OK(nt_status = get_info3_from_ndr(mem_ctx, &response, &info3))) { 
-				nt_status = 
-					make_server_info_info3(mem_ctx, 
-							       user_info->internal_username.str, 
-							       server_info, 
-							       &info3); 
-			}
+		nt_status = get_info3_from_ndr(mem_ctx, &response, &info3);
+		if (NT_STATUS_IS_OK(nt_status)) { 
+			union netr_Validation validation;
+			validation.sam3 = &info3;
+			nt_status = 
+				make_server_info_netlogon_validation(mem_ctx, 
+								     user_info->internal_username.str, 
+								     server_info,
+								     3,
+								     &validation); 
 		}
 		SAFE_FREE(response.extra_data);
 	} else if (result == NSS_STATUS_SUCCESS && !response.extra_data) {



More information about the samba-cvs mailing list