Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
b739554b
Commit
b739554b
authored
Mar 24, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Mar 25, 2014
Browse files
Fixes
#3072
Password hook not block the password change if you logged in fd-admin
parent
c1d2cf23
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/admin/users/class_userManagement.inc
View file @
b739554b
...
...
@@ -314,16 +314,6 @@ class userManagement extends management
return
$smarty
->
fetch
(
get_template_path
(
'password.tpl'
,
TRUE
));
}
// Change password
if
(
isset
(
$this
->
force_hash_type
[
$this
->
dn
]))
{
if
(
!
change_password
(
$this
->
dn
,
$new_password
,
0
,
$this
->
force_hash_type
[
$this
->
dn
]))
{
return
$smarty
->
fetch
(
get_template_path
(
'password.tpl'
,
TRUE
));
}
}
else
{
if
(
!
change_password
(
$this
->
dn
,
$new_password
))
{
return
$smarty
->
fetch
(
get_template_path
(
'password.tpl'
,
TRUE
));
}
}
if
(
$this
->
config
->
get_cfg_value
(
"passwordHook"
)
!=
""
)
{
$ldap
=
$this
->
config
->
get_ldap_link
();
$ldap
->
cd
(
$this
->
config
->
current
[
'BASE'
]);
...
...
@@ -342,6 +332,17 @@ class userManagement extends management
}
}
// Change password
if
(
isset
(
$this
->
force_hash_type
[
$this
->
dn
]))
{
if
(
!
change_password
(
$this
->
dn
,
$new_password
,
0
,
$this
->
force_hash_type
[
$this
->
dn
]))
{
return
$smarty
->
fetch
(
get_template_path
(
'password.tpl'
,
TRUE
));
}
}
else
{
if
(
!
change_password
(
$this
->
dn
,
$new_password
))
{
return
$smarty
->
fetch
(
get_template_path
(
'password.tpl'
,
TRUE
));
}
}
// The user has to change his password on next login
// - We are going to update samba and posix attributes here, to enforce
...
...
Jonathan Swaelens
@jswaelens
mentioned in issue
#1039 (closed)
·
Sep 02, 2017
mentioned in issue
#1039 (closed)
mentioned in issue #1039
Toggle commit list
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