Skip to content
Snippets Groups Projects
Commit 36b2683e authored by Pavel Vyskočil's avatar Pavel Vyskočil
Browse files

Fixed the module name - used lowerCase

parent 72fb563d
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
All notable changes to this project will be documented in this file.
## [Unreleased]
- First release
......
{
"name": "cesnet/simplesamlphp-module-remoteUserSSL",
"name": "cesnet/simplesamlphp-module-remoteuserssl",
"description": "The module is just getting result of the Basic authentication or SSL authentication done by Apache web server.",
"type": "simplesamlphp-module",
"version": "1.0.0-dev",
......
......@@ -61,14 +61,14 @@ class sspmod_remoteUserSSL_Auth_Source_RemoteUserSSL extends SimpleSAML_Auth_Sou
$dn = $this->ldapcf->searchfordn(null, $login, true);
if ($dn === null) {
\SimpleSAML\Logger::warning('remoteUserSSL: no matching user found in LDAP for login='.$login);
\SimpleSAML\Logger::warning('remoteuserssl: no matching user found in LDAP for login='.$login);
$this->authFailed($state);
assert(false); // should never be reached
return;
}
\SimpleSAML\Logger::info('authRemoteUserSSL: '.$dn);
\SimpleSAML\Logger::info('remoteuserssl: '.$dn);
$attributes = $this->ldapcf->getAttributes($dn);
assert(is_array($attributes));
$state['Attributes'] = $attributes;
......@@ -103,7 +103,7 @@ class sspmod_remoteUserSSL_Auth_Source_RemoteUserSSL extends SimpleSAML_Auth_Sou
public function authFailed(&$state) {
$config = SimpleSAML_Configuration::getInstance();
$t = new SimpleSAML_XHTML_Template($config, 'remoteUserSSL:RemoteUserSSLerror.php');
$t = new SimpleSAML_XHTML_Template($config, 'remoteuserssl:RemoteUserSSLerror.php');
$t->data['loginurl'] = \SimpleSAML\Utils\HTTP::getSelfURL();
if (isset($state['remoteUserSSL.error'])) {
......
<?php
$this->data['header'] = $this->t('{remoteUserSSL:RemoteUserSSLerror:header}');
$this->data['header'] = $this->t('{remoteuserssl:RemoteUserSSLerror:header}');
$this->includeAtTemplateBase('includes/header.php');
......@@ -16,8 +16,8 @@ if (isset($this->data['errorcode']) && $this->data['errorcode'] !== null) {
?>
<div class="alert alert-warning">
<p><strong><?php echo $this->t('{remoteUserSSL:RemoteUserSSLerror:header}'); ?></strong></p>
<p><?php echo $this->t('{remoteUserSSL:RemoteUserSSLerror:text}'); ?></p>
<p><strong><?php echo $this->t('{remoteuserssl:RemoteUserSSLerror:header}'); ?></strong></p>
<p><?php echo $this->t('{remoteuserssl:RemoteUserSSLerror:text}'); ?></p>
</div>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment