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
b641c31f
Commit
b641c31f
authored
Mar 18, 2015
by
Côme Bernigaud
Committed by
Benoit Mortier
Mar 18, 2015
Browse files
Fixes #3397 Fixed ppolicy expiration detection
parent
9c77dcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
b641c31f
...
...
@@ -701,17 +701,22 @@ function ldap_login_user ($username, $password)
/* password check, bind as user with supplied password */
$ldap
->
disconnect
();
$ldap
=
new
LDAP
(
$ui
->
dn
,
$password
,
$config
->
current
[
'SERVER'
],
$ldap
=
new
ldapMultiplexer
(
new
LDAP
(
$ui
->
dn
,
$password
,
$config
->
current
[
'SERVER'
],
isset
(
$config
->
current
[
'LDAPFOLLOWREFERRALS'
])
&&
$config
->
current
[
'LDAPFOLLOWREFERRALS'
]
==
"TRUE"
,
isset
(
$config
->
current
[
'LDAPTLS'
])
&&
$config
->
current
[
'LDAPTLS'
]
==
"TRUE"
);
&&
$config
->
current
[
'LDAPTLS'
]
==
"TRUE"
)
)
;
if
(
!
$ldap
->
success
())
{
return
NULL
;
}
if
(
class_available
(
'ppolicyAccount'
))
{
$ldap
->
ls
(
'(objectClass=*)'
,
$config
->
current
[
'BASE'
]);
if
(
!
$ldap
->
success
())
{
msg_dialog
::
display
(
_
(
'Authentication error'
),
_
(
'It seems your user password have expired. Please use <a href="recovery.php">password recovery</a> to change it.'
),
ERROR_DIALOG
);
return
NULL
;
}
}
...
...
Write
Preview
Supports
Markdown
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