Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

How can I obtain information indicating "Password Expired"? #959

Open
taru3004 opened this issue Dec 1, 2023 · 1 comment
Open

How can I obtain information indicating "Password Expired"? #959

taru3004 opened this issue Dec 1, 2023 · 1 comment

Comments

@taru3004
Copy link

taru3004 commented Dec 1, 2023

Due to the 3.0.6 update, I conducted a password policy test, and I referred to the code at the following URL:
issue-946.test.js
Response Control (for Password Policy)

For expired password accounts, only an "Invalid Credentials" message is displayed, and the cause is not indicated.

Result when executed as a command:

ldapwhoami -H ldapi:/// -x -D <USER_DN> -e ppolicy -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49); Password expired   ## <-- Here !!

Result from ldapjs:

LDAPError [InvalidCredentialsError]: Invalid Credentials
    at messageCallback (/home/kim.js/myTest/ldap/node_modules/ldapjs/lib/client/client.js:1267:45)
    at Parser.onMessage (/home/kim.js/myTest/ldap/node_modules/ldapjs/lib/client/client.js:925:14)
    at Parser.emit (node:events:527:28)
    at Parser.write (/home/kim.js/myTest/ldap/node_modules/ldapjs/lib/messages/parser.js:135:8)
    at Socket.onData (/home/kim.js/myTest/ldap/node_modules/ldapjs/lib/client/client.js:875:22)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
  lde_message: 'Invalid Credentials',
  lde_dn: null
}

How can I obtain information indicating "Password Expired"?

@jsumners
Copy link
Member

jsumners commented Dec 1, 2023

Possibly a dupe of, or at least tied to, #878

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants