diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-02-10 12:54:49 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-24 09:40:40 +0100 |
commit | 2cf58937615c28527d1c78f883dad8726331c6df (patch) | |
tree | f1d696b248406bb2daa50c4e4c0e9a275bebf035 /ipaserver | |
parent | 1816643a43802ca2a353930cb2bbb2781b39c80f (diff) | |
download | freeipa-2cf58937615c28527d1c78f883dad8726331c6df.tar.gz freeipa-2cf58937615c28527d1c78f883dad8726331c6df.tar.xz freeipa-2cf58937615c28527d1c78f883dad8726331c6df.zip |
Global DNS options
Implement API for DNS global options supported in bind-dyndb-ldap.
Currently, global DNS option overrides any relevant option in
named.conf. Thus they are not filled by default they are left as
a possibility for a user.
Bool encoding had to be fixed so that Bool LDAP attribute can also
be deleted and not just set to True or False.
https://fedorahosted.org/freeipa/ticket/2216
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 6ed21217..0a76670d 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -67,10 +67,11 @@ SASL_AUTH = _ldap_sasl.sasl({}, 'GSSAPI') # OID 1.3.6.1.4.1.1466.115.121.1.7 (Boolean) syntax encoding def _encode_bool(self, value): def encode_bool_value(value): + if value is None: + return None if value: return u'TRUE' - else: - return u'FALSE' + return u'FALSE' if type(value) in (tuple, list): return tuple(encode_bool_value(v) for v in value) |