diff options
author | Ondrej Hamada <ohamada@redhat.com> | 2012-04-03 15:16:58 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-04-17 16:22:49 +0200 |
commit | dc0132addaf2a26daaf5f3b52dffdcb1502a9c03 (patch) | |
tree | 7bef6749ba0f38d571885b57f4f252d59d5db0fa | |
parent | b15807a4edc99faa2139249d36fe620f3f4eeb72 (diff) | |
download | freeipa-dc0132addaf2a26daaf5f3b52dffdcb1502a9c03.tar.gz freeipa-dc0132addaf2a26daaf5f3b52dffdcb1502a9c03.tar.xz freeipa-dc0132addaf2a26daaf5f3b52dffdcb1502a9c03.zip |
Fix empty external member processing
Validation of external member was failing for empty strings because of
wrong condition.
https://fedorahosted.org/freeipa/ticket/2447
-rw-r--r-- | ipalib/plugins/baseldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 3e7923479..f185977e6 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -326,7 +326,7 @@ def add_external_pre_callback(membertype, ldap, dn, keys, options): def validate_host(hostname): validate_hostname(hostname, check_fqdn=False, allow_underscore=True) - if membertype in options: + if options.get(membertype): if membertype == 'host': validator = validate_host else: |