From 44685ff64447b7ad87c75aec478e5f21bd50b4b7 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 29 Oct 2009 15:02:41 -0400 Subject: Add support to get rootDSE from the LDAP server. Also fic sdap_get_generic_send() to be a bit more "generic" :-) Also figs bugs within it. This patch allow us 2 good things. A) we check that the server effectively supports GSSAPI auth before we try to use it. B) against IPA it substantially cuts delays when the server is offline because it uses a 5 second async timeout on the connection and doesn't try to do a slow synchronous kinit+sasl_bind if the server is not even available. --- server/providers/ldap/ldap_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/providers/ldap/ldap_common.h') diff --git a/server/providers/ldap/ldap_common.h b/server/providers/ldap/ldap_common.h index a6e77e90..c9d85786 100644 --- a/server/providers/ldap/ldap_common.h +++ b/server/providers/ldap/ldap_common.h @@ -30,6 +30,9 @@ struct sdap_id_ctx { struct sdap_options *opts; + /* what rootDSE returns */ + struct sysdb_attrs *rootDSE; + /* global sdap handler */ struct sdap_handle *gsh; -- cgit