Apache Directory Project - Connecting using RDN

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > March 2006 > Connecting using RDN





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Connecting using RDN
Andre Fonseca

2006-03-30, 11:57 pm

Hi there,

Well first thanks for all the answers in the forum, thats my third time
here.. =)

My question now is how to connect on ApacheDS using a RDN

Im using the same user descripted on the manual
http://directory.apache.org/subproj...entication.html

Im sending also the print-screens and below is the stack..

The stack:
javax.naming.CommunicationException: Request: 1 cancelled
at com.sun.jndi.ldap.LdapRequest.getReplyBer(Unknown Source)
at com.sun.jndi.ldap.Connection.readReply(Unknown Source)
at com.sun.jndi.ldap.LdapClient.ldapBind(Unknown Source)
at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
at com.ca.commons.jndi.JNDIOps.openContext(JNDIOps.java:412)
at com.ca.commons.jndi.JNDIOps.<init>(JNDIOps.java:101)
at com.ca.commons.jndi.BasicOps.<init>(BasicOps.java:62)
at com.ca.commons.jndi.AdvancedOps.<init>(AdvancedOps.java:58)
at com.ca.commons.naming.DXOps.<init>(DXOps.java:37)
at
com.ca.directory.jxplorer.broker.CBGraphicsOps.<init>(CBGraphicsOps.java:42)
at
com.ca.directory.jxplorer.broker.JNDIBroker.openConnection(JNDIBroker.java:393)
at
com.ca.directory.jxplorer.broker.JNDIBroker.processRequest(JNDIBroker.java:358)
at
com.ca.directory.jxplorer.broker.Broker.processQueue(Broker.java:158)
at
com.ca.directory.jxplorer.broker.JNDIBroker.processQueue(JNDIBroker.java:877)
at com.ca.directory.jxplorer.broker.Broker.run(Broker.java:124)
at java.lang.Thread.run(Unknown Source)

________________________________________
__________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/
Alex Karasulu

2006-03-30, 11:57 pm

Andre Fonseca wrote:
> Hi there,
>
> Well first thanks for all the answers in the forum, thats my third time
> here.. =)
>

Which forum? We don't have a forum out there. Can you point us to what
you used?
> My question now is how to connect on ApacheDS using a RDN
>

Hmmm the user principal DN should always be a DN not a relative DN (RDN).
> Im using the same user descripted on the manual
> http://directory.apache.org/subproj...entication.html
>

Hmmm which user the admin user or the bogus jdoe user?

Alex

Emmanuel Lecharny

2006-03-30, 11:57 pm

Andre Fonseca a écrit :

>Hi there,
>
>

Hi Andre

>Well first thanks for all the answers in the forum, thats my third time
>here.. =)
>
>

You ar enot anymore an early bird then

>My question now is how to connect on ApacheDS using a RDN
>
>Im using the same user descripted on the manual
>http://directory.apache.org/subproj...entication.html
>
>

First, a question : have you imported the ldif file into the server ? If
not, do it.

>Im sending also the print-screens and below is the stack..
>
>

The parameters you entered are not correct. 'jdoe' is not a valid DN.
Just try with 'uid=jdoe, ou=users, ou=system', it should work if you
have imported the ldif file.

Hope it helps !

givenname=Emmanuel, sn=Lécharny


Andre Fonseca

2006-03-30, 11:57 pm

Hi Alex..

--- Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org> escreveu:

> Andre Fonseca wrote:
> time
> Which forum? We don't have a forum out there. Can you point us to
> what
> you used?


Sorry, I was talking about the dev list =)

> Hmmm the user principal DN should always be a DN not a relative DN
> (RDN).
>

http://directory.apache.org/subproj...entication.html

So, thats the problem. I´d not like to connect using a such big string
as a DN can be, I´d like to connect using for example only
"user=jodoe,password=pass".

Im doing a front end to the final user, and I think its could be a
little boring to them to login as a full DN... =)

The RDN can be a "alias" for the DN?? I really didn´t understand yet
what´s the function of the RDN =(

> Hmmm which user the admin user or the bogus jdoe user?

I can connect normaly using both the admin and jdoe, but only using the
DN´s... =(

Tkx, André

________________________________________
__________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/

Andre Fonseca

2006-03-30, 11:57 pm

Hi Emmanuel,

--- Emmanuel Lecharny <elecharny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> escreveu:

> Andre Fonseca a écrit :
>
> Hi Andre
>
> time
> You ar enot anymore an early bird then

Hehe, all right =)

>
>
>http://directory.apache.org/subproj...entication.html
> First, a question : have you imported the ldif file into the server ?
> If
> not, do it.

Yes, I imported the user using the ldif....

>
> The parameters you entered are not correct. 'jdoe' is not a valid DN.
>
> Just try with 'uid=jdoe, ou=users, ou=system', it should work if you
> have imported the ldif file.

Well, as I answered in the Alex email I´d like to login using only
user/pass, I dont know if its possible....

Tkx again =)



________________________________________
_______________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
http://br.info.mail.yahoo.com/

Stefan Zoerner

2006-03-30, 11:57 pm

Andre Fonseca wrote:
>
> Well, as I answered in the Alex email I´d like to login using only
> user/pass, I dont know if its possible....
>

Hi Andre!

In LDAP simple bind, only the DN/password pair is intended for
authentication. So the system works as expected. If applications provide
the functionality you described (user/pass), they often do this:

1. User enters user and pass
2. Application performs an LDAP search operation to find the user entry
(DN) which matches the given user ID.
3. If an entry is found, application perform a simple bind with DN of
the entry and the given password

(If no entry is found, the user does not exist. If more than one entry
is found, the user ID is not unique within the search scope).

I hope this helps

Greetings from Hamburg,
Stefan


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com