Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-remoteuserssl
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-remoteuserssl
Commits
36b2683e
Commit
36b2683e
authored
6 years ago
by
Pavel Vyskočil
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the module name - used lowerCase
parent
72fb563d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
composer.json
+1
-1
1 addition, 1 deletion
composer.json
lib/Auth/Source/RemoteUserSSL.php
+3
-3
3 additions, 3 deletions
lib/Auth/Source/RemoteUserSSL.php
templates/RemoteUserSSLerror.php
+3
-3
3 additions, 3 deletions
templates/RemoteUserSSLerror.php
with
8 additions
and
7 deletions
CHANGELOG.md
+
1
−
0
View file @
36b2683e
...
...
@@ -2,6 +2,7 @@
All notable changes to this project will be documented in this file.
## [Unreleased]
-
First release
...
...
This diff is collapsed.
Click to expand it.
composer.json
+
1
−
1
View file @
36b2683e
{
"name"
:
"cesnet/simplesamlphp-module-remote
U
ser
SSL
"
,
"name"
:
"cesnet/simplesamlphp-module-remote
u
ser
ssl
"
,
"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"
,
...
...
This diff is collapsed.
Click to expand it.
lib/Auth/Source/RemoteUserSSL.php
+
3
−
3
View file @
36b2683e
...
...
@@ -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
(
'remote
U
ser
SSL
: no matching user found in LDAP for login='
.
$login
);
\SimpleSAML\Logger
::
warning
(
'remote
u
ser
ssl
: no matching user found in LDAP for login='
.
$login
);
$this
->
authFailed
(
$state
);
assert
(
false
);
// should never be reached
return
;
}
\SimpleSAML\Logger
::
info
(
'
authR
emote
U
ser
SSL
: '
.
$dn
);
\SimpleSAML\Logger
::
info
(
'
r
emote
u
ser
ssl
: '
.
$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
,
'remote
U
ser
SSL
:RemoteUserSSLerror.php'
);
$t
=
new
SimpleSAML_XHTML_Template
(
$config
,
'remote
u
ser
ssl
:RemoteUserSSLerror.php'
);
$t
->
data
[
'loginurl'
]
=
\SimpleSAML\Utils\HTTP
::
getSelfURL
();
if
(
isset
(
$state
[
'remoteUserSSL.error'
]))
{
...
...
This diff is collapsed.
Click to expand it.
templates/RemoteUserSSLerror.php
+
3
−
3
View file @
36b2683e
<?php
$this
->
data
[
'header'
]
=
$this
->
t
(
'{remote
U
ser
SSL
:RemoteUserSSLerror:header}'
);
$this
->
data
[
'header'
]
=
$this
->
t
(
'{remote
u
ser
ssl
: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
(
'{remote
U
ser
SSL
:RemoteUserSSLerror:header}'
);
?>
</strong></p>
<p>
<?php
echo
$this
->
t
(
'{remote
U
ser
SSL
:RemoteUserSSLerror:text}'
);
?>
</p>
<p><strong>
<?php
echo
$this
->
t
(
'{remote
u
ser
ssl
:RemoteUserSSLerror:header}'
);
?>
</strong></p>
<p>
<?php
echo
$this
->
t
(
'{remote
u
ser
ssl
:RemoteUserSSLerror:text}'
);
?>
</p>
</div>
<?php
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment