Ticket #1478 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

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

Reported by: jhrozek Owned by: jhrozek
Priority: major Milestone: SSSD 1.9.0 beta 7
Component: SSSD Version:
Keywords: Cc:
Blocked By: Blocking:
Tests Updated: no Coverity Bug:
Patch Submitted: yes Red Hat Bugzilla: 847845
Design link:
Feature Milestone:
Design review: Fedora test page:
Chosen: Candidate to push out:
Release Notes:

Description

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.

Change History

comment:1 Changed 21 months ago by jhrozek

  • Tests Updated unset
  • Owner changed from somebody to jhrozek
  • Status changed from new to assigned
  • upgrade set to 0
  • Patch Submitted set
  • tests set to 0

comment:2 Changed 21 months ago by jhrozek

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 21 months ago by jhrozek

  • Milestone changed from NEEDS_TRIAGE to SSSD 1.9.0 RC1
Note: See TracTickets for help on using tickets.