Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Sorry - I was too fast with the mouse not verifying that I was in the correct group. /Poul markt-2 wrote: > > On 27/04/2011 15:42, Kornmod wrote: >> >> Hi, >> >> I'm trying to create a simple resource for my web-app. My web-app has to >> connect to a ldap server to maintain users. I have cre

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Ian Darwin
If you are going to answer questions that are asked in the wrong list, rather than waiting until they are re-posted on the users list, please do so privately, or on the user list. Answering them on the wrong list leads to search engines finding the answer in the wrong list's archive and this leads

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Chris Beckey
You need to create the resource in your server.xml and then create a resource reference in the web app's context.xml. Sorry I don't have an example in front of me but the basics are: 1.) the resource element in the server.xml creates the resource 2.) the web.xml references the resource by an appli

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Mark Thomas
On 27/04/2011 15:42, Kornmod wrote: > > Hi, > > I'm trying to create a simple resource for my web-app. My web-app has to > connect to a ldap server to maintain users. I have created a context.xml in > my META-INF folder - with the following content: This question belongs on the users mailing lis

JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Hi, I'm trying to create a simple resource for my web-app. My web-app has to connect to a ldap server to maintain users. I have created a context.xml in my META-INF folder - with the following content: ldap://192.168.7.1:389/dc=blah,dc=com"; java.naming.security