summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorOndrej Hamada <ohamada@redhat.com>2012-04-03 15:16:58 +0200
committerMartin Kosek <mkosek@redhat.com>2012-04-17 16:22:37 +0200
commit6f7224f252775c01e13c281a83e555b627834ffd (patch)
tree8b3d53c3373acdc18d9b0568023ba4ff784f68a3 /ipalib
parentc79ea41a80129e6b8f1c48fe7457eeaf11caf6c7 (diff)
downloadfreeipa-6f7224f252775c01e13c281a83e555b627834ffd.tar.gz
freeipa-6f7224f252775c01e13c281a83e555b627834ffd.tar.xz
freeipa-6f7224f252775c01e13c281a83e555b627834ffd.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
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/baseldap.py2
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: