diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-09-10 10:20:24 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-11-05 13:56:55 +0100 |
commit | df5f4ee81d1aff1122dd92ab1b56eb335294c3a7 (patch) | |
tree | b112b429a896789029038bd3e25218495b647d56 /ipapython/ipautil.py | |
parent | 989493979da3ef1136a9b346cace5689ef22eed8 (diff) | |
download | freeipa-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.tar.gz freeipa-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.tar.xz freeipa-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.zip |
Turn LDAPEntry.single_value into a dictionary-like property.
This change makes single_value consistent with the raw property.
https://fedorahosted.org/freeipa/ticket/3521
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r-- | ipapython/ipautil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 13d242792..7665b09d1 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -895,7 +895,7 @@ def get_ipa_basedn(conn): contexts = entry['namingcontexts'] if 'defaultnamingcontext' in entry: # If there is a defaultNamingContext examine that one first - default = entry.single_value('defaultnamingcontext') + default = entry.single_value['defaultnamingcontext'] if default in contexts: contexts.remove(default) contexts.insert(0, default) @@ -908,7 +908,7 @@ def get_ipa_basedn(conn): root_logger.debug("LDAP server did not return info attribute to " "check for IPA version") continue - info = entry.single_value('info').lower() + info = entry.single_value['info'].lower() if info != IPA_BASEDN_INFO: root_logger.debug("Detected IPA server version (%s) did not match the client (%s)" \ % (info, IPA_BASEDN_INFO)) |