atom feed10 messages in org.apache.tomcat.usersRE: ldap authenitcation
FromSent OnAttachments
Charlene MitchellNov 25, 2002 2:35 am 
Charlene MitchellNov 25, 2002 9:28 am 
Charlene MitchellNov 26, 2002 12:45 am 
Charlene MitchellNov 26, 2002 10:07 am 
Craig R. McClanahanNov 26, 2002 10:36 am 
Hari VenkatesanNov 26, 2002 1:44 pm 
Charlene MitchellNov 26, 2002 11:42 pm 
Charlene MitchellNov 26, 2002 11:48 pm 
Craig R. McClanahanNov 27, 2002 9:35 am 
Charlene MitchellNov 27, 2002 9:50 am 
Subject:RE: ldap authenitcation
From:Charlene Mitchell (char@yahoo.co.uk)
Date:Nov 26, 2002 11:42:06 pm
List:org.apache.tomcat.users

yes,

there is catalina.out and three localhost_* log files (examples, log, admin)

None of which suggest that any communication with LDAP has occurred.

Charlene

--- Hari Venkatesan <hven@pfgc.com> wrote: > Did you check Catalina_log in /logs directory

Hari

-----Original Message----- From: Charlene Mitchell [mailto:char@yahoo.co.uk] Sent: Tuesday, November 26, 2002 3:46 AM To: Tomcat Users List Subject: Re: ldap authenitcation

Hi,

Is it just not possible to authenticate against LDAP?

If not can someone help explain how to set the debugging mode of TomCat to verbose because I'm seeing nothing relevant in the logs.

sigh

please help!

Charlene

--- Charlene Mitchell <char@yahoo.co.uk> wrote: > Hi,

No success so far :-(

Surely I can't be the only person trying to do something so fundamental?

How can I guarantee that I see even a failure in the log files? Seeing nothing at all seems very weird.

Thanks

Charlene

--- Charlene Mitchell <char@yahoo.co.uk> wrote: > Hi,

How do I authenticate against an LDAP directory using TomCat 4.1.2?

In my web.xml I have a resource that requires form authentication as follows: <login-config> <auth-method>FORM</auth-method>

<realm-name>java:/jaas/LDAPLogin</realm-name> <!-- I tried with and without this --> <form-login-config>

<form-login-page>/login</form-login-page>

<form-error-page>/login-fail</form-error-page> </form-login-config> </login-config>

I have read the JNDI Realm how-to and added the following few lines to my server.xml file. <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" connectionURL="ldap://ldapmachine:389"

userPattern="uid={0},ou=Users,o=myOrg.com"

roleBase="ou=Groups,0=myOrg.com" roleName="cn" roleSearch="(uniqueMember={0})"/>

When I access a restricted URL the login page appears and I type in my credentials, but when I submit (to: j_security_check) I automatically get redirected to my login-fail page in a matter of nano-seconds (this in itself suggests that it is not working!).

When I look in the TomCat log files I cannot see any references to any attempts to contact my LDAP directory. And when I look in the LDAP access log I cannot see any attempt to be contacted either.

What step have I missed out or got wrong?

Many thanks in advance

Charlene

__________________________________________________

Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

-- To unsubscribe, e-mail:

<mailto:tomc@jakarta.apache.org>

For additional commands, e-mail: <mailto:tomc@jakarta.apache.org>

__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

-- To unsubscribe, e-mail:

<mailto:tomc@jakarta.apache.org>

For additional commands, e-mail: <mailto:tomc@jakarta.apache.org>