Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
20fd4706
Commit
20fd4706
authored
Jan 04, 2011
by
Quanah Gibson-Mount
Browse files
ITS
#6620
parent
5fd445c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
20fd4706
...
...
@@ -49,6 +49,7 @@ OpenLDAP 2.4.24 Engineering
Fixed slapo-pcache callback freeing (ITS#6640)
Fixed slapo-pcache to ignore undefined attrs (ITS#6600)
Fixed slapo-ppolicy don't update opattrs on consumers (ITS#6608)
Fixed slapo-ppolicy to allow userPassword deletion (ITS#6620)
Fixed slapo-refint when last group member is deleted (ITS#6663)
Fixed slapo-refint with subtree rename (ITS#6730)
Fixed slapo-sssvlv initialization (ITS#6649)
...
...
servers/slapd/overlays/ppolicy.c
View file @
20fd4706
...
...
@@ -1969,23 +1969,26 @@ do_modify:
timestamp
.
bv_len
=
sizeof
(
timebuf
);
slap_timestamp
(
&
now
,
&
timestamp
);
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
mods
->
sml_desc
=
ad_pwdChangedTime
;
mods
=
NULL
;
if
(
pwmop
!=
LDAP_MOD_DELETE
)
{
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
mods
->
sml_op
=
LDAP_MOD_REPLACE
;
mods
->
sml_numvals
=
1
;
mods
->
sml_values
=
(
BerVarray
)
ch_malloc
(
2
*
sizeof
(
struct
berval
)
);
ber_dupbv
(
&
mods
->
sml_values
[
0
],
&
timestamp
);
BER_BVZERO
(
&
mods
->
sml_values
[
1
]
);
assert
(
!
BER_BVISNULL
(
&
mods
->
sml_values
[
0
]
)
);
}
else
{
}
else
if
(
attr_find
(
e
->
e_attrs
,
ad_pwdChangedTime
))
{
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
mods
->
sml_op
=
LDAP_MOD_DELETE
;
}
mods
->
sml_flags
=
SLAP_MOD_INTERNAL
;
mods
->
sml_next
=
NULL
;
modtail
->
sml_next
=
mods
;
modtail
=
mods
;
if
(
mods
)
{
mods
->
sml_desc
=
ad_pwdChangedTime
;
mods
->
sml_flags
=
SLAP_MOD_INTERNAL
;
mods
->
sml_next
=
NULL
;
modtail
->
sml_next
=
mods
;
modtail
=
mods
;
}
if
(
attr_find
(
e
->
e_attrs
,
ad_pwdGraceUseTime
))
{
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
...
...
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