Apereo Cas - Password Management via REST

40 views
Skip to first unread message

Napoleon Ponaparte

unread,
Jul 19, 2020, 11:01:36 PM7/19/20
to CAS Community
I have succeed config Password Management via JDBC in Apereo CAS version 6.1.x.

Now, I want to try Password Management via REST since I used MongoDB to store user information, thus the fact that JDBC password management is not applicable with my case.

I followed this instruction Password Managment REST

I wrote Go code as REST API to connect MongoDB, GET information and UPDATE user information easily. But I don't know structure of Request and Response JSON is.

For example:

REQUEST FOR USERNAME
GET /restapilink:port/username
RESPONSE { "username": "abc" }
REQUEST FOR Password GET /restapilink:port/password RESPONSE { "password": "123456" }

Or

REQUEST for all user information
GET /restapilink:port/
RESPONSE { "username": "abc", "password": "123456", "email": "a...@gmail.com" }

And Could I use REST to reset password with user information store in MongoDB?

In addition, I have found this RestPasswordManagementService.java. It is not easy to understand since I don't know input and output are.

Please help me.

Thank you.

arti wavale

unread,
Jul 20, 2020, 12:14:03 AM7/20/20
to CAS Community
Hello

I am also facing same issue with MySql database users for update password

Reset Password Management for MySql users


For mysql password update issue it is trying to use LDAP module to update the password but it should be using JDBC module to update Mysql DB password!


Below error log line indicates that.

ERROR [org.apereo.cas.config.pm.org.apereo.cas.pm.ldap.LdapPasswordManagementService]


I have removed all dependencies from pom.xml file and all Ldap attribute entries from cas.properties related to ldap  but still cas server use [org.apereo.cas.config.pm.org.apereo.cas.pm.ldap.LdapPasswordManagementService] for update password of mysql users


so how can I activate org.apereo.cas.config.pm.org.apereo.cas.pm.jdbc.JdbcPassword ManagemntService in cas server. Do you have any suggestions?


Thanks and Regards

Arti

Napoleon Ponaparte

unread,
Jul 20, 2020, 12:17:07 AM7/20/20
to CAS Community, arti wavale
Hi,
Which CAS and MySQL version are you using?
Could you post your detail configuration in CAS?
Thanks.

arti wavale

unread,
Jul 20, 2020, 12:22:40 AM7/20/20
to CAS Community, artiw...@gmail.com
Hello,

I am using CAS V5.2 and MySql Version is 14.14 on Ubuntu 16.04.01 operating system

Thanks and Regards
Arti
Reply all
Reply to author
Forward
Message has been deleted
0 new messages