Hi,
I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
4.0.3 to deploy a .war web archive - now I want to integrate authentication
with LDAP.
I have created the correct entries in my WEB-INF/web.xml file (see below),
and created a login.html file which posts to: j_security_check.
Now I am trying to find out how to integrate this with my LDAP server, ie
where I specify my server name, port, base dn, etc etc.
I have searched the mail archives and the documentation (though obviously
not the forums at the mo.!), but all the references seem to be pointing
towards putting the settings in auth.conf. But when I open up this file I
see that it states the following:
// This file is now obsolete but is read for backward compatability
// Use the login-config.xml file instead
Can someone point me towards a sample login-config.xml for LDAP
integration...
Thanks in advance...
Chris
-=-=-=
WEB-INF/web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>WEB Resource</web-resource-name>
<description>Web resource description</description>
<url-pattern>/</url-pattern>
<http-method>HEAD</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description>Auth constraint description</description>
<role-name>CNSRole</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/login-fail.html</form-error-page>
</form-login-config>
</login-config>
~~~~~~~~~~~~~~~~~~~~
Chris Shaw
> European Central Bank
> DG Information Systems
> * [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~
Any e-mail message from the European Central Bank (ECB) is sent in good faith but
shall neither be binding nor construed as constituting a commitment by the ECB except
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any
unauthorised disclosure, use or dissemination, either in whole or in part, is
prohibited.
If you have received this e-mail in error, please notify the sender immediately via
e-mail and delete this e-mail from your system.
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user