Using modifyPrincipal to change the password attribute

Hello, before we have been able to use modifyprincipal to change the password but with the update to webmethods 10.3, our former script does not function as it did before.

We called modifyprincipal with the ID of the directory principal and inserting a hash map with “password” and the new password we want to change it to. The hash map would print as {password=newpass}
s.modifyPrincipal(p.getID(), passhashmap);

When we run the exact same modifyprincipal line as before, and use getattribute() to check the password attribute, it returns the same hash as the old password, and the password has not been changed. Were there any changes to modifyprincipal within the past few years that may have caused this and there is a correct way to change the password attribute using modifyprincipal? Thank you!

Im not sure from which version you’ve upgraded but dont think the API changed, at least not recently. Please check:
https://documentation.softwareag.com/webmethods/mywebmethods_server/mws10-11/10-11_CAF_and_MWS_Java_API_Reference/com/webmethods/sc/directory/IDirectorySession.html
and few samples:
https://documentation.softwareag.com/webmethods/mywebmethods_server/mws10-11/10-11_MWSw/index.html#page/my-webmethods-server-webhelp%2Fco-cds_code_examples_2.html%23

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.