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)
committerGünther Deschner <gd@samba.org>
Thu, 30 Oct 2008 13:52:26 +0000 (14:52 +0100)
commitd2f7f81f4d61bae9c4be65cbc1bf962b6c24a31f
tree2e9bb1dfde3b25ea11cf756f20bcbade2c425cb6
parentdfe5b00db35e1e7c7bb3ba36729fc3f97eb48db3
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>
source/libads/ldap.c