473,793 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JNDIRealm (LDAP) Configuration Problem

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.JNDIReal m"
connectionURL=" ldap://ldap.mycompany. com:389"
userBase="ou=ac tive,ou=employe es,ou=people,o= mycompany.com"
userSearch="(ui d={0})"
roleSearch="(un iqueMember={0}) "
roleName="cn"
debug="99"
contextFactory= "com.sun.jndi.l dap.LdapCtxFact ory"
/>

3) In my application "web.xml" file i have added the following

<security-constraint>
<web-resource-collection>
<web-resource-name>Nrt</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>CEC</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
Jul 17 '05 #1
0 3662

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1812
by: Berislav Lopac | last post by:
I apologize for the loud subject, but I am on a very tight schedule and I simply *need* to get things going. For some reason, I can't get the LDAP extension to work on my WindowsXP/Apache configuration, and I need it to make a simple script for querying LDAP servers. I tried with PHP5, and now I get the same problem with PHP4: when the required auxiliary dlls are correctly installed, I get the error "The operating system cannot run %1"....
3
4983
by: jeremy | last post by:
Hello. I have an asp.net application that resides on a non-DC / BDC Sharepoint Server (although it is logged into the domain). The application will perform lookups based on the current user (integrated auth) to an LDAP server which requires no login (AuthenticationTypes.None). When I run it, I get the following ambiguous error: Security Exception Description: The application attempted to perform an operation not allowed
3
1668
by: maria.s | last post by:
Hi, I've got a problem with an LDAP query submitted from my ASP.NET application. Configuration: Windows 2003 Server Standard Ed., the application uses Windows Integrated Authentication and is configured with <identity impersonate=”true” /> I try to submit the following query: Dim IdentityName as String = Context.User.Identity.Name
2
2548
by: Tdar | last post by:
Sorry for the dup post but looking for a response and this is being posted under my MSDN managed newsgroups handle and in a different newsgroup Hi, As I said in the past post I am using this Article http://msdn.microsoft.com/security/default.aspx?pull=/library/en-us/dnpag2/html/paght000026.asp I belive i have everthing all set but I get this error when trying to log into the site.
2
3256
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
5
1982
by: Jed Parsons | last post by:
Hi, authenticates a user against our ldap server.: User types in name and password, and module sees if name and password check out right with the ldap server. I see that it's pretty straightforward to do this with: import ldap l = ldap.open('our.ldap.server')
1
4967
by: Magnus R | last post by:
In VB.Net I'm trying to find out the names of what Administrative Groups exist by querying Active Directory. The problem is when I try and query the children of the key LDAP://CN=Administrative Groups, CN=ExchOrg, CN=Microsoft Exchange, CN=Services, CN=Configuration, CN=domain, CN=com I don't get anything except an error that the "Object doesn't exist on the server." However when I bind to this LDAP path using LDP.exe I can see the...
1
15219
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they can no longer connect to the domain controller. Ping resolves the domain controllers name to the correct ip nslookup finds the ip but can not resolve the name. When I attempt to log on to a machine on the domain it takes around twenty minutes...
2
5569
by: jo3c | last post by:
Hi.. Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 what im doing is simliar to ldapsearch in shell with my python script using python ldap module the result is not the correct encoding..
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.