s3: libads: use get_dc_name() instead of get_sorted_dc_list() in the LDAP case
commit95c9a0272a72c029d75c3ffd1b5fad360b30f139
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Oct 2008 09:14:10 +0000 (22 11:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 13 Dec 2008 10:59:09 +0000 (13 11:59 +0100)
tree2e5eed27698602d6e18543fad00936a24dbcb5a5
parentb609f41baa035a15dafb18b2ec569a2b96968b17
s3: libads: use get_dc_name() instead of get_sorted_dc_list() in the LDAP case

We use get_dc_name() for LDAP because it generates the selfwritten
krb5.conf with the correct kdc addresses and sets KRB5_CONFIG.

For CLDAP we need to use get_sorted_dc_list() to avoid recursion.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit d2f7f81f4d61bae9c4be65cbc1bf962b6c24a31f)
(cherry picked from commit 7f779450cb0b0d9f36665c56c4acd0950daaeab2)
source/libads/ldap.c