[yast-commit] r63599 - /branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp
Author: jsuchome Date: Fri Mar 18 16:06:47 2011 New Revision: 63599 URL: http://svn.opensuse.org/viewcvs/yast?rev=63599&view=rev Log: use crypt for pam_password if exop is not supported (bnc#546398) Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp?rev=63599&r1=63598&r2=63599&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp Fri Mar 18 16:06:47 2011 @@ -718,6 +718,17 @@ nss_base_group = ReadLdapConfEntry ("nss_base_group", base_dn); pam_password = ReadLdapConfEntry ("pam_password", "exop"); + // check if Password Modify extenstion is supported (bnc#546398, c#6) + if (pam_password == "exop") + { + if (0 == SCR::Execute (.target.bash, "ldapsearch -x -b '' -s base") && // LDAP server accessible + 0 != SCR::Execute (.target.bash, + "ldapsearch -x -b '' -s base supportedExtension | grep -i '^supportedExtension:[[:space:]]*1.3.6.1.4.1.4203.1.11.1'")) + { + y2warning ("'exop' value not supported on server, using 'crypt'"); + pam_password = "crypt"; + } + } // read sysconfig values base_config_dn = (string)SCR::Read (.sysconfig.ldap.BASE_CONFIG_DN); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn2.opensuse.org