r12383: Fixes for Apple's AD client. Don't segfualt in the KDC, and they
authorAndrew Bartlett <abartlet@samba.org>
Tue, 20 Dec 2005 00:00:48 +0000 (00:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:33 +0000 (13:47 -0500)
require the isSynchronized flag in the rootDSE.

Andrew Bartlett

source/kdc/pac-glue.c
source/setup/provision_init.ldif

index a3dec8c46d85777eb4969136f602f2a52d6f90a1..a9c12b8ee639a3b06b65d2254911a29cb4f4c6ec 100644 (file)
@@ -335,12 +335,14 @@ krb5_error_code hdb_ldb_check_client_access(krb5_context context, hdb_entry_ex *
                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;
+                               }
                        }
                }
        }
index fa9b234631ec6ccab864b71baa5a4fcd90f3c55a..53f7ff1b3bc816a54c87730f015898d714c6d819 100644 (file)
@@ -64,6 +64,7 @@ serverName: CN=${NETBIOSNAME},CN=Servers,CN=Default-First-Site,CN=Sites,CN=Confi
 domainFunctionality: 0
 forestFunctionality: 0
 domainControllerFunctionality: 2
+isSyncronized: TRUE
 
 #Add modules to the list to activate them by default
 #beware often order is important