s3: libads: use get_dc_name() instead of get_sorted_dc_list() in the LDAP case
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Oct 2008 09:14:10 +0000 (11:14 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:56 +0000 (10:11 +0100)
commit948cae7a2b2c3078673160a8304b8302dd49566c
treeadf29c618108a21d474e0b6d9f884fad73f006cc
parentbd7b1af4347bc2fbd2d25a2d932d08885fff200c
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)
source/libads/ldap.c