[yast-commit] r63696 - /branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm
Author: rhafer Date: Fri Apr 1 16:26:42 2011 New Revision: 63696 URL: http://svn.opensuse.org/viewcvs/yast?rev=63696&view=rev Log: Write CA cert option to ldap.conf (bnc#619549) Modified: branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm Modified: branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm?rev=63696&r1=63695&r2=63696&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-server/src/LdapServer.pm Fri Apr 1 16:26:42 2011 @@ -811,6 +811,13 @@ ["localhost"]); SCR->Write(".etc.ldap_conf.value.\"/etc/openldap/ldap.conf\".base", [$ldapconf_base]); + my $tls = $self->ReadTlsConfig(); + if ( ref($tls) eq "HASH" && $tls->{'caCertFile'} ne "" ) + { + SCR->Write(".etc.ldap_conf.value.\"/etc/openldap/ldap.conf\".tls_cacert", + [$tls->{'caCertFile'}]); + } + SCR->Write(".etc.ldap_conf", "force" ); } if (! $usesBackConfig ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rhafer@svn2.opensuse.org