-
1. Re: DirectoryManagerServiceClient updateLocalUser Error
Aditaya Maini Aug 21, 2014 5:50 AM (in response to PMorales)Hi , please also try with "userID"
psf.setUserId("myLCUser");
List<User> principalList = dirClient.findPrincipals(psf);
Iterator<User> pit = principalList.iterator();
User testUser = null;
if (pit.hasNext())
{
testUser = pit.next();
}
dirClient.updateLocalUser(testUser, "oldPassword", "newPassword");
This works fine for me and I can change the password. I am able to do same using psf.setPrincipalOid(userOID); but in here, the value I used is "ID" of the user, not "userId".
In userOID case, if you try debugging and confirming the value of userOID , which you must be retrieving at some earlier step. I hope that helps.
-
2. Re: DirectoryManagerServiceClient updateLocalUser Error
PMorales Aug 25, 2014 9:28 AM (in response to Aditaya Maini)Hi,
Finding the user was not the problem. I can find the user using OID and userID.
The line that give me the exception was:
dirClient.updateLocalUser(testUser, "oldPassword", "newPassword");
Maybe the ALC version I have has a bug...
I will keep trying...
thanks,
-
3. Re: DirectoryManagerServiceClient updateLocalUser Error
PMorales Aug 25, 2014 10:33 AM (in response to PMorales)I try with another user and my original code worked.... so... aparently the account had problems...

