Jyoti Dinkar

Greenhorn
+ Follow
since Apr 23, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jyoti Dinkar

I tried this also..

it doesn't help:(
to login I still need to give the complete pattern:


10 years ago
thanks Carles for your reply.

but I want to login with userName only,Is that possible??
If yes,then how??
10 years ago
Hi friends,

I'm having a really hard time configuring my tomcat to authenticate a user by AD .

My server structure is :
users -->CN=testUser,OU=tomcat,OU=system,DC=company,DC=com
Roles-->CN=Admin,OU=Roles,OU=tomcat,OU=system,DC=company,DC=com

server.xml file :
<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://SERVER_URL:389"
connectionName="CN=testUser,OU=tomcat,OU=system,DC=company,DC=com"
connectionPassword="**Password**"
userBase="OU=tomcat,OU=system,DC=company,DC=com"
userSearch="(CN={0})"
userSubtree="true"
roleBase="OU=Roles,OU=tomcat,OU=system,DC=company,DC=com"
roleName="Admin"
roleSearch="(member={0})"
roleSubtree="true"
/>

I am using basic authentication in my web.xml:

<security-constraint>
<web-resource-collection>
<web-resource-name>Logging Area</web-resource-name>
<description>
Authentication for registered users.
</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>*</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>enter Username</realm-name>
</login-config>

Problem is :When i try to login with userName: testUser ,I am getting error message :javax.naming.InvalidNameException.
But when i login with userName:CN=testUser,OU=tomcat,OU=system,DC=company,DC=com,I can login .
I dont understand why I am not able to login with just userName only???
Or what changes i need to do ,to make it work correctly




10 years ago