summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-06-24 16:54:09 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-24 16:54:09 +0200
commit591e838584807b0bfb0ffacca3678d62eaee7cd3 (patch)
tree6ed8dec106954fcf8d8d64283d2fcb8e96f682a3
parentb525aa57f138f67624038c4a1bdeca9042bcf2f0 (diff)
downloadsssd-sssd-1-5.zip
sssd-sssd-1-5.tar.gz
sssd-sssd-1-5.tar.xz
Broken inlining?sssd-1-5
-rw-r--r--src/providers/ipa/ipa_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index 3176e54..79bfd1f 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -558,6 +558,13 @@ done:
return ret;
}
+static const char *
+sss_ldap_escape_ip_address(TALLOC_CTX *mem_ctx, int family, const char *addr)
+{
+ return family == AF_INET6 ? talloc_asprintf(mem_ctx, "[%s]", addr) :
+ talloc_strdup(mem_ctx, addr);
+}
+
static void ipa_resolve_callback(void *private_data, struct fo_server *server)
{
TALLOC_CTX *tmp_ctx = NULL;