JNDIRealm(LDAP) Authentication Configuration Sample Required

2003-10-01 Thread Arun K Solleti
Hi

I have tried different different options but cannot get the LDAP authentication to 
work in my application. 
Following is what i am using.

Tomcat: 4.1.27-LE-jdk14
Apache: 2.0.47
Java : 1.4.2
Linux OS: 7.3
LDAP : IPlanet LDAP Server.


1) In this regard i have downloaded the latest JNDI API and then
copied the ldap.jar file to $CATALINA_HOME/server/lib directory.
 
2) The i have added the following entry to the server.xml file.
 
   Realm className=org.apache.catalina.realm.JNDIRealm
   connectionURL=ldap://ldap.mycompany.com:389;
   userBase=ou=active,ou=employees,ou=people,o=mycompany.com
   userSearch=(uid={0})
   roleSearch=(uniqueMember={0})
   roleName=cn
   debug=99
   contextFactory=com.sun.jndi.ldap.LdapCtxFactory
   /
 
3) In my application web.xml file i have added the following
 
   security-constraint
web-resource-collection
  web-resource-nameNrt/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameCEC/realm-name
/login-config

Then i have restarted the tomcat and apache. I get the prompt for
userid and password, but when i provide the correct userid/password i
get an message saying incorrect userid and password, i think i am
missing something in the configuration and tomcat is not talking with
LDAP, was wondering if you can provide some inputs on this.
 
Appreciate your help and time.

Thanks
Arun



Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDIRealm (LDAP) Configuration Problem

2003-09-29 Thread Arun K Solleti
Hi
 
I am using the following
 
Tomcat: 4.1.27-LE-jdk14
Apache: 2.0.47
Java : 1.4.2
Linux OS: 7.3
 
I am trying to configure LDAP authentication mechanism to my application. 
 
1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar 
file to $CATALINA_HOME/server/lib directory.
 
2) The i have added the following entry to the server.xml file.
 
   Realm className=org.apache.catalina.realm.JNDIRealm
   connectionURL=ldap://ldap.mycompany.com:389;
   userBase=ou=active,ou=employees,ou=people,o=mycompany.com
   userSearch=(uid={0})
   roleSearch=(uniqueMember={0})
   roleName=cn
   debug=99
   contextFactory=com.sun.jndi.ldap.LdapCtxFactory
   /
 
3) In my application web.xml file i have added the following
 
   security-constraint
web-resource-collection
  web-resource-nameNrt/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameCEC/realm-name
/login-config

Then i have restarted the tomcat and apache. I get the prompt for userid and password, 
but when i provide the correct userid/password i get an message saying incorrect 
userid and password, i think i am missing something in the configuration and tomcat is 
not talking with LDAP, was wondering if you can provide some inputs on this.
 
Appreciate your help and time.
 
Thanks
Arun




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Shutdown Problem

2002-01-19 Thread Arun K Solleti

Hi
I have the following setup

1) Apache 1.3
2) Tomcat 3.2
3) Java SDK 1.3.1_01

Running on a Solaris box with SunOS Release 5.6. I have made sure that i
have all the patches for Java are present on the Sun Box. But my Tomcat
is shutdown frequently, and i have notices that it is creating a log
file in the TOMCAT_HOME/bin directory whose name looks like

hs_err_pid_#.log (i.e. # is a numeric )

The contents of this file is as follows
---
Unexpected Signal : 11 occurred at PC=0xeb4139fc
Function name=get (compiled Java code)
Library=(N/A)

Current Java thread:

Dynamic libraries:
0x1  /usr/java1.3.1/bin/../bin/sparc/native_threads/java
0xef77  /usr/lib/libthread.so.1
0xef7b  /usr/lib/libdl.so.1
0xef68  /usr/lib/libc.so.1
0xef75  /usr/platform/SUNW,UltraAX-MP/lib/libc_psr.so.1
0xee88  /usr/java1.3.1/jre/lib/sparc/client/libjvm.so
0xef63  /usr/lib/libCrun.so.1
0xef61  /usr/lib/libsocket.so.1
0xef50  /usr/lib/libnsl.so.1
0xef5e  /usr/lib/libm.so.1
0xef66  /usr/lib/libw.so.1
0xef5b  /usr/lib/libmp.so.2
0xef4d  /usr/java1.3.1/jre/lib/sparc/native_threads/libhpi.so
0xef4a  /usr/java1.3.1/jre/lib/sparc/libverify.so
0xef46  /usr/java1.3.1/jre/lib/sparc/libjava.so
0xef43  /usr/java1.3.1/jre/lib/sparc/libzip.so
0xeb29  /usr/java1.3.1/jre/lib/sparc/libnet.so
0xeb0e  /usr/lib/nss_files.so.1

Local Time = Tue Dec 18 10:20:21 2001
Elapsed Time = 3058
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002C4 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_01 mixed mode)
---

I have tried to change to version of JDK (tried with 1.2.2_07) but i
noticed that my server shutdown 3 times in a span of 30minutes while i
was performing some tests.
Does any one have any idea what my server is shutdowning ??

Thanks
Arun



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How can I use LDAP for Tomcat authentication ?

2002-01-18 Thread Arun K Solleti

Hi

I have an implementation of apache 1.3.20 with tomcat 3.2.3. I an doing auth. with a 
ldap server wihich works prefectly with apache
mod_auth_ldap (module). When i am trying to read the environment
variables with a cgi , REMOTE_USER returns me the authentificated user
but when i am doing a getremoteuser() in my servlet with tomcat , it
returns NULL Why ?

I came accross this page when looking for material and

http://www.peacetech.com/java/files/apache/tomcat/

did the following

1) Downloaded - jndi_auth_beta1.jar, Extracted jndi_auth.jar file which contained 
class files and plcaed them inside my tomcat/lib directory

2) Then i have updated the server.xml file of my Tomcat, that i wanted
to use LDAPRealm

RequestInterceptor className=com.peacetech.webtools.tomcat.LdapRealm
debug=1
directoryUrl = ldap://ldap.mycompany.com:389;
searchBaseContext = o=mycompany.com
searchFilter = uid={0}
searchScopeAsString = sub
securityAttributes = securityEquals
attributesReadByOwner = true
connectionMaxPoolSize = 10
ldapVersion = 3 /

Then i had shutdown and restarted the server after some initial hickups, then i have 
tried to open some sample JSP and sevlets in the examples directory of my server. But 
i was not asked for any UserId/Password. Was wondering if i have done anything wrong ??

Thanks
Arun



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]