summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ldap.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-27 11:44:16 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-06-02 15:23:33 -0400
commit807402e4e9ac43d0fe7a7533698102a74e23844b (patch)
tree4b434d4f4613412b4a5280697fe5f687974b04f4 /src/util/sss_ldap.h
parent9e082d13d8b1b66092747db8454de3a0d50ce51f (diff)
downloadsssd-807402e4e9ac43d0fe7a7533698102a74e23844b.tar.gz
sssd-807402e4e9ac43d0fe7a7533698102a74e23844b.tar.xz
sssd-807402e4e9ac43d0fe7a7533698102a74e23844b.zip
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.
Diffstat (limited to 'src/util/sss_ldap.h')
-rw-r--r--src/util/sss_ldap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h
index 14747dffc..619bde641 100644
--- a/src/util/sss_ldap.h
+++ b/src/util/sss_ldap.h
@@ -22,9 +22,13 @@
#define __SSS_LDAP_H__
#include <ldap.h>
+#include <talloc.h>
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__ */