Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
b6ec428a
Commit
b6ec428a
authored
Aug 20, 2011
by
Pierangelo Masarati
Committed by
Quanah Gibson-Mount
Oct 06, 2011
Browse files
according to draft-behera, this attribute only affects password modifies by self (ITS#7021)
parent
42314730
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
b6ec428a
...
...
@@ -1788,7 +1788,10 @@ ppolicy_modify( Operation *op, SlapReply *rs )
if
(
be_isroot
(
op
))
goto
do_modify
;
if
(
!
pp
.
pwdAllowUserChange
)
{
/* NOTE: according to draft-behera-ldap-password-policy
* pwdAllowUserChange == FALSE must only prevent pwd changes
* by the user the pwd belongs to (ITS#7021) */
if
(
!
pp
.
pwdAllowUserChange
&&
dn_match
(
&
op
->
o_req_ndn
,
&
op
->
o_ndn
))
{
rs
->
sr_err
=
LDAP_INSUFFICIENT_ACCESS
;
rs
->
sr_text
=
"User alteration of password is not allowed"
;
pErr
=
PP_passwordModNotAllowed
;
...
...
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