Resetting an Expired Password

Hello All

I am not sure if this is the right forum so please let me know if not.

I currently have an ASP page that authenticates users against a Sun ONE LDAP server. The problem we seem to have is that when a users password expires, we cannot bind anymore. The easiest way for us to sort this would be to get the "Password has expired" return code but I cannot work out how to do this in ASP.

Or is the problem deeper than this and once a password has expired a user cannot reset it? Do we need to change something else to allow a user to bind with their old password to reset their password. Remembering we are trying to do this all with asp.net.

Thanks

D

[693 byte] By [DougieWoo1a] at [2007-11-26 18:27:12]
# 1

Don't know anything about ASP but the error code you'll get back from the DS will be an Error 49 if the password has expired. Whatever LDAP library you're using in ASP should have a function for capturing these error codes allowing you to catch them and display a suitable error message to the user.

Once a user's password has expired then they can no longer bind to the DS. You could allow the user to reset (or push forward the password expiration time) via some interface but the change would have to be made by an account other than the user's, a generic non-user account for example.

Decstera at 2007-7-9 6:01:19 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks DecsterI was afraid that would be the only way. We should be able to work around that with your suggestion or using some spare attributes.Cheers
DougieWoo1a at 2007-7-9 6:01:19 > top of Java-index,Web & Directory Servers,Directory Servers...