https://fedorahosted.org/freeipa/ticket/2063
In order to check presence of nss_ldap when installing client with '--no-sssd' option there was added code into ipa-client-install. Check is base on existence of nss_ldap configuration files. This configuration could be in 'etc/ldap.conf', '/etc/nss_ldap.conf' or '/etc/libnss_ldap.conf'. Presence of any of these files is considered as success otherwise failure.
-- Regards, Ondrej Hamada FreeIPA team jabber:[email protected] IRC: ohamada
From 741e6da0531986ed32f4e3ef0fbb53e5fbd5ee44 Mon Sep 17 00:00:00 2001 From: Ondrej Hamada <[email protected]> Date: Fri, 11 Nov 2011 14:03:30 +0100 Subject: [PATCH] Client install checks for nss_ldap In order to check presence of nss_ldap when installing client with '--no-sssd' option there was added code into ipa-client-install. Check is base on existence of nss_ldap configuration files. This configuration could be in 'etc/ldap.conf', '/etc/nss_ldap.conf' or '/etc/libnss_ldap.conf'. Presence of any of these files is considered as success otherwise failure and installation is aborted with proper error message. https://fedorahosted.org/freeipa/ticket/2063 --- ipa-client/ipa-install/ipa-client-install | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index cdea6dbe6fbbdca608ad8e858cf9fa042f7de9d1..362f167307189fab746478b2362dfe685241a4ee 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -870,6 +870,17 @@ def install(options, env, fstore, statestore): print 'Invalid hostname \'%s\', must be lower-case.' % hostname return CLIENT_INSTALL_ERROR + # When --no-sssd option set, there must be nss_ldap module installed. + if not options.sssd: + nss_ldap = False + for filename in ['/etc/ldap.conf', '/etc/nss_ldap.conf', '/etc/libnss-ldap.conf']: + if file_exists(filename): + nss_ldap = True + break + if not nss_ldap: + print >>sys.stderr, "'nss_ldap' not installed" + return CLIENT_INSTALL_ERROR + # Create the discovery instance ds = ipadiscovery.IPADiscovery() -- 1.7.6.4
_______________________________________________ Freeipa-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/freeipa-devel
