Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Maxime Besson
lemonldap-ng
Commits
7e1119a8
Commit
7e1119a8
authored
Mar 09, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mistake & typo (#1664)
parent
bf8040a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/Impersonation.pm
...g-portal/lib/Lemonldap/NG/Portal/Plugins/Impersonation.pm
+4
-4
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/Impersonation.pm
View file @
7e1119a8
...
...
@@ -37,13 +37,13 @@ sub init {
$self
->
{
rule
}
=
$rule
;
# Parse identity rule
$self
->
logger
->
debug
(
"
Impersonation identit
y
rule ->
"
$self
->
logger
->
debug
(
"
Impersonation identit
ies
rule ->
"
.
$self
->
conf
->
{
impersonationIdRule
}
);
$rule
=
$hd
->
buildSub
(
$hd
->
substitute
(
$self
->
conf
->
{
impersonationIdRule
}
)
);
unless
(
$rule
)
{
$self
->
error
(
"
Bad impersonation identit
y
rule ->
"
.
$hd
->
tsv
->
{
jail
}
->
error
);
"
Bad impersonation identit
ies
rule ->
"
.
$hd
->
tsv
->
{
jail
}
->
error
);
return
0
;
}
$self
->
{
idRule
}
=
$rule
;
...
...
@@ -150,13 +150,13 @@ sub _userDatas {
return
$req
->
error
(
$error
);
}
# Check identit
y
rule
# Check identit
ies
rule
unless
(
$self
->
idRule
->
(
$req
,
$req
->
sessionInfo
)
)
{
$self
->
userLogger
->
warn
(
'
Impersonation requested for an unvalid user (
'
.
$req
->
{
user
}
.
"
)
"
);
$req
->
sessionInfo
=
{};
$req
->
{
sessionInfo
}
=
{};
$self
->
logger
->
debug
('
Identity not authorized
');
return
$req
->
error
(
PE_BADCREDENTIALS
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment