svn commit: samba r15476 - branches/SAMBA_3_0/source/auth trunk/source/auth

vlendec at samba.org vlendec at samba.org
Sat May 6 19:42:25 GMT 2006


Author: vlendec
Date: 2006-05-06 19:42:25 +0000 (Sat, 06 May 2006)
New Revision: 15476

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

Log:
Transfer the was_mapped flag from user_info to server_info also in auth_sam
and auth_domain. Thanks for Simo to point this out.

Volker



Modified:
   branches/SAMBA_3_0/source/auth/auth_domain.c
   branches/SAMBA_3_0/source/auth/auth_sam.c
   trunk/source/auth/auth_domain.c
   trunk/source/auth/auth_sam.c


Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_domain.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_domain.c	2006-05-06 19:24:35 UTC (rev 15475)
+++ branches/SAMBA_3_0/source/auth/auth_domain.c	2006-05-06 19:42:25 UTC (rev 15476)
@@ -256,6 +256,10 @@
 						server_info,
 						&info3);
 
+		if (NT_STATUS_IS_OK(nt_status)) {
+			(*server_info)->was_mapped |= user_info->was_mapped;
+		}
+
 		netsamlogon_cache_store( user_info->smb_name, &info3 );
 	}
 

Modified: branches/SAMBA_3_0/source/auth/auth_sam.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_sam.c	2006-05-06 19:24:35 UTC (rev 15475)
+++ branches/SAMBA_3_0/source/auth/auth_sam.c	2006-05-06 19:42:25 UTC (rev 15476)
@@ -349,6 +349,8 @@
 				 lm_sess_key.length);
 	data_blob_free(&lm_sess_key);
 
+	(*server_info)->was_mapped |= user_info->was_mapped;
+
 	return nt_status;
 }
 

Modified: trunk/source/auth/auth_domain.c
===================================================================
--- trunk/source/auth/auth_domain.c	2006-05-06 19:24:35 UTC (rev 15475)
+++ trunk/source/auth/auth_domain.c	2006-05-06 19:42:25 UTC (rev 15476)
@@ -256,6 +256,10 @@
 						server_info,
 						&info3);
 
+		if (NT_STATUS_IS_OK(nt_status)) {
+			(*server_info)->was_mapped |= user_info->was_mapped;
+		}
+
 		netsamlogon_cache_store( user_info->smb_name, &info3 );
 	}
 

Modified: trunk/source/auth/auth_sam.c
===================================================================
--- trunk/source/auth/auth_sam.c	2006-05-06 19:24:35 UTC (rev 15475)
+++ trunk/source/auth/auth_sam.c	2006-05-06 19:42:25 UTC (rev 15476)
@@ -349,6 +349,8 @@
 				 lm_sess_key.length);
 	data_blob_free(&lm_sess_key);
 
+	(*server_info)->was_mapped |= user_info->was_mapped;
+
 	return nt_status;
 }
 



More information about the samba-cvs mailing list