#1478 ldap_autofs_* options missing from /usr/share/sssd/sssd.api.d/sssd-ldap.conf

Created 4 years ago by jhrozek
Modified 4 months ago

https://bugzilla.redhat.com/show_bug.cgi?id=847845 (Fedora)

I'm trying to write code with SSSDConfig to add several options to my
sssd.conf:

ldap_autofs_map_object_class = nisMap
ldap_autofs_map_name = nisMapName
ldap_autofs_entry_object_class = nisObject
ldap_autofs_entry_key = cn
ldap_autofs_entry_value = nisMapEntry

Unfortunately the following code snippet fails:

#!/usr/bin/python

from SSSDConfig import SSSDConfig
a=SSSDConfig()
a.import_config('/tmp/sssd.conf')
a.activate_service('autofs')
b=a.get_domain('default')
b.add_provider('ldap', 'autofs')
b.set_option('ldap_autofs_map_object_class', 'nisMap')

with:
SSSDConfig.NoOptionError: Section [default] has no option
[ldap_autofs_map_object_class]

It appears that /usr/share/sssd/sssd.api.d/sssd-ldap.conf has a section for
"[provider/ldap/autofs]" but it contains no items at all.

master: ee2aa1814aaaaed7c6eaaa099cdb40de9bf0be65

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
owner: somebody => jhrozek
patch: 0 => 1
status: new => assigned
tests: => 0
testsupdated: => 0
upgrade: => 0

Fields changed

resolution: => fixed
status: assigned => closed

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.9.0 RC1

4 months ago

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.9.0 beta 7

Login to comment on this ticket.

defect

SSSD

0

1

https://bugzilla.redhat.com/show_bug.cgi?id=847845

cancel