diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-11 13:10:27 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-16 09:38:29 -0500 |
commit | 6ec9dde85ced5e53256b417b7f2040e5464d2a62 (patch) | |
tree | 097a061852e695e658da72e9be8ed7d5e28d9280 /src/providers/ldap/ldap_common.h | |
parent | dcb7d0b2beebb72cbede4d712bde07c1e1fd334e (diff) | |
download | sssd-6ec9dde85ced5e53256b417b7f2040e5464d2a62.tar.gz sssd-6ec9dde85ced5e53256b417b7f2040e5464d2a62.tar.xz sssd-6ec9dde85ced5e53256b417b7f2040e5464d2a62.zip |
Do not attempt to use START_TLS on SSL connections
Not all LDAP servers are capable of handling dual-encryption with
both TLS and SSL.
https://fedorahosted.org/sssd/ticket/795
Diffstat (limited to 'src/providers/ldap/ldap_common.h')
-rw-r--r-- | src/providers/ldap/ldap_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index 3cbf3f600..9146da5a9 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -34,6 +34,10 @@ #define SSS_LDAP_SRV_NAME "ldap" +#define LDAP_STANDARD_URI "ldap://" +#define LDAP_SSL_URI "ldaps://" +#define LDAP_LDAPI_URI "ldapi://" + /* a fd the child process would log into */ extern int ldap_child_debug_fd; @@ -155,4 +159,7 @@ errno_t list_missing_attrs(TALLOC_CTX *mem_ctx, const char **expected_attrs, struct sysdb_attrs *recvd_attrs, char ***missing_attrs); + +bool sdap_is_secure_uri(const char *uri); + #endif /* _LDAP_COMMON_H_ */ |