JNDIRealm autehentication

2005-08-19 Thread Rogerio Baldini das Neves
Hi Folks, Is it possible to authenticate in multiples userBase´s using JNDIRealm ? I have a configuration as above: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389; userBase=ou=people,dc=mycompany,dc=com userSearch

Re: JNDIRealm autehentication

2005-08-19 Thread David Delbecq
No, but code of JNDIRealm can be easily reused to create your own realm. Le Vendredi 19 Août 2005 15:26, Rogerio Baldini das Neves a écrit : Hi Folks, Is it possible to authenticate in multiples userBase´s using JNDIRealm ? I have a configuration as above: Realm className

Re: JNDIrealm Mbean

2005-03-16 Thread jean charles jabouille
()); i++; } } catch(Exception e){ } Thanks for answers Jabouille Jean Charles - Original Message - From: jean charles jabouille [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, March 11, 2005 10:48 AM Subject: JNDIrealm Mbean Hi, I use

Re: JNDIrealm Mbean

2005-03-16 Thread jean charles jabouille
I answer to my questions... try { ObjectName JNDIRealm = new ObjectName(Catalina:type=Realm,path=/DJLRWebapp,host=localhost); List list = MBeanServerFactory.findMBeanServer(null); MBeanServer server = (MBeanServer) list.iterator().next(); System.out.println(server.getAttribute

JNDIrealm Mbean

2005-03-11 Thread jean charles jabouille
Hi, I use Tomcat 5.5 and I created a JNDIRealm in the server.xml file. I d'like to accede to the JNDIMean mbean but I can't find informations about source code exemple. I saw this page that contains all Tomcat Mbean http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/funcspecs/mbean

Authenticate JNDIrealm through Client

2005-02-21 Thread bohldan bohldan
I wonder ive started a jndirealm and it works just fine against ldap. I have no problem to login from a webbrowser (BASIC mode). But i want to login from a Java client how do i do that ? _ Chat: Ha en fest på Habbo Hotel http

SV: Authenticate JNDIrealm through Client

2005-02-21 Thread Roland Carlsson
as an http-request and then look at the http-response. Regards Roland Carlsson Den 05-02-21 12.20, skrev bohldan bohldan [EMAIL PROTECTED]: I wonder ive started a jndirealm and it works just fine against ldap. I have no problem to login from a webbrowser (BASIC mode). But i want to login from

JNDIRealm and multiple groups in LDAP.

2004-12-28 Thread Andrey Polozov
Hi, I'm Trying to apply JNDIRealm to the LDAP structure, where each user belong to some group (organizationalUnit): dn: ou=Group1, o=myorg objectclass: organizationalUnit ou: Group1 dn: uid=user1, ou=Group1, o=myorg objectclass: person uid: user1 dn: ou=Group2, o=myorg objectclass

REPOST: Recursive groups in JNDIRealm

2004-11-18 Thread Roland Carlsson
in JNDIRealm Hi! After an hour of searching I can't figure out if Tomcat is able to find groups in group in a LDAP server? I found this in the archives but since it is from 4.1.18 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html Thanks in advance Roland Carlsson

Recursive groups in JNDIRealm

2004-11-17 Thread Roland Carlsson
Hi! After an hour of searching I can't figure out if Tomcat is able to find groups in group in a LDAP server? I found this in the archives but since it is from 4.1.18 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html Thanks in advance Roland Carlsson

Roles-problem with JNDIRealm and AD

2004-10-06 Thread Eividn Trondsen
Hi List I'm trying to connect Tomcat/5.0.28 to AD on Windows 2003. My problem is that JNDIRealm fails to get role information, after successfully binding with the users DN. My temporary conclusion is that JNDIRealm fails to use the bound connection with AD when performing the search for the role

JNDIRealm Problem

2004-09-15 Thread SARMIENTO Claudia COGA
Hello: I have a problem with my JNDIRealm configuration in Tomcat 5. I'm using the bind mode for authentication My company have Microsoft Active Directory with two ou within ou=People I configured the server.xml to connect to my ldap sucessfully but only to one OU, i tried to put only ou=People

RV: JNDIRealm and Windows 2000 Active Directory

2004-08-24 Thread Francisco José Arnau Vives
I'm trying configure one JNDIRealm asking to one Windows 2000 Active Directory. In the examples in the web of jakarta I have seen examples over openLdap. Can you help me in the configuration over Windows2000 AD. Has somebody a production system or wep application using JNDIRealm vs Active

Re: Tomcat 5 and JNDIRealm

2004-08-11 Thread Deepa Ramamurthy
Unfortunately, the LDAP server is on Domino and the only guy who worked on it quit. And I don't know enough about Domino to access it's logs or figure out the answers to the questions below. Here's what is appearing in the Tomcat logs: 2004-08-11 10:43:23 JNDIRealm[deepa.myinfogenic.net

Tomcat 5 and JNDIRealm

2004-08-10 Thread Deepa Ramamurthy
Hello! My webapp is running on Tomcat 5.0. I've been trying to set it up to use the LDAP server for authentication without any luck. Here are my entries in server.xml and web.xml respectively: server.xml: Host name=beepy.myinfogenic.net debug=0 appBase=webapps unpackWARs=true

Re: Tomcat 5 and JNDIRealm

2004-08-10 Thread QM
for Tomcat and the LDAP server? (Increase log verbosity on both for the purposes of your test. You'd be surprised what gremlins are lurking ;) - does your LDAP directory have the proper attributes for user roles and such? - does the directory use a password hashing expected by JNDIRealm

How to get Roles in a Principal with JNDIRealm

2004-06-30 Thread Renato Primavera
Hello All, I'm using JNDIRealm to authenticate users and it's working well. In my java code, I need to retrieve roles associated with the authenticated user. Here is a sample of this code : Subject s = Subject.getSubject((AccessControlContext)System.getSecurityManager().getSecurityContext

RE: How to get Roles in a Principal with JNDIRealm

2004-06-30 Thread Robert Harper
to get Roles in a Principal with JNDIRealm Hello All, I'm using JNDIRealm to authenticate users and it's working well. In my java code, I need to retrieve roles associated with the authenticated user. Here is a sample of this code : Subject s = Subject.getSubject

4.0.29: does JNDIRealm (LDAP) perform authorization right after authentication??

2004-06-09 Thread Sauer, Christian {PGSQ~Basel}
functionality of the application automatically depending on their group membership (which is checked using method isUserInRole at runtime). It seems that the LDAP JNDIRealm of tomcat automatically performs an authorisation for given groups after a successful user authentication ... Is this generally

RE: JNDIRealm strangeness

2004-05-10 Thread Shane Linley
in a bug report about that ldaps matter :) If it has not already been done that is. Regards, Shane. -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Monday, 10 May 2004 11:53 AM To: Tomcat Users List Subject: Re: JNDIRealm strangeness Hi Shane ! Thanks for your help

RE: JNDIRealm strangeness

2004-05-09 Thread Shane Linley
Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, 7 May 2004 8:17 PM To: Tomcat Users List Subject: Re: JNDIRealm strangeness Hi Shane ! Thanks for the description and advice! I managed to finally turn on OpenLDAP logging (a pain in Fedora Core 1), and set the loglevel to 256

Re: JNDIRealm strangeness

2004-05-09 Thread Chong Yu Meng
Hi Shane ! Thanks for your help! After experimenting over the weekend, I think that this is probably a bug in the Tomcat code. I checked and corrected some problems in my OpenLDAP setup, and verified that SSL/TLS connections can be made successfully to it using ldapsearch. When I tried

JNDIRealm strangeness

2004-05-07 Thread Chong Yu Meng
Hi All ! I wonder if anyone has seen this anomaly, when following my instructions on setting up a JNDIRealm, on my website (http://cymulacrum.net/writings/adv_tomcat/c487.html). I wrote these instructions after version 5.0.19 of Tomcat came out and fixed the character encoding issue

RE: JNDIRealm strangeness

2004-05-07 Thread Shane Linley
:[EMAIL PROTECTED] Sent: Friday, 7 May 2004 4:32 PM To: Tomcat Users List Subject: JNDIRealm strangeness Hi All ! I wonder if anyone has seen this anomaly, when following my instructions on setting up a JNDIRealm, on my website (http://cymulacrum.net/writings/adv_tomcat/c487.html). I wrote

Re: JNDIRealm strangeness

2004-05-07 Thread Chong Yu Meng
connection. But my JNDIRealm still works ! Users can still authenticate successfully. Does the connection fallback to port 389 if a connection on 636 is not possible? Thanks for the help, Shane ! If you have any further suggestions, I would really appreciate it ! Regards, pascal chong Shane Linley

JNDIRealm in Tomcat 5

2004-01-27 Thread Vincent
Hello All, I searched the archive but have not seen a situation like mine. I am in the process of upgrading to tomcat 5.0.16 from 4.1.29. I'm happy to say that my webapp seems to be running fine under tomcat 5 with one important exception. My configured JNDIRealm seems to be failing. The main

Tomcat 5.0.18, JNDIRealm and disabling RFC2254 encoding

2004-01-22 Thread frank delin
Is there a flag you can you in the Realm decleration portion of server.xml that turns off the RFC2254 encoding in the JNDI Realm. Upgrading my ldap server is low on my list of things I'd like to do soon. I use this currently Realm className=org.apache.catalina.realm.JNDIRealm

JNDIRealm question

2003-12-01 Thread Chong Yu Meng
Hi All, I have a configuration that is not covered in the JNDIRealm HOWTO, and was wondering if someone else has tried this before : I am using OpenLDAP 2.1.22 on Red Hat 9. For the DN, I am using the CN instead of the UID (i.e., dn: cn=Zhu De,ou=People,o=Cymulacrum instead of uid=zhude,ou

Problem with JNDIRealm

2003-11-26 Thread Jörn Heid
={0}) roleSubtree=true connectionName=cn=appadmin,o=company,c=DE connectionPassword=password / When testing it with a working user/pass combination I get: 2003-11-26 21:17:29 JNDIRealm[Standalone]: lookupUser(jheid) 2003-11-26 21:17:29 JNDIRealm[Standalone]: dn=uid=jheid,ou

Re: Problem with JNDIRealm

2003-11-26 Thread Chong Yu Meng
It looks like one of you attributes is missing (i.e. null). Do you have a role associated with the username? I'm also having problems with JNDIRealm -- I can't get it working ! Going to check if it is because I'm missing some libraries. Regards, pascal chong Jörn Heid wrote: I have

RE: Extending JNDIRealm

2003-11-25 Thread Hart, Justin
Ok, why? What am I doing that should cause a stack overflow? Justin -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 7:26 PM To: Tomcat Users List Subject: Re: Extending JNDIRealm Odd, based on what I see so far, I would expect it to crash

Re: Extending JNDIRealm

2003-11-25 Thread Tim Funk
Based on what I saw so far ... In JNDIRealm authenticate(String, String) gets a DirContext and calls authenticate(DirContext, String, String). Your code snippet which I assume overrides, authenticate(DirContext, String, String) which calls super.authenticate(String, String

RE: Extending JNDIRealm

2003-11-25 Thread Hart, Justin
I *cough* didn't download the JNDIRealm code. I'll go look into that. Justin -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 9:28 AM To: Tomcat Users List Subject: Re: Extending JNDIRealm Based on what I saw so far ... In JNDIRealm

RE: Extending JNDIRealm

2003-11-25 Thread Hart, Justin
Wait, reading the stack trace doesn't show anything like that. No, that can't be the issue. Justin -Original Message- From: Hart, Justin Sent: Tuesday, November 25, 2003 9:30 AM To: Tomcat Users List Subject: RE: Extending JNDIRealm I *cough* didn't download the JNDIRealm code. I'll

RE: Extending JNDIRealm

2003-11-25 Thread Hart, Justin
Read through the code, ran some example stuff. What I'm doing in my implementation is fine. Justin -Original Message- From: Hart, Justin Sent: Tuesday, November 25, 2003 9:31 AM To: Tomcat Users List Subject: RE: Extending JNDIRealm Wait, reading the stack trace doesn't show

RE: Extending JNDIRealm

2003-11-25 Thread Hart, Justin
Ok, for those interested, here's the real issue. At some point in time (I don't know enough about tomcat to know when or why), before it Tomcat has your username (at least with my config files, but it looks common since JNDIRealm is checking for it too), authenticate is called with a null

Extending JNDIRealm

2003-11-24 Thread Hart, Justin
No sure what's going on with this code... I'm attempting to extend JNDIRealm so I can add a few features I need for my site, I have an interesting issue, however. If, I try this : public Principal authenticate(DirContext context, String username, String credentials) throws NamingException

RE: Extending JNDIRealm

2003-11-24 Thread Hart, Justin
Whoops, the code is actually as follows... No sure what's going on with this code... I'm attempting to extend JNDIRealm so I can add a few features I need for my site, I have an interesting issue, however. If, I try this : public Principal authenticate(DirContext context, String username

Re: Extending JNDIRealm

2003-11-24 Thread Tim Funk
Odd, based on what I see so far, I would expect it to crash with a StackOverFlow exception. -Tim Hart, Justin wrote: Whoops, the code is actually as follows... No sure what's going on with this code... I'm attempting to extend JNDIRealm so I can add a few features I need for my site, I have

RE: JNDIRealm...more

2003-11-06 Thread Dean Searle
PROTECTED] Sent: Wednesday, November 05, 2003 5:00 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once

RE: JNDIRealm...more

2003-11-06 Thread Hart, Justin
List Subject: RE: JNDIRealm...more getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I don't, but I guess that is why we have web application developers on staff. :-) Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message

RE: JNDIRealm...more

2003-11-06 Thread Robyne Vaughn
I can use that. Thanks. Robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:58 AM To: Tomcat Users List Subject: RE: JNDIRealm...more getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I

JNDIRealm with UserMapping (was: Trust Store and Credentials)

2003-11-05 Thread Mario Ivankovits
Bill Barker wrote: Speaking only for myself, it is because of the dependencies on sun.** classes (so it won't work with e.g. IBM's JVM). Otherwise the patch looks Ok. I just haven't had enough spare cycles to work out how to remove the Sun dependancies. Ah, yes i see, but this is true for

RE: JNDIRealm...more

2003-11-05 Thread Robyne Vaughn
:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find

RE: JNDIRealm...more

2003-11-05 Thread Hart, Justin
specified? Am I on the Right Track(tm) with all of this? Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: RE: JNDIRealm...more Here's what I have..this works for mehope this helps

RE: JNDIRealm...more

2003-11-05 Thread Hart, Justin
Ok, figured it out. For those who are curious (IE the handful of other people who've been taking part in JNDIRealm threads on this list: roleBase=OU=Users,OU=[Your OU from the userBase],DC=[Domain],DC=com roleName=memberOf roleSearch=(Whatever group all members allowed

server.xml JNDIRealm

2003-11-05 Thread Hart, Justin
Ok, more nifty questions from myself. The format that the rest of the company uses for NT Authentication is [domain].com\[username] in the username field, and then [pass] in the password field. The NT Admins would really like if my application would do the same (so as not to throw off users).

RE: JNDIRealm...more

2003-11-05 Thread Robyne Vaughn
appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living

RE: JNDIRealm...more

2003-11-05 Thread Dean Searle
. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did

RE: JNDIRealm...more

2003-11-05 Thread Robyne Vaughn
: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without

RE: JNDIRealm...more

2003-11-04 Thread Hart, Justin
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: RE: JNDIRealm...more Here's what I have..this works for mehope this helps Realm className=org.apache.catalina.realm.JNDIRealm debug=99

RE: JNDIRealm...more

2003-11-04 Thread Robyne Vaughn
different values for OU? Any help would be appreciated. Thanks, rob -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:13 AM To: Tomcat Users List Subject: RE: JNDIRealm...more I just got it working... A million thank yous! I didn't really

RE: JNDIRealm...more

2003-11-04 Thread Robyne Vaughn
, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need

RE: JNDIRealm...more

2003-11-04 Thread Hart, Justin
I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users

RE: JNDIRealm...more

2003-11-04 Thread Hart, Justin
: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe

RE: JNDIRealm...more

2003-11-04 Thread Robyne Vaughn
Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from

RE: JNDIRealm...more

2003-11-04 Thread Hart, Justin
Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD

RE: JNDIRealm...more

2003-11-04 Thread Robyne Vaughn
Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1

RE: JNDIRealm...more

2003-11-04 Thread Dean Searle
: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November

JNDIRealm Configuration

2003-11-03 Thread Hart, Justin
Does anybody have an example JDNIRealm configuration (server.xml web.xml). I feel like I'm just taking stabs in the dark with these files... Currently I can get it to pop up a window and ask for your username/password. I use my NT username and password and it rejects them. I think that I

JNDIRealm

2003-11-03 Thread Hart, Justin
Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://[Windows 2000 Domain Controller]:389 userBase=CN=Users,dc=[domain name],dc=com userSearch=(userPrincipalName={0}) userRoleName=member roleBase=CN=Users,dc=[domain name],dc=com roleName=cn roleSearch=(member={0})

JNDIRealm...more

2003-11-03 Thread Hart, Justin
My server.xml now looks like this : Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=A good active directory server userBase=dc=MY DOMAIN NAME,dc=com userRoleName=member roleName=cn

RE: JNDIRealm...more

2003-11-03 Thread RPITRE
connectionPassword=[password] roleSubtree=true userSubtree=true/ -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:57 PM To: Tomcat Users List Subject: JNDIRealm...more My server.xml now looks

RE: JNDIRealm...more

2003-11-03 Thread Hart, Justin
: RE: JNDIRealm...more Here's what I have..this works for mehope this helps Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://[domain controller]:389 userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com

RE: JNDIRealm...more

2003-11-03 Thread RPITRE
, November 03, 2003 4:18 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Is there a way to do this without the admin password in the file? What is sAMAccountName? Also, not terribly versed in LDAP, what is My OU? Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: JNDIRealm...more

2003-11-03 Thread Hart, Justin
PROTECTED] Subject: RE: JNDIRealm...more You don't need the admin password, you do need a domain account the has read permissions.just about any account will do thiscreate a test account.and use that instead of the admin account.. -Original Message- From: Hart, Justin

Re: JNDIRealm using LDAP with SSL

2003-10-24 Thread Hayo Schmidt
error: 2003-07-28 09:40:49 JNDIRealm[Standalone]: Connecting to URL ldaps://10.1.1.50:636 2003-07-28 09:40:50 JNDIRealm[Standalone]: Exception performing authentication javax.naming.CommunicationException: simple bind failed: 10.1.1.50:636 [Root exception is javax.net.ssl.SSLException: Connection

Re: JNDIRealm source code -

2003-10-11 Thread Tim Funk
http://jakarta.apache.org/site/cvsindex.html JNDIRealm is jakarta-tomcat-catalina for tomcat5, jakarta-tomcat-4.0/catalina/ for tomcat4 I recommend more exploration before accepting an error code2 as a valid login. Its a kluge around the MS's ldap implementation and such a kluge probably

JNDIRealm source code - (was: Re: Tomcat vs Bea WebLogic)

2003-10-11 Thread Davi Leal
Hi, I am using tomcat 4.1.27, Java sdk-1.4.1_02 and JNDIRealm to use the Micro$oft Site Server service to authenticate our webapps. I get an error code 2 exception (Protocol Error) only when the user and the password is right. That is to say, when an OK is expected. I am thinking about modify

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

JNDIRealm LDAP Configuration Problem

2003-09-30 Thread Equipment Lamp
Hi I am using the following Tomcat: 4.1.27-LE-jdk14 Apache: 2.0.47 Java : 1.4.2 Linux OS: 7.3 iPlanet LDAP Server 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

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

JNDIRealm User bind context available in the Servile Context?

2003-08-14 Thread Twadell, Daniel M
In a servlet I would like to access the same JNDIRealm directory server context that is used during BASIC authentication. Is it possible to configure the jndirealm as a resource link for the servlet context? I *can* make an Application super user to establish a DirContext , but wanted to use

Re: JNDIRealm: Authentication Failing [SOLVED]

2003-08-07 Thread Adam Sherman
Adam Sherman writes: 2003-07-27 13:44:06 JNDIRealm[Standalone]: validating credentials by binding as the user 2003-07-27 13:44:06 JNDIRealm[Standalone]: binding as uid=adam,ou=People,dc=tritus,dc=ca 2003-07-27 13:44:06 JNDIRealm[Standalone]: bind attempt failed JNDIRealm is attempting

Re: JNDIRealm: Authentication Failing

2003-07-31 Thread Adam Sherman
-27 13:44:06 JNDIRealm[Standalone]: validating credentials by binding as the user 2003-07-27 13:44:06 JNDIRealm[Standalone]: binding as uid=adam,ou=People,dc=tritus,dc=ca 2003-07-27 13:44:06 JNDIRealm[Standalone]: bind attempt failed JNDIRealm is attempting to bind as 'uid=adam,ou=People,dc

Re: JNDIRealm: Authentication Failing

2003-07-29 Thread Hayo Schmidt
Is 'mail' the naming value? This means, if you export to an ldif file you should find a line dn: [EMAIL PROTECTED],ou=People,dc=tritus,dc=ca Hayo Schmidt Adam Sherman schrieb: I am trying to get JNDIRealm to authenticate against my LDAP tree: Realm className

Re: JNDIRealm: Authentication Failing

2003-07-28 Thread Hayo Schmidt
Is 'mail' the naming value? This means, if you export to an ldif file you should find a line dn: [EMAIL PROTECTED],ou=People,dc=tritus,dc=ca Hayo Schmidt Adam Sherman schrieb: I am trying to get JNDIRealm to authenticate against my LDAP tree: Realm className

JNDIRealm using LDAP with SSL

2003-07-28 Thread Chris Egolf
Does anyone have any experience getting ldaps working w/ the JDNIRealms in Tomcat 4.1.24? Regular LDAP is working fine, but when I change the connection URL to ldaps://ldap-host:636 I get the following error: 2003-07-28 09:40:49 JNDIRealm[Standalone]: Connecting to URL ldaps://10.1.1.50:636

Re: JNDIRealm using LDAP with SSL

2003-07-28 Thread Jeff Tulley
: 2003-07-28 09:40:49 JNDIRealm[Standalone]: Connecting to URL ldaps://10.1.1.50:636 2003-07-28 09:40:50 JNDIRealm[Standalone]: Exception performing authentication javax.naming.CommunicationException: simple bind failed: 10.1.1.50:636 [Root exception is javax.net.ssl.SSLException: Connection has been

Re: JNDIRealm using LDAP with SSL

2003-07-28 Thread Chris Egolf
Jeff Tulley wrote: We've done exactly that. What you need to do is import the root certificate into a .keystore file. I'm not sure if Tomcat will pick up the default cacerts file, or if you always have to specify it like we did (-Djavax.net.ssl.trustStore=sys:/adminsrv/conf/.keystore etc) My

JNDIRealm: Authentication Failing

2003-07-27 Thread Adam Sherman
I am trying to get JNDIRealm to authenticate against my LDAP tree: Realm className=org.apache.catalina.realm.JNDIRealm debug=200 connectionURL=ldap://localhost:389; userBase=ou=People,dc=tritus,dc=ca userSearch=(mail={0}) roleBase=ou=Groups,dc=tritus

how to set up JNDIRealm in tomcat4.1.24 bundled with Jboss

2003-07-14 Thread seera naveen
Hi, I have successfully setup JNDIRealm for FORM based authentication and it is working perfectly in Standalone Tomcat4.1.24. However, I am unable to do the same in Tomcat4.1.24 bundled with JBoss. Could any body please help me out in setting up JNDIRealm in Tomcat4.1.24 bundled with JBoss

REPOST: CLIENT-CERT and JNDIRealm

2003-06-06 Thread Mario Ivankovits
of my code directly in an class (say) JNDIRealmCert, and one could simply override an abstract certToUser method. I have tried to use CLIENT-CERT to authenticate the user for our application. JNDIRealm do not support such authentication, so i have tried to implement it. For our infrastructure my

ActiveDirectory not following referrals when using JNDIRealm

2003-06-06 Thread Bradley M. Handy
I'm using Tomcat 4.1.24 (win32) and I have my JNDIRealm configured like so: Realm className=org.apache.catalina.realm.JNDIRealm debug=5 referrals=follow connectionURL=ldap://vader.arbor.edu; alternateURL=ldap://bsod.arbor.edu; userBase

Re: ActiveDirectory not following referrals when using JNDIRealm

2003-06-06 Thread Bradley M. Handy
I figured it out. The credentials I was using the creation of the InitialDirContext didn't have enough permissions (for some weird reason). I got it to work when I used a different account. Brad Handy At 11:28 AM 6/6/2003, you wrote: I'm using Tomcat 4.1.24 (win32) and I have my JNDIRealm

Tomcat JNDIRealm subtree role enumeration

2003-05-29 Thread Markus Van Heerden
that is organized as follows: dn: cn=user,ou=Groups,o=Canada,... uniqueMember: cn=somecompany,ou=Groups,o=Canada,... and dn: cn=somecompany,ou=Groups,o=Canada,... uniqueMember: uid=someuser,ou=People,o=Canada,... My Tomcat(4.0.6) JNDIRealm configuration is as follows: Realm className

RE: Anyone successfully authenticating Tomcat users w/ windows login info using a JNDIRealm?

2003-04-01 Thread Darian Shimy
using a JNDIRealm? If you have multiple domains, I think your out of luck. If you run a single active directory domain, you *might* be able to do something like this: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://need.morecowbell.com:389; userBase

Anyone successfully authenticating Tomcat users w/ windows login info using a JNDIRealm?

2003-03-26 Thread Dan Payne
I'm looking for some assistance in setting up single-sign on with our windows 2000 intranet and Tomcat using Windows Active Directory and a Tomcat JINDIRealm and LDAP. What I'm essentially looking for is HttpServletRequest.getRemoteUser() to return the username used to authenticate to the Windows

Re: Anyone successfully authenticating Tomcat users w/ windows logininfo using a JNDIRealm?

2003-03-26 Thread Tim Funk
If you have multiple domains, I think your out of luck. If you run a single active directory domain, you *might* be able to do something like this: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://need.morecowbell.com:389; userBase=dc=more,dc=morecowbell,dc=com

Send parameters to the JNDIRealm

2003-03-11 Thread mgp2
Hi. I have an application that it connects to a servlet and send it a set of parameters through OutputStream. I have a JNDIRealm installed and when the application connects to the servlet, my Realm can't to map these parameters (with the client certificate) a none authenticate() method. What

Get URL within JNDIRealm

2003-02-24 Thread Manuel GP
Hi... I've making a JNDIRealm with LDAP access and I need to get the URL where JNDIRealm is called. I've various security constraints and I would like to distinguish the protected zones. How I can to get the URL within of my own JNDIRealm

Retrieve parameters from web.xml in my own JNDIRealm

2003-02-24 Thread Manuel GP
I've making my own JNDIRealm and my web application has various protected zones. In my JNDIRealm I would like to retrieve the parameters from web.xml (security-constraint subelements) related with the protected zones. For example, in web.xml file I have the following lines: security

Searches on JNDIRealm

2003-02-18 Thread Tomcat User
Hi all. I have making a JNDIRealm for LDAP connections (the JNDIRealm to have to retrieve client certificates from LDAP). I would like to realize searches only for Organization Unit (Organization and Country are fixed); though, the client DN is CN - OU - OU - C (the root search for my LDAP

Re: JNDIRealm login failure

2003-01-07 Thread John Holman
has succeeded other users can authenticate straight away - until the next long period of inactivity. You may be able fix the problem by disabling timeout on the directory server. (You don't say which directory server you are using). Really there should be an option for JNDIRealm to check whether

JNDIRealm login failure

2003-01-06 Thread Gil Chilton
I have created a simple tomcat web app that uses a JNDIRealm for authentication per the instructions in the Tomcat 4.1 documentation. When I start tomcat, the login process for this web app works fine for a few minutes or logins. Eventually, I reach a state where the first login always fails

JNDIRealm expires?

2002-10-08 Thread Vincent Stoessel
I have been able to successfully set up a JNDIRealm in tomcat for authentication. Only problem is after about 12 (rough guess) I get the dreaded black page instead of seeing my login form. The workaround is to restart tomcat. Obviously, this won't work well for a always-on service. Maybe

AW: JNDIRealm expires?

2002-10-08 Thread Vincent Stoessel
I apoligize for the false alarm. My password had expired (arghh) that is why the login process failed. Back to the regularly scheduled program. Vincent Stoessel wrote: I have been able to successfully set up a JNDIRealm in tomcat for authentication. Only problem is after about 12 (rough guess

RE: JNDIRealm and 4.1.10 with iPlanet

2002-09-24 Thread Douglas L Stewart
Looks like you are using parentheses around the 0 rather than brackets. That is probably why it is being passed literal rather than being expanded. --- Sorry to jump in on this discussion. But I think people with LDAP experience are having a look on it. Realm

Re: JNDIRealm and 4.1.10 with iPlanet

2002-09-24 Thread Douglas L Stewart
Subject: JNDIRealm and 4.1.10 with iPlanet I'm using Tomcat 4.1.10 trying to authenticate against iPlanet Directory Server 5.0. I've created a Realm inside of the Engine declaration: Realm className=org.apache.catalina.realm.JNDIRealm debug=999 connectionName=cn

JNDIRealm and 4.1.10 with iPlanet

2002-09-23 Thread Douglas L Stewart
=People, dc=my-company, dc=com / I'm getting this in the log when I start Tomcat: 2002-09-23 11:09:49 JNDIRealm[Standalone]: Connecting to URL ldap://192.168.90.120:11592 According to the documentation putting the Realm declaration in the Engine section should make it used globally, but when I

  1   2   >