diff options
author | Ondrej Hamada <ohamada@redhat.com> | 2011-12-05 10:19:10 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-12-05 22:53:04 -0500 |
commit | 005b74d869ce240018985fd8abc752a5e200eb74 (patch) | |
tree | 1bf4cf08af0f8ac4c176a2b536b470763edfd249 /install/ui/entitle.js | |
parent | 181e6da9d8d9ee601989f845356a3c5b31d2720b (diff) | |
download | freeipa-005b74d869ce240018985fd8abc752a5e200eb74.tar.gz freeipa-005b74d869ce240018985fd8abc752a5e200eb74.tar.xz freeipa-005b74d869ce240018985fd8abc752a5e200eb74.zip |
Client install checks for nss_ldap
In order to check presence of nss_ldap or nss-pam-ldapd when installing
client with '--no-sssd' option there was added code into ipa-client-install.
Checking is based on existence of one of nss_ldap configuration files.
This configuration could be in 'etc/ldap.conf', '/etc/nss_ldap.conf' or
'/etc/libnss_ldap.conf'. Optionaly the nss_ldap could cooperate with
pam_ldap module and hence the presence of it is checked by looking for
'pam_ldap.conf' file. Existence of nss-pam-ldapd is checked against
existence of 'nslcd.conf' file. All this checking is done by function
nssldap_exists(). Because both modules are maintained by two different
functions, the function returns tuple containing return code and dictionary
structure - its key is name of target function and value is list of existing
configuration files. Files to check are specified inside the
nssldap_exists() function. nssldap_exists() also returns True if any of
the mandatory files was found, otherwise returns False.
In order to fit the returned values, the functions
configure_{ldap|nslcd}_conf() were slightly modified. They accept one more
parameter which is list of existing files. They are not checking existence
of above mentioned files anymore.
https://fedorahosted.org/freeipa/ticket/2063
Diffstat (limited to 'install/ui/entitle.js')
0 files changed, 0 insertions, 0 deletions