• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

list of users in Weblogic 6.1

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can i get a list of all the users created on Weblogic 6.1. I have to show it in a Combo Box.
Any hints?
Thanks
N.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BasicRealm br = Security.getRealm();
if ( br instanceof ListableRealm )
{
Enumeration enum = ((ListableRealm)br).getUsers();
// etc...
}
else
{
// cant list users
}
Weblogic classes above are in weblogic.security.acl.* package. See
http://e-docs.bea.com/wls/docs61/javadocs/index.html

Be careful - if you get hundreds of users in your system, you will kill your combo box. In that case you might want to add some wildcard search capability or get users in a group, etc.
Also be aware that security has changed in WLS 7.0 - the old Realms are deprecated and a new, better implementation (based on JAAS) has replaced it.
 
Jain Neeraj
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot
 
A timing clock, fuse wire, high explosives and a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic