summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.h
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-10-23 18:05:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-25 15:40:43 +0200
commit7534f145c7b376dd5320d7f73022923f087d49a9 (patch)
tree97bf9bb2b631637d33f930ad6c174a26abf05d93 /src/providers/ldap/ldap_common.h
parent85297c5f964d4426dd811be620f35f032040e720 (diff)
downloadsssd-7534f145c7b376dd5320d7f73022923f087d49a9.tar.gz
sssd-7534f145c7b376dd5320d7f73022923f087d49a9.tar.xz
sssd-7534f145c7b376dd5320d7f73022923f087d49a9.zip
AD: fall back to LDAP if GC is not available.
AD provider went offline if the Global Catalog could not be connected although there was also the LDAP port available. With this patch, AD provider will fall back to the LDAP port before going offline. New boolean flag ignore_mark_offline was added to structure sdap_id_conn_ctx If this flag is enabled function be_mark_offline will not be called. Resolves: https://fedorahosted.org/sssd/ticket/2104
Diffstat (limited to 'src/providers/ldap/ldap_common.h')
-rw-r--r--src/providers/ldap/ldap_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h
index 0d565fc63..fb9a34c60 100644
--- a/src/providers/ldap/ldap_common.h
+++ b/src/providers/ldap/ldap_common.h
@@ -52,6 +52,8 @@ struct sdap_id_conn_ctx {
struct sdap_id_conn_cache *conn_cache;
/* dlinklist pointers */
struct sdap_id_conn_ctx *prev, *next;
+ /* do not go offline, try another connection */
+ bool ignore_mark_offline;
};
struct sdap_id_ctx {