diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-12-20 00:00:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:33 -0500 |
commit | 4a5639979894d54b90f7c86f704bb4bac2c89a89 (patch) | |
tree | 0d362baf3f30b5889e69857281cc4f2cf12ba337 /source4 | |
parent | da46c762af1ef62081d47a2b3d94e6c18ada97c0 (diff) | |
download | samba-4a5639979894d54b90f7c86f704bb4bac2c89a89.tar.gz samba-4a5639979894d54b90f7c86f704bb4bac2c89a89.tar.bz2 samba-4a5639979894d54b90f7c86f704bb4bac2c89a89.zip |
r12383: Fixes for Apple's AD client. Don't segfualt in the KDC, and they
require the isSynchronized flag in the rootDSE.
Andrew Bartlett
(This used to be commit e48464c8844b4af1976d8379aef8db9baddd3687)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/kdc/pac-glue.c | 14 | ||||
-rw-r--r-- | source4/setup/provision_init.ldif | 1 |
2 files changed, 9 insertions, 6 deletions
diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index a3dec8c46d..a9c12b8ee6 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -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; + } } } } diff --git a/source4/setup/provision_init.ldif b/source4/setup/provision_init.ldif index fa9b234631..53f7ff1b3b 100644 --- a/source4/setup/provision_init.ldif +++ b/source4/setup/provision_init.ldif @@ -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 |