Hello Everyone,
I am trying to connect to Siteminder Policy Server and apply changePassword through Siteminder API calls. I am able to connect to the Policy server but when i try to authenticate user with the new password, it throws Invalid credentials error.
I was able to authenticate the application (hosted on the same server) with the old password before.
I am using the below code:
———————————
smApiResult=dmsApi.getDirectoryContext(userDir,
new SmDmsConfig(),
dirContext);
SmDmsDirectory dmsDir = dirContext.getDmsDirectory();
SmDmsOrganization org=dmsDir.newOrganization(“ou=People,dc=example,dc=com”);
SmDmsUser user = org.newUser(“uid=xxxxxxx,ou=People,dc=example,dc=com”);
smApiResult = user.getObject();
smApiResult = user.changePassword(“newpassword”,”oldpassword”,true);
smApiResult = user.authenticate(“newpassword”);
System.out.println(“Done”);
——————————————
So, user.changePassword method is successful with reason code 0 but when we try to authenticate through user.authenticate method it gives Invalid credentials error.
Errors in smps logs:
[12/2684][Wed Oct 24 2018 09:45:56][SmDsLdapFunctionImpl.cpp:479][ERROR] (AuthenticateUser) DN: ‘uid=xxxxxxx,ou=People,dc=example,dc=com’ . Status: Error 49 . Invalid credentials
Source: New feed
{pubDate}