svn commit: samba r11206 - in branches/SAMBA_4_0/source/kdc: .

abartlet at samba.org abartlet at samba.org
Thu Oct 20 04:56:47 GMT 2005


Author: abartlet
Date: 2005-10-20 04:56:47 +0000 (Thu, 20 Oct 2005)
New Revision: 11206

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

Log:
It appears to me that any account may operate as a server.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/kdc/hdb-ldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/hdb-ldb.c
===================================================================
--- branches/SAMBA_4_0/source/kdc/hdb-ldb.c	2005-10-20 04:55:56 UTC (rev 11205)
+++ branches/SAMBA_4_0/source/kdc/hdb-ldb.c	2005-10-20 04:56:47 UTC (rev 11206)
@@ -116,6 +116,9 @@
 		if (ent_type == HDB_LDB_ENT_TYPE_CLIENT || ent_type == HDB_LDB_ENT_TYPE_ANY) {
 			flags.client = 1;
 		}
+		if (ent_type == HDB_LDB_ENT_TYPE_SERVER || ent_type == HDB_LDB_ENT_TYPE_ANY) {
+			flags.server = 1;
+		}
 		flags.invalid = 0;
 	}
 	
@@ -144,8 +147,9 @@
 		flags.invalid = 0;
 	}
 
+	/* Not permitted to act as a client if disabled */
 	if (userAccountControl & UF_ACCOUNTDISABLE) {
-		flags.invalid = 1;
+		flags.client = 0;
 	}
 	if (userAccountControl & UF_LOCKOUT) {
 		flags.invalid = 1;



More information about the samba-cvs mailing list