Hi All, Whilst I await *hopefully* a reply to my last post on why the data source realm does not operate correctly, I am using the standard user database that ships with TC to move on, but damn, I'm bloody stuck again! I would like to obtain a reference to the various role names that the principle has attached, as I would then use these to go off and tie up further application-related permissions. I cannot find a standard way to do this, although I did try this very naughty bit of code but it means I have to store catalina.jar - obviously a *bad* thing to do, in my lib!
MemoryUser principle = (MemoryUser) httpRequest.getUserPrincipal(); Set<Role> roles = (Set<Role>) principle.getRoles(); for (Role role : roles) { logger.debug("Role is " + role.getName()); } BUT it does have what I need. Does Tomcat offer a nice way to get at its internally cached UserDatabase using standard interfaces? Kindest, Allistair. <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]