[jboss-user] [Security & JAAS/JBoss] - Re: JBoss won't load login-config from webapp

oozoo do-not-reply at jboss.com
Wed Jul 16 03:20:06 EDT 2008


awesome, that solved the problem :)

however it still doesnt authenticate, here is the full security-config.xml, see anything wrong?

anonymous wrote : 
  | 
  | 	<application-policy name="MyTestApp">
  | 		
  | 		<!-- Active directory configuration -->
  | 		<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule"	flag="required">
  | 		<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
  | 		<module-option name="java.naming.provider.url">ldap://192.168.36.11:389/</module-option>
  | 		<module-option name="java.naming.security.authentication">simple</module-option>
  | 		<module-option name="bindDN">cn=SSL Explorer Gateway,ou=company,dc=company,dc=ch</module-option>
  | 		<module-option name="bindCredential">password</module-option>
  | 		<module-option name="baseCtxDN">OU=Company,DC=company,DC=ch</module-option>
  | 		<module-option name="baseFilter">(sAMAccountName={0})</module-option>
  | 		<module-option name="rolesCtxDN">,CN=SSL,OU=Company,DC=company,DC=ch</module-option>
  | 		<module-option name="roleFilter">(member={1})</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="password-stacking">useFirstPass</module-option>
  | 		</login-module>
  | 		<!-- database configuration -->
  | 		<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
  | 		<module-option name="password-stacking">useFirstPass</module-option>
  | 		<module-option name="dsJndiName">java:/jdbc/Datasource</module-option>
  | 		<module-option name="principalsQuery">select password from dba_users where username like upper(?)</module-option>
  | 		<module-option name="rolesQuery">select priv, 'Roles' from mitarbstamm where manr like upper(?)</module-option>
  | 		</login-module>
  | 		
  | 	</application-policy>
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164662#4164662

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164662



More information about the jboss-user mailing list