By: Muhammad Usman named 01 Mar 2016 at 12:02 p.m. CST

2 Responses
Muhammad Usman gravatar
I am working on a script that would force the user to change his/her password after N days. For this purpose, I had added a new attribute into LDAP schema and can set/get that attribute in my Python script. But, now I want to use Calendar class of Java to do operations on the date fetched from LDAP. So, I want to change GluuPerson class (https://github.com/GluuFederation/oxTrust/blob/master/server/src/main/java/org/gluu/oxtrust/model/GluuCustomPerson.java) and use the updated version of this class in my interception script. I need elaboration on how can I use an updated version of the mentioned class in my script?

By Michael Schwartz Account Admin 01 Mar 2016 at 12:10 p.m. CST

Michael Schwartz gravatar
Muhammad, Please provide sample ldif of the user. Also, please provde the schema for this attribute in question. Also, please attach the script that you have developed so far.

By Muhammad Usman named 01 Mar 2016 at 12:34 p.m. CST

Muhammad Usman gravatar
Sorry, the updated ldif schema can be found [here.](https://github.com/GluuFederation/community-edition-setup/blob/master/static/opendj/101-ox.ldif) The name of the attribute is 'oxPasswordExpirationDate'. And the script on which I am doing my work is [here.](https://github.com/musman2012/passwordExpiration)