Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
d1799a50
Commit
d1799a50
authored
Feb 23, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Feb 24, 2021
Browse files
ITS#7596 Report correct number of grace authentications left
parent
3925b8e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
d1799a50
...
...
@@ -703,7 +703,7 @@ create_passcontrol( Operation *op, int exptime, int grace, LDAPPasswordPolicyErr
}
ber_printf
(
ber
,
"tO"
,
PPOLICY_WARNING
,
&
bv
);
ch_free
(
bv
.
bv_val
);
}
else
if
(
grace
>
0
)
{
}
else
if
(
grace
>
=
0
)
{
ber_init2
(
b2
,
NULL
,
LBER_USE_DER
);
ber_printf
(
b2
,
"ti"
,
PPOLICY_GRACE
,
grace
);
rc
=
ber_flatten2
(
b2
,
&
bv
,
1
);
...
...
@@ -1658,8 +1658,10 @@ grace:
Debug
(
LDAP_DEBUG_ANY
,
"ppolicy_bind: Entry %s has an expired password: %d grace logins
\n
"
,
e
->
e_name
.
bv_val
,
ngut
);
if
(
ngut
<
1
)
{
ngut
--
;
if
(
ngut
<
0
)
{
ppb
->
pErr
=
PP_passwordExpired
;
rs
->
sr_err
=
LDAP_INVALID_CREDENTIALS
;
goto
done
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment