svn commit: samba r12383 - in branches/SAMBA_4_0/source: kdc setup

abartlet at samba.org abartlet at samba.org
Tue Dec 20 00:00:50 GMT 2005


Author: abartlet
Date: 2005-12-20 00:00:48 +0000 (Tue, 20 Dec 2005)
New Revision: 12383

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

Log:
Fixes for Apple's AD client.  Don't segfualt in the KDC, and they
require the isSynchronized flag in the rootDSE.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/kdc/pac-glue.c
   branches/SAMBA_4_0/source/setup/provision_init.ldif


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/pac-glue.c
===================================================================
--- branches/SAMBA_4_0/source/kdc/pac-glue.c	2005-12-19 23:43:17 UTC (rev 12382)
+++ branches/SAMBA_4_0/source/kdc/pac-glue.c	2005-12-20 00:00:48 UTC (rev 12383)
@@ -335,12 +335,14 @@
 		talloc_free(tmp_ctx);
 		return ret;
 	}
-	
-	for (i=0; i < addresses->len; i++) {
-		if (addresses->val->addr_type == KRB5_ADDRESS_NETBIOS) {
-			workstation = talloc_strndup(tmp_ctx, addresses->val->address.data, MIN(addresses->val->address.length, 15));
-			if (workstation) {
-				break;
+
+	if (addresses) {
+		for (i=0; i < addresses->len; i++) {
+			if (addresses->val->addr_type == KRB5_ADDRESS_NETBIOS) {
+				workstation = talloc_strndup(tmp_ctx, addresses->val->address.data, MIN(addresses->val->address.length, 15));
+				if (workstation) {
+					break;
+				}
 			}
 		}
 	}

Modified: branches/SAMBA_4_0/source/setup/provision_init.ldif
===================================================================
--- branches/SAMBA_4_0/source/setup/provision_init.ldif	2005-12-19 23:43:17 UTC (rev 12382)
+++ branches/SAMBA_4_0/source/setup/provision_init.ldif	2005-12-20 00:00:48 UTC (rev 12383)
@@ -64,6 +64,7 @@
 domainFunctionality: 0
 forestFunctionality: 0
 domainControllerFunctionality: 2
+isSyncronized: TRUE
 
 #Add modules to the list to activate them by default
 #beware often order is important



More information about the samba-cvs mailing list