Re: LDAP Authentication

2003-02-25 Thread Marcelino Cruz
Now that I've set my JNDIRealm, I get this stack trace while starting
Tomcat...

---

Feb 25, 2003 10:13:32 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Feb 25, 2003 10:13:32 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Feb 25, 2003 10:13:34 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Feb 25, 2003 10:13:35 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:905)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:857)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252
)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1240)
Feb 25, 2003 10:13:32 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Feb 25, 2003 10:13:32 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Feb 25, 2003 10:13:34 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Feb 25, 2003 10:13:35 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:905)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:857)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252
)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.j
ava:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)

- Original Message -
From: "Raible, Matt" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 9:57 AM
Subject: RE: LDAP Authentication


>

RE: LDAP Authentication

2003-02-25 Thread Raible, Matt
Here's what I have in my context to make it work:

ldap://drevil:389";
userPassword="userPassword"
 userPattern="uid={0},ou=people,dc=raibledesigns,dc=com"
roleBase="ou=groups,dc=raibledesigns,dc=com"
roleName="cn"
  roleSearch="(uniqueMember={0})" />



> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 7:13 AM
> To: 'Tomcat Users List'
> Subject: LDAP Authentication
> 
> 
> Hello:
> 
> Does anyone here has LDAP authentication set up through a JNDIRealm in
> server.xml and could send me a sample server.xml for me to look at?
> 
> Thanks!
> 
> MC
> 


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



RE: LDAP Authentication

2002-10-16 Thread alan sparago

Im not sure what you mean by BASIC/Form based authentication but if your
looking for an LDAP compliant API look into JNDI
http://java.sun.com/products/jndi/ or into Novells LDAP Classes for Java
http://developer.novell.com/ndk/doc/jldap/index.html?page=/ndk/doc/jldap
/jldapenu/data/a9032ak.html



Alan Sparago
[EMAIL PROTECTED]
602 494 9596


-Original Message-
From: Fred So [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 7:31 AM
To: [EMAIL PROTECTED]
Subject: LDAP Authentication

Hi All

Has anyone successfully implemented BASIC/Form-based
authentication against an LDAP data source?

Are there any external libraries available and what
are the configuration settings?

Thanks in advance

F

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: LDAP Authentication

2002-10-16 Thread Collins, Jim

If you look at the JNDI Realm Howto it will tell you how to do this.

Regards

Jim.

> -Original Message-
> From: Fred So [mailto:[EMAIL PROTECTED]]
> Sent: 16 October 2002 15:31
> To: [EMAIL PROTECTED]
> Subject: LDAP Authentication
> 
> 
> Hi All
> 
> Has anyone successfully implemented BASIC/Form-based
> authentication against an LDAP data source?
> 
> Are there any external libraries available and what
> are the configuration settings?
> 
> Thanks in advance
> 
> F
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: LDAP Authentication with Tomcat 4.1.3

2002-06-12 Thread Jonathan Eric Miller

Have a look at these links. There is some new functionality in Tomcat 4.1
that isn't mentioned in the main end-user document yet that is in the second
link. Namely, how to get it to bind as a user to do the authentication
rather than querying for a password and comparing it.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html

Jon

- Original Message -
From: "Josh Fenlason" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 8:28 AM
Subject: RE: LDAP Authentication with Tomcat 4.1.3


> I used to use Apache1.3.24 and Tomcat 3.2 and I did the ldap
authentication
> from Apache with two ou entries.  Now I'm moving to Apache2 but the ldap
> authentication modules don't seem to work, so I need to get Tomcat to do
the
> ldap authentication.  If anyone could give me a pointer, I would greatly
> appreciate it.  Thanks in advance.
> ,
> Josh.
>
> -Original Message-
> From: John Burgess [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 4:21 AM
> To: Tomcat Users List
> Subject: RE: LDAP Authentication with Tomcat 4.1.3
>
>
> Is having two OU entries OK?
>
> Best Wishes
> John Burgess
> [EMAIL PROTECTED]
> Tel: 01865 718666
> Fax: 01865 718600
>
>
> -Original Message-
> From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 9:12 PM
> To: Tomcat
> Subject: LDAP Authentication with Tomcat 4.1.3
>
>
> I'm trying to do LDAP Authentication in Tomcat 4.1.3.  I found some a
couple
> of links that said to use LDAPRealm in Tomcat's server.xml, but I still
> haven't had any luck.  Has anyone else been able to get this to work?
Here
> are the two Realm elements that I've tried in server.xml.  Any help would
be
> greatly appreciated.  Thanks.
> ,
> Josh.
>
>  debug="1"
> directoryUrl = "ldap://corvette.mn.ptc.com:389";
> searchBindDN = "ou-jfenlason_r62DC,ou=jfenlason,l=Arden
Hills,o=Bethel"
> searchBindCredentials = "mypassword"
> searchBaseContext = "o=PTC"
> searchFilter = "cn={0}"
> searchScopeAsString = "sub"
> securityAttributes = "securityEquals"
> attributesReadByOwner = "true"
> connectionMaxPoolSize = "10"
> ldapVersion = "3" />
>  ldapContextFactory="com.sun.jndi.ldap.LdapCtxFactory"
> ldapServer="ldap.corvette.mn.com"
> ldapPort="389"
> ldapDN="cn=%u,ou=jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel"
> ldapGroupContext="ou=jfenlason_r62DC,ou=jfenlason,l=Arden
> Hills,o=Bethel"
>
>
ldapGroupFilter="(&(uniquemember=%dn)(objectclass=groupOfUniqueNames))"
> ldapRoleAttribute="cn"
> debug="99" />
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




RE: LDAP Authentication with Tomcat 4.1.3

2002-06-12 Thread Josh Fenlason

I used to use Apache1.3.24 and Tomcat 3.2 and I did the ldap authentication
from Apache with two ou entries.  Now I'm moving to Apache2 but the ldap
authentication modules don't seem to work, so I need to get Tomcat to do the
ldap authentication.  If anyone could give me a pointer, I would greatly
appreciate it.  Thanks in advance.
,
Josh.

-Original Message-
From: John Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:21 AM
To: Tomcat Users List
Subject: RE: LDAP Authentication with Tomcat 4.1.3


Is having two OU entries OK?

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:12 PM
To: Tomcat
Subject: LDAP Authentication with Tomcat 4.1.3


I'm trying to do LDAP Authentication in Tomcat 4.1.3.  I found some a couple
of links that said to use LDAPRealm in Tomcat's server.xml, but I still
haven't had any luck.  Has anyone else been able to get this to work?  Here
are the two Realm elements that I've tried in server.xml.  Any help would be
greatly appreciated.  Thanks.
,
Josh.

ldap://corvette.mn.ptc.com:389";
searchBindDN = "ou-jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel"
searchBindCredentials = "mypassword"
searchBaseContext = "o=PTC"
searchFilter = "cn={0}"
searchScopeAsString = "sub"
securityAttributes = "securityEquals"
attributesReadByOwner = "true"
connectionMaxPoolSize = "10"
ldapVersion = "3" />



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


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



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




RE: LDAP Authentication with Tomcat 4.1.3

2002-06-12 Thread John Burgess

Is having two OU entries OK?

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Josh Fenlason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:12 PM
To: Tomcat
Subject: LDAP Authentication with Tomcat 4.1.3


I'm trying to do LDAP Authentication in Tomcat 4.1.3.  I found some a couple
of links that said to use LDAPRealm in Tomcat's server.xml, but I still
haven't had any luck.  Has anyone else been able to get this to work?  Here
are the two Realm elements that I've tried in server.xml.  Any help would be
greatly appreciated.  Thanks.
,
Josh.

ldap://corvette.mn.ptc.com:389";
searchBindDN = "ou-jfenlason_r62DC,ou=jfenlason,l=Arden Hills,o=Bethel"
searchBindCredentials = "mypassword"
searchBaseContext = "o=PTC"
searchFilter = "cn={0}"
searchScopeAsString = "sub"
securityAttributes = "securityEquals"
attributesReadByOwner = "true"
connectionMaxPoolSize = "10"
ldapVersion = "3" />



--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ldap authentication with tomcat

2001-08-24 Thread Boris Niyazov

Depending on your requirements you may want to create a auth servlet that 
authenticates users to ldap server using for ex netscape's ldapjdk package or 
JDNI classes, and then keep users login in the session object. All you protected 
servlets/jsps should assert the session checking if user's info is in the 
session.

Another option: to use JNDIRealm, but I can't advise on this b/c I never used 
it.

  - Boris



>
>Hi,
>
>I am new to the subject:
>How can I enforce ldap authentication for certain resources
>using tomcat - similar to the
>
>
>Options FollowSymLinks
>AllowOverride None
>AuthType Basic
>AuthName "Authentication"
>AuthLDAPURL ldap://ldapUrl
>require valid-user
>
>
>for apache in order to be able to get user information via
>e.g. getRemoteUser() etc. ?
>
>And by the way: Where is a valuable description of the configuration
>with server.xml and web.xml?
>
>Thanks.
>
>Astrid
>
>




Re: ldap authentication with tomcat

2001-08-22 Thread Jonathan Eric Miller

I think JNDIRealm will do this. However, it seems to be a pretty newly added
feature and as far as I can tell, it isn't documented very well. I've been
wondering the same thing. If you figure it out, please let me know. You
might want to do a search of the mail list archives. I saw a few messages
about it in there. However, it looked like it was about a 3rd party add-on
that did it. I'm pretty sure the functionality now exists in it natively. I
think it's configured similar to JDBCRealm in server.xml. So, I've been
thinking that I might try to figure that out first, since, it seems to be
better documented.

Jon

- Original Message -
From: "Astrid Wagner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 6:04 AM
Subject: ldap authentication with tomcat


> Hi,
>
> I am new to the subject:
> How can I enforce ldap authentication for certain resources
> using tomcat - similar to the
>
> 
> Options FollowSymLinks
> AllowOverride None
> AuthType Basic
> AuthName "Authentication"
> AuthLDAPURL ldap://ldapUrl
> require valid-user
> 
>
> for apache in order to be able to get user information via
> e.g. getRemoteUser() etc. ?
>
> And by the way: Where is a valuable description of the configuration
> with server.xml and web.xml?
>
> Thanks.
>
> Astrid
>
>
>