Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49571 - /trunk/ldap-server/src/tree_structure.ycp
  • From: rhafer@xxxxxxxxxxxxxxxx
  • Date: Fri, 01 Aug 2008 12:20:05 -0000
  • Message-id: <20080801122006.110C1272B7@xxxxxxxxxxxxxxxx>
Author: rhafer
Date: Fri Aug 1 14:20:05 2008
New Revision: 49571

URL: http://svn.opensuse.org/viewcvs/yast?rev=49571&view=rev
Log:
Check ssl cert file for existance and error out if they don't exist

Modified:
trunk/ldap-server/src/tree_structure.ycp

Modified: trunk/ldap-server/src/tree_structure.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/tree_structure.ycp?rev=49571&r1=49570&r2=49571&view=diff
==============================================================================
--- trunk/ldap-server/src/tree_structure.ycp (original)
+++ trunk/ldap-server/src/tree_structure.ycp Fri Aug 1 14:20:05 2008
@@ -386,6 +386,22 @@
"crlCheck" : 0,
"verifyClient" : 0
];
+ if ( SCR::Read(.target.size, tlsSettings["caCertFile"]:"") <= 0)
+ {
+ callback_error = _("CA Certificate File does not exist");
+ return false;
+ }
+ if ( SCR::Read(.target.size, tlsSettings["certFile"]:"") <= 0)
+ {
+ callback_error = _("Certificate File does not exist");
+ return false;
+ }
+ if ( SCR::Read(.target.size, tlsSettings["certKeyFile"]:"") <= 0)
+ {
+ callback_error = _("Certificate Key File does not exist");
+ return false;
+ }
+
LdapServer::SetTlsConfig( tlsSettings );
}
else

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages