From 807402e4e9ac43d0fe7a7533698102a74e23844b Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 27 May 2011 11:44:16 +0200 Subject: Properly support IPv6 in LDAP URIs for IPA and LDAP providers Add utility function to return IP address as string Add a utility function to escape IPv6 address for use in URIs Use escaped IP addresses in LDAP provider Escape IPv6 IP addresses in the IPA provider https://fedorahosted.org/sssd/ticket/880 Fix bad merge We merged in a patch, but missed that it missed a dependency added by another earlier patch. --- src/util/sss_ldap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/sss_ldap.h') diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h index 14747dff..619bde64 100644 --- a/src/util/sss_ldap.h +++ b/src/util/sss_ldap.h @@ -22,9 +22,13 @@ #define __SSS_LDAP_H__ #include +#include int sss_ldap_control_create(const char *oid, int iscritical, struct berval *value, int dupval, LDAPControl **ctrlp); +inline const char * +sss_ldap_escape_ip_address(TALLOC_CTX *mem_ctx, int family, const char *addr); + #endif /* __SSS_LDAP_H__ */ -- cgit