[JBoss Portal] - Re: LDAP and Active Directory
by creative77
Wiki sez that the "rolesCtxDN" is the path to the users account and not the path to the actual group/role.
When I set this the servlet crashes with a account not found exception. However, when I change the path to the group path. It authenticates the user but can't find the user group/role.
I am confused.
As I have said the user accounts and groups are in different subtrees.
#################################################
This crashes the login servlet with account not found. Account are in the following container.
<module-option name="rolesCtxDN">ou=Adomain Users,ou=Adomain Resources,dc=adomain,dc=com</module-option>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
<!--
Some AD configurations may require searching against
the Global Catalog on port 3268 instead of the usual
port 389. This is most likely when the AD forest
includes multiple domains.
-->
<module-option name="java.naming.provider.url">ldap://adserver.adomain.com:389</module-option>
<module-option name="bindDN">DomainUser</module-option>
<module-option name="bindCredential">DomainPassword</module-option>
<module-option name="baseCtxDN">dc=adomain,dc=com</module-option>
<module-option name="baseFilter">(sAMAccountName={0})</module-option>
<module-option name="rolesCtxDN">ou=Adomain Users,ou=Adomain Resources,dc=adomain,dc=com</module-option>
<module-option name="roleFilter">(sAMAccountName={0})</module-option>
<module-option name="roleAttributeID">memberOf</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="roleRecursion">-1</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
</login-module>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975561#3975561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975561
19 years, 7 months
[Installation, Configuration & Deployment] - jmx - invocation amethod inside a sleepycat mbean
by nscooper
Hello All,
I'm trying to invoke an MBean operation that's displayed in the web-console as:
--------------------------------------------------------------------------------
MBean Name: Domain Name: bglobal.com
service: JEMonitor
MBean Java Class: com.sleepycat.je.jmx.JEMonitor
--------------------------------------------------------------------------------
and the operation is listed as:
--------------------------------------------------------------------------------
void checkpoint()
Checkpoint the environment.
Param ParamType ParamValue ParamDescription
force java.lang.Boolean True False If true, force a checkpoint even if there has been no activity since the last checkpoint. Returns true if a checkpoint executed.
--------------------------------------------------------------------------------
but I'm not having much luck with just about every possible config of source code available off the forums, etc. The code that I would really like to work (from my SAR, deployed to same server) is:
--------------------------------------------------------------------------------
MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName objectName = new ObjectName("bglobal.com:name=JEMonitor");
Object[] paramValues = new Object[] {new Boolean(true)};
String[] methodSignature = new String[] {"java.lang.Boolean"};
server.invoke(objectName, "checkpoint", paramValues, methodSignature);
--------------------------------------------------------------------------------
Please help - I've exhausted all avenues I can think of to try to understand this stuff further..... :-(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975554#3975554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975554
19 years, 7 months