Problem mapping user to admin role
Posted on 2011-02-14
Im having a weird problem.
I have written the smallest of script that map a User to a role in the admin console.
AdminTask.mapUsersToAdminRole('[-accessids [user:ldap.server.local:636/CN=username,OU=PEOPLE,DC=domainname,DC=local ] -userids [CN=username,OU=PEOPLE,DC=domainname,DC=local ] -roleName administrator]')
When I go back in the console, I DO see the user mapped as an Admin.
But if I try to use this user to log into the console I get this error message:
[2/14/11 9:35:20:352 EST] 00000015 WebCollaborat A SECJ0129E: Authorization failed for user username:ldap.server.local:636 while invoking GET on admin_host:/ibm/console/, Authorization failed, Not granted any of the required roles: administrator operator configurator monitor nobody
If I delete the user and do it using the console it works... but when Using scripts.... it does not...
Anyone have an idea about that?