diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-08-22 15:16:26 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-23 18:33:39 +0200 |
commit | b096321a5a02dda0b6b71ba0f9c4d8feacd979e4 (patch) | |
tree | 2c540d0dfdf7a4f84d052f85d9b8e519bf8ebc6a /src/providers/ipa | |
parent | 21d485184df986e1a123f70c689517386e51a5ce (diff) | |
download | sssd-b096321a5a02dda0b6b71ba0f9c4d8feacd979e4.tar.gz sssd-b096321a5a02dda0b6b71ba0f9c4d8feacd979e4.tar.bz2 sssd-b096321a5a02dda0b6b71ba0f9c4d8feacd979e4.zip |
Fix: IPv6 address with square brackets doesn't work.
https://fedorahosted.org/sssd/ticket/1365
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c index 2e504738..fe7ac91c 100644 --- a/src/providers/ipa/ipa_common.c +++ b/src/providers/ipa/ipa_common.c @@ -841,6 +841,13 @@ errno_t ipa_servers_init(struct be_ctx *ctx, continue; } + /* It could be ipv6 address in square brackets. Remove + * the brackets if needed. */ + ret = remove_ipv6_brackets(list[i]); + if (ret != EOK) { + goto done; + } + ret = be_fo_add_server(ctx, "IPA", list[i], 0, NULL, primary); if (ret && ret != EEXIST) { DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to add server\n")); |