svn commit: samba r3077 - in branches/SAMBA_4_0/source/rpc_server/samr: .

abartlet at samba.org abartlet at samba.org
Wed Oct 20 02:12:53 GMT 2004


Author: abartlet
Date: 2004-10-20 02:12:52 +0000 (Wed, 20 Oct 2004)
New Revision: 3077

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

Log:
Add initial handling of Account Flags in SAMR user info level 21 and 25.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c	2004-10-20 02:11:40 UTC (rev 3076)
+++ branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c	2004-10-20 02:12:52 UTC (rev 3077)
@@ -1676,12 +1676,17 @@
 			SET_STRING(msg, info21.workstations.name, "userWorkstations");
 		IFSET(SAMR_FIELD_LOGON_HOURS)  
 			SET_LHOURS(msg, info21.logon_hours,       "logonHours");
+		IFSET(SAMR_FIELD_ACCT_FLAGS)     
+			SET_AFLAGS(msg, info21.acct_flags,        "userAccountControl");
 		IFSET(SAMR_FIELD_CALLBACK)     
 			SET_STRING(msg, info21.callback.name,     "userParameters");
 		IFSET(SAMR_FIELD_COUNTRY_CODE) 
 			SET_UINT  (msg, info21.country_code,      "countryCode");
 		IFSET(SAMR_FIELD_CODE_PAGE)    
 			SET_UINT  (msg, info21.code_page,         "codePage");
+
+
+		/* Any reason the rest of these can't be set? */
 #undef IFSET
 		break;
 
@@ -1701,6 +1706,8 @@
 			SET_STRING(msg, info23.info.workstations.name, "userWorkstations");
 		IFSET(SAMR_FIELD_LOGON_HOURS)  
 			SET_LHOURS(msg, info23.info.logon_hours,       "logonHours");
+		IFSET(SAMR_FIELD_ACCT_FLAGS)     
+			SET_AFLAGS(msg, info23.info.acct_flags,        "userAccountControl");
 		IFSET(SAMR_FIELD_CALLBACK)     
 			SET_STRING(msg, info23.info.callback.name,     "userParameters");
 		IFSET(SAMR_FIELD_COUNTRY_CODE) 
@@ -1744,6 +1751,8 @@
 			SET_STRING(msg, info25.info.workstations.name, "userWorkstations");
 		IFSET(SAMR_FIELD_LOGON_HOURS)  
 			SET_LHOURS(msg, info25.info.logon_hours,       "logonHours");
+		IFSET(SAMR_FIELD_ACCT_FLAGS)     
+			SET_AFLAGS(msg, info25.info.acct_flags,        "userAccountControl");
 		IFSET(SAMR_FIELD_CALLBACK)     
 			SET_STRING(msg, info25.info.callback.name,     "userParameters");
 		IFSET(SAMR_FIELD_COUNTRY_CODE) 



More information about the samba-cvs mailing list