mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove use_ldap2 constant.
This commit is contained in:
parent
ebdebe802d
commit
8c7883364c
@ -109,7 +109,6 @@ DEFAULT_CONFIG = (
|
|||||||
('verbose', False),
|
('verbose', False),
|
||||||
('debug', False),
|
('debug', False),
|
||||||
('mode', 'production'),
|
('mode', 'production'),
|
||||||
('use_ldap2', False),
|
|
||||||
|
|
||||||
# CA plugin:
|
# CA plugin:
|
||||||
('ca_host', object), # Set in Env._finalize_core()
|
('ca_host', object), # Set in Env._finalize_core()
|
||||||
|
@ -473,21 +473,13 @@ class Command(HasParam):
|
|||||||
return dict(self.__attributes_2_entry(kw))
|
return dict(self.__attributes_2_entry(kw))
|
||||||
|
|
||||||
def __attributes_2_entry(self, kw):
|
def __attributes_2_entry(self, kw):
|
||||||
if self.api.env.use_ldap2:
|
for name in self.params:
|
||||||
for name in self.params:
|
if self.params[name].attribute and name in kw:
|
||||||
if self.params[name].attribute and name in kw:
|
value = kw[name]
|
||||||
value = kw[name]
|
if isinstance(value, tuple):
|
||||||
if isinstance(value, tuple):
|
yield (name, [v for v in value])
|
||||||
yield (name, [v for v in value])
|
else:
|
||||||
else:
|
yield (name, kw[name])
|
||||||
yield (name, kw[name])
|
|
||||||
else:
|
|
||||||
for name in self.params:
|
|
||||||
if self.params[name].attribute and name in kw:
|
|
||||||
if type(kw[name]) is tuple:
|
|
||||||
yield (name, [str(value) for value in kw[name]])
|
|
||||||
else:
|
|
||||||
yield (name, str(kw[name]))
|
|
||||||
|
|
||||||
def params_2_args_options(self, **params):
|
def params_2_args_options(self, **params):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user