Expired Password message not displaying. IdP v5
Lipscomb, Gary
glipscomb at csu.edu.au
Fri Nov 15 01:15:38 UTC 2024
Hi List,
openLDAP v2.5.18 LTS (packaged Symas)
To get the Expired Password and Locked Password messages to display I had to change the sequence of the entry keys
in <util:map id="shibboleth.authn.Password.ClassifiedMessageMap"> in file ../conf/authn/password-authn-config.xml
so that <entry key="InvalidPassword"> is towards the end of the list instead of after <entry key="UnknownUsername">
The sequence is critical.
I did this since the error message from ldaptive contains INVALID_CREDENTIALS in all 3 cases and it stops at the first match in the MessageMap
Wrong password
org.ldaptive.LdapException: INVALID_CREDENTIALS:
Expired password
org.ldaptive.LdapException: PASSWORD_EXPIRED:INVALID_CREDENTIALS:
Locked Account
org.ldaptive.LdapException: ACCOUNT_LOCKED:INVALID_CREDENTIALS:
This worked OK in Identity Provider 4 without changing the order but something has changed in Identity Provider 5
Both systems are using the same openLDAP instance.
<!--
Define entries here to map error messages detected by validation actions and classify them as particular
kinds of errors for use in your templates and as events in flows.
Keys are events to signal, values are error codes.
-->
<util:map id="shibboleth.authn.Password.ClassifiedMessageMap">
<entry key="UnknownUsername">
<list>
<value>NoCredentials</value>
<value>CLIENT_NOT_FOUND</value>
<value>Client not found</value>
<value>Cannot get kdc for realm</value>
<value>Client not found in Kerberos database</value>
<value>DN_RESOLUTION_FAILURE</value>
<value>Cannot authenticate dn, invalid dn</value>
<value>Cannot authenticate dn, invalid credential</value>
<value>AcceptSecurityContext error, data 525</value>
</list>
</entry>
<entry key="AccountLocked">
<list>
<value>Clients credentials have been revoked</value>
<value>AcceptSecurityContext error, data 775</value>
<value>ACCOUNT_LOCKED</value>
</list>
</entry>
<entry key="AccountDisabled">
<list>
<value>AcceptSecurityContext error, data 533</value>
</list>
</entry>
<entry key="ExpiredPassword">
<list>
<value>PASSWORD_EXPIRED</value>
<value>CLIENT KEY EXPIRED</value>
<value>AcceptSecurityContext error, data 532</value>
<value>AcceptSecurityContext error, data 773</value>
<value>AcceptSecurityContext error, data 701</value>
</list>
</entry>
<entry key="InvalidPassword">
<list>
<value>InvalidCredentials</value>
<value>PREAUTH_FAILED</value>
<value>INVALID_CREDENTIALS</value>
<value>Checksum failed</value>
<value>Integrity check on decrypted field failed</value>
<value>Pre-authentication information was invalid</value>
<value>Key bytes cannot be null</value>
<value>AcceptSecurityContext error, data 52e</value>
</list>
</entry>
<entry key="ExpiringPassword">
<list>
<value>ACCOUNT_WARNING</value>
</list>
</entry>
</util:map>
regards
Gary
Gary Lipscomb
Technical Officer, Systems
IT Infrastructure & Security | Division of Information Technology
________________________________
From: Cantor, Scott <cantor.2 at osu.edu>
Sent: Friday, 15 November 2024 00:03
To: Shib Users <users at shibboleth.net>
Cc: Lipscomb, Gary <glipscomb at csu.edu.au>
Subject: Re: Expired Password message not displaying. IdP v5
> Is there a way to tell if the
> idp.authn.LDAP.usePasswordPolicy = true is active.
Properties are logged at startup on either INFO or DEBUG, can't recall which.
-- Scott
[Charles Sturt]<https://www.csu.edu.au>
________________________________
LEGAL NOTICE
This email (including correspondence comprising an email chain and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone.
Any confidentiality is not waived or lost by reason of mistaken delivery. Any email should be checked for viruses and defects before opening. Charles Sturt University does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with Charles Sturt University may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at Charles Sturt University. The views expressed in this email are not necessarily those of Charles Sturt University.
Charles Sturt University in Australia<https://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551). Charles Sturt University - TEQSA Provider Identification: PRV12018 (Australian University). CRICOS Provider: 00005F.
Consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20241115/9c9fc07d/attachment.htm>
More information about the users
mailing list