s3: libads: use get_dc_name() instead of get_sorted_dc_list() in the LDAP case
commit47600645a651e7a9d30d28a7f3053f2f37913ffa
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Oct 2008 09:14:10 +0000 (22 11:14 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Jan 2009 08:39:43 +0000 (28 09:39 +0100)
tree5fdc9c6b053a90b4aa7d6d64af858637032a95d0
parenta6478e64e331bfdd1772169bf365be907f705e38
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)
(cherry picked from commit 95c9a0272a72c029d75c3ffd1b5fad360b30f139)
(cherry picked from commit 5e47b314550d1165b86bd556330d36e0787e5109)
source/libads/ldap.c