Hi,
I'm trying to figure out the best way to change passwords in an Active Directory
server. I need to provide a web service that allows for callers to do this.
I have code in my web service that connects to AD and changes the password, but I'm
not sure how to get the configuration data I need (server name, port, etc.) This
configuration data already exists in the login-module configuration for JAAS, and I really
don't want to duplicate it in another file.
What I'd like to do is get the active LoginModules for a given security domain, and
then I could use the LDAP configuration data from the appropriate LoginModule. But I
can't find a way to do this.
I suppose I could subclass LdapExtLoginModule and cache the data somewhere, but that's
a pretty ugly hack.
The second ugly hack I can think of is reading the configuration back in from the
filesystem. I have a security-domain-jboss-beans.xml file which specifies the security
domain configuration, so in a pinch, I could read that file.
Any thoughts?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270291#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...