directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jamieson (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DIRSERVER-2131) cannot log in with ads-pwdmustchange true
Date Thu, 10 Mar 2016 16:35:40 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15189504#comment-15189504
] 

Peter Jamieson edited comment on DIRSERVER-2131 at 3/10/16 4:35 PM:
--------------------------------------------------------------------

Am i naive in thinking that it just needs to check whether the user exists without doing a
lookup (and therefore, authenticating)?

I would say that the following is the root cause of the issue: -
{noformat}
INFO   | jvm 1    | 2016/03/10 09:19:15 |       at org.apache.directory.server.ldap.handlers.extended.PwdModifyHandler.modifyUserPassword(PwdModifyHandler.java:98)
{noformat}


was (Author: peterjam28):
Am i naive in thinking that it just needs to check whether the user exists without doing a
lookup (and therefore, authenticating)?


> cannot log in with ads-pwdmustchange true
> -----------------------------------------
>
>                 Key: DIRSERVER-2131
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2131
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M21
>         Environment: centos 7.
>            Reporter: Peter Jamieson
>
> If i modify the authentication policy to set ads-pwdmustchange to TRUE, when i log in,
i get: -
> {noformat}
> provisioning:root *#ssh user2@192.168.56.164
> Authorized users only. All activity may be monitored and reported.
> user2@192.168.56.164's password:
> Password expired. Change your password now.
> Last login: Mon Mar  7 15:46:02 2016 from provisioning
> Authorized users only. All activity may be monitored and reported.
> WARNING: Your password has expired.
> You must change your password now and login again!
> Changing password for user user2.
> Current Password:
> New password:
> Retype new password:
> Password change failed. Server message: Cannot find an entry for DN uid=user2,ou=users,dc=example,dc=com
> passwd: Authentication token manipulation error
> Connection to 192.168.56.164 closed.
> {noformat}
> and this appears in the apacheds.log: -
> [15:46:33] ERROR [org.apache.directory.server.ldap.handlers.extended.PwdModifyHandler]
- Cannot find an entry for DN uid=user2,ou=users,dc=example,dc=com, exception : password needs
to be reset before performing this operation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message