create new user
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > create new user




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    create new user  
Andre Fonseca


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:45 PM

Hi there,

I created a new LDAP user - ldif is attached - but I could not connect
in the LDAP server using this user/password (credentials??).

What is the objectClass'es that I need to use?

The atribute I used to set the password is "userPassword". - plain
mode, not crypted. (but its crypted in the ldif... :|)

I need to set parent properties to connect in the server??

The Java Exception is below.

Any help is welcome...

OBS: I used JXplorer to create the user...
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(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:3
93)
at
com.ca.directory.jxplorer.broker.JNDIBroker.processRequest(JNDIBroker.java:3
58)
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)



 ________________________________________
_______________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com



Attachment: user.ldif
This has been downloaded 0 time(s).



[ Post a follow-up to this message ]



    Re: create new user  
Stefan Zoerner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:45 PM

Andre Fonseca wrote:
> Hi there,
>
> I created a new LDAP user - ldif is attached - but I could not connect
> in the LDAP server using this user/password (credentials??).
>
> What is the objectClass'es that I need to use?

Hello Andre!

Your object classes work, at least I was able to import a modified
version of you user into my ApacheDS 1.0 RC1 directory:

version: 1
dn: cn=user,dc=example,dc=com
objectClass: organizationalPerson
objectClass: person
objectClass: top
cn: user
sn: user
userPassword: password

What are the values you use for the credentials? In my case I used
User: cn=user,dc=example,dc=com
Pwd: password

Note that you have to use the full DN.

> The atribute I used to set the password is "userPassword". - plain
> mode, not crypted. (but its crypted in the ldif... :|)

One problem might be the form of you userPassword attribute in your
LDIF. Compare my version (one  with your version (2 :

userPassword:: dXNlcg==

> I need to set parent properties to connect in the server??

If using another form for the userPassword does not help, please explain
in detail, how you import the user, and whether you can read its values
with the admin account (and a search, for instance) after the import.

I hope this helps. Greetings from Hamburg,
Stefan







[ Post a follow-up to this message ]



    Re: create new user  
Ersin Er


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-06 10:45 PM

I've just followed the instructions here:

[url]http://directory.apache.org/subprojects/apacheds/docs/users/authentication.html[/u
rl]

without any problems. (created and binded)

--
Ersin

Andre Fonseca wrote:
> Hi there,
>
> I created a new LDAP user - ldif is attached - but I could not connect
> in the LDAP server using this user/password (credentials??).
>
> What is the objectClass'es that I need to use?
>
> The atribute I used to set the password is "userPassword". - plain
> mode, not crypted. (but its crypted in the ldif... :|)
>
> I need to set parent properties to connect in the server??
>
> The Java Exception is below.
>
> Any help is welcome...
>
> OBS: I used JXplorer to create the user...
> javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
> Credentials]
> 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(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:4
2)
> 	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:8
77)
> 	at com.ca.directory.jxplorer.broker.Broker.run(Broker.java:124)
> 	at java.lang.Thread.run(Unknown Source)
>
>
>
>  ________________________________________
_______________
> Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador ago
ra!
> http://br.acesso.yahoo.com







[ Post a follow-up to this message ]



    Re: create new user  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-17-06 07:45 AM

Andre Fonseca wrote:
> Hi there,
>
> I created a new LDAP user - ldif is attached - but I could not connect
> in the LDAP server using this user/password (credentials??).
>
> What is the objectClass'es that I need to use?
At this point in time you only need the presence of a userPassword field.
> The atribute I used to set the password is "userPassword". - plain
> mode, not crypted. (but its crypted in the ldif... :|)
>
It's not really encrypted but base64 encoded.  The userPassword
attributeType actually has a binary syntax.  According to the LDIF
specification all binary attributes must be base64 encoded.
> I need to set parent properties to connect in the server??
>
I could not parse this question.
> The Java Exception is below.
>
> Any help is welcome...
>
> OBS: I used JXplorer to create the user...
> javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
> Credentials]
>
This means you did not:
(1) provide the correct principalDn and/or
(2) provide the correct password

HTH,
Alex







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register