svn commit: samba r6761 - in branches/SAMBA_4_0/source/cldap_server: .

tridge at samba.org tridge at samba.org
Fri May 13 05:29:42 GMT 2005


Author: tridge
Date: 2005-05-13 05:29:41 +0000 (Fri, 13 May 2005)
New Revision: 6761

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

Log:
- not everyone is in my domain :-)

- started adding support for the other cldap attributes that XP uses




Modified:
   branches/SAMBA_4_0/source/cldap_server/netlogon.c


Changeset:
Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c
===================================================================
--- branches/SAMBA_4_0/source/cldap_server/netlogon.c	2005-05-12 19:31:50 UTC (rev 6760)
+++ branches/SAMBA_4_0/source/cldap_server/netlogon.c	2005-05-13 05:29:41 UTC (rev 6761)
@@ -93,7 +93,8 @@
 	pdc_dns_name     = talloc_asprintf(mem_ctx, "%s.%s", 
 					   lp_netbios_name(), dns_domain);
 	flatname         = samdb_result_string(res[0], "name", lp_workgroup());
-	site_name        = "Default-First-Site-Name.bludom.tridgell.net";
+	site_name        = talloc_asprintf(mem_ctx, "Default-First-Site-Name.%s",
+					   dns_domain);
 	site_name2       = "";
 	pdc_ip           = iface_best_ip(src_address);
 
@@ -179,6 +180,9 @@
 	const char *domain = NULL;
 	const char *host = NULL;
 	const char *user = "";
+	const char *domain_guid = NULL;
+	const char *domain_sid = NULL;
+	int acct_control = -1;
 	int version = -1;
 	union nbt_cldap_netlogon netlogon;
 	NTSTATUS status = NT_STATUS_INVALID_PARAMETER;
@@ -206,6 +210,16 @@
 					      t->u.simple.value.data,
 					      t->u.simple.value.length);
 		}
+		if (strcasecmp(t->u.simple.attr, "DomainGuid") == 0) {
+			domain_guid = talloc_strndup(tmp_ctx, 
+						     t->u.simple.value.data,
+						     t->u.simple.value.length);
+		}
+		if (strcasecmp(t->u.simple.attr, "DomainSid") == 0) {
+			domain_sid = talloc_strndup(tmp_ctx, 
+						    t->u.simple.value.data,
+						    t->u.simple.value.length);
+		}
 		if (strcasecmp(t->u.simple.attr, "User") == 0) {
 			user = talloc_strndup(tmp_ctx, 
 					      t->u.simple.value.data,
@@ -215,6 +229,10 @@
 		    t->u.simple.value.length == 4) {
 			version = IVAL(t->u.simple.value.data, 0);
 		}
+		if (strcasecmp(t->u.simple.attr, "AAC") == 0 &&
+		    t->u.simple.value.length == 4) {
+			acct_control = IVAL(t->u.simple.value.data, 0);
+		}
 	}
 
 	if (domain == NULL || host == NULL || version == -1) {



More information about the samba-cvs mailing list