mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 21:50:49 -05:00
ITS#8080 nssov: use old pwd if it's given
This commit is contained in:
parent
0200c6d92c
commit
2d9f33072b
1 changed files with 2 additions and 2 deletions
|
|
@ -808,8 +808,8 @@ int pam_pwmod(nssov_info *ni,TFILE *fp,Operation *op,uid_t calleruid)
|
|||
if (!BER_BVISEMPTY(&pi.dn))
|
||||
ber_printf(ber, "tO", LDAP_TAG_EXOP_MODIFY_PASSWD_ID,
|
||||
&pi.dn);
|
||||
/* supply old pwd only when end-user changing pwd */
|
||||
if (pi.ispwdmgr == 0)
|
||||
/* supply old pwd whenever it's given */
|
||||
if (!BER_BVISEMPTY(&pi.pwd))
|
||||
ber_printf(ber, "tO", LDAP_TAG_EXOP_MODIFY_PASSWD_OLD,
|
||||
&pi.pwd);
|
||||
if (!BER_BVISEMPTY(&npw))
|
||||
|
|
|
|||
Loading…
Reference in a new issue