#1478 ldap_autofs_* options missing from /usr/share/sssd/sssd.api.d/sssd-ldap.conf
Closed: Fixed Opened by jhrozek.

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

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

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2520

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata