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)