#3733 ipa-client-automount should not configure nsswitch.conf manually
Closed: Fixed None Opened 10 years ago by mkosek.

ipa-client-automount currently configures automount in nsswitch.conf manually:

def configure_nsswitch(fstore, options):
    """
    Point automount to ldap in nsswitch.conf
    """
    fstore.backup_file(NSSWITCH_CONF)

    conf = ipachangeconf.IPAChangeConf("IPA Installer")
    conf.setOptionAssignment(':')

    if options.sssd:
        nss_value = ' sss files'
    else:
        nss_value = ' ldap files'

    opts = [{'name':'automount', 'type':'option', 'action':'set', 'value':nss_value},
            {'name':'empty', 'type':'empty'}]

    conf.changeConf(NSSWITCH_CONF, opts)

    print "Configured %s" % NSSWITCH_CONF

However, automount already configures that line for us - when authconfig's --enablesssd option is used and /usr/lib64/sssd/modules/libsss_autofs.so exists, it adds sss to automount line.


See related conversation on freeipa-users - files source should have precedence over sss.

master:

  • 9810283 ipa-client-automount should not configure nsswitch.conf manually

Metadata Update from @mkosek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.0 Backlog

7 years ago

Login to comment on this ticket.

Metadata