You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Harper <ro...@iat-cti.com> on 2004/06/17 16:33:13 UTC
Adding roles to users
I have been able to create a user by calling the "createUser" method on the
"Users:type=UserDatabase,database=UserDatabase" object. Now I need to add a role
to that user.
In the mbeans-descriptors.xml file it describes the return value as being the
name of the user bean. The source for MemoryUserDatabase returns the full name
of the user created. The return I get from my call to "createUser" with the full
name supplied is null.
I now have two questions:
1. What is the name of the object I should use to manipulate an individual
user?
2. How do I set the desired user active so I can update the correct user?
I have a hard time following the code for the admin app because the code is so
abstracted and I don't know where all of the property strings and attributes are
coming from.
Robert S. Harper
Senior Engineer
1100 East 6600 South, Suite 300
Salt Lake City, UT 84121-7411
801.265.8800 ex. 255
Robert S. Harper
Senior Engineer
1100 East 6600 South, Suite 300
Salt Lake City, UT 84121-7411
801.265.8800 ex. 255