How can I obtain all Users and Groups from Weblogic Server6.1 security store
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   li_xiaohua
Posted On:   Tuesday, July 2, 2002 11:36 PM

thank you...

Re: How can I obtain all Users and Groups from Weblogic Server6.1 security store

Posted By:   David_Lopez  
Posted On:   Tuesday, July 16, 2002 07:25 AM

If the Realm implements ListableRealm interface (usually all) you can access using the package weblogic.security.* and weblogic.security.acl.*. Here you have a little sample:




ListableRealm realm = (ListableRealm) Security.getRealm();
for (Enumeration e=realm.getGroups(); e.hasMoreElements();) {
out.println(((java.security.Principal) e.nextElement()).getName());
}





ListableRealm has methods to get User, groups and ACLs. In this sample weblogic fileRealm is taken by default. You can specific other custom realms (LDAP, RDBMS...), using directly the class Realm, but you must specify the name of the realm. See also the weblogic.security javadoc in the site: http://edocs.bea.com/wls/docs61/javadocs/index.html

Regards,

Re: How can I obtain all Users and Groups from Weblogic Server6.1 security store

Posted By:   Deltagh_Hakim  
Posted On:   Friday, July 12, 2002 04:30 AM


Use JMX for your purpose



About | Sitemap | Contact