View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-13-2013, 11:44 PM   #1
LQ Newbie
Registered: May 2013
Location: Delhi India
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Unble access LDAP server

Hi All,

I am trying to setup LDAP server and while trying to add DC getting error Invalid Credential. I am sure I am putting right Password so tried running the command in debug mode. I am unbale to figure out where is the root cause of this issue.

Non Debug Mode Command execution
[root@instructor ldap]# ldapadd -D "cn=manager,dc=example,dc=com" -W -x -f build_root_ou.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

Debug mode Command execution
[root@instructor ldap]# ldapadd -D "cn=manager,dc=example,dc=com" -W -x -f build_root_ou.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
[root@instructor ldap]# ldapadd -D "cn=manager,dc=example,dc=com" -W -x -f build_root_ou.ldif -d 1
Enter LDAP Password:
ldap_new_connection 1 1 0
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying
ldap_pvt_connect: fd: 4 tm: -1 async: 0
ldap_open_defconn: successful
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 56 bytes to sd 4
ldap_result ld 0x1dc1320 msgid 1
wait4msg ld 0x1dc1320 msgid 1 (infinite timeout)
wait4msg continue ld 0x1dc1320 msgid 1 all 1
** ld 0x1dc1320 Connections:
* host: localhost port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Jun 14 10:11:27 2013

** ld 0x1dc1320 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x1dc1320 request count 1 (abandoned 0)
** ld 0x1dc1320 Response Queue:
ld 0x1dc1320 response count 0
ldap_chkResponseList ld 0x1dc1320 msgid 1 all 1
ldap_chkResponseList returns ld 0x1dc1320 NULL
read1msg: ld 0x1dc1320 msgid 1 all 1
ber_get_next: tag 0x30 len 16 contents:
read1msg: ld 0x1dc1320 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x1dc1320 0 new referrals
read1msg: mark request completed, ld 0x1dc1320 msgid 1
request done: ld 0x1dc1320 msgid 1
res_errno: 49, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_bind: Invalid credentials (49)

Please someone can assist how to get it fixed.

Scenario Information
OS : Redhat Enterprise linux 6
Old 06-14-2013, 10:23 AM   #2
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think you should use -x option for simple authentication

ldapadd -x -D "cn=manager,dc=example,dc=com" -W -x -f build_root_ou.ldif



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication for USB Access from ldap server as centralised selvaforum Linux - Security 1 03-08-2012 08:04 AM
EITHER can't access ldap server OR client isn't configured correctly nass Linux - Server 2 02-02-2012 06:28 PM
How to assign access privileges to users in LDAP server Neelima_MAV Linux - Networking 5 01-11-2010 05:23 AM
Unable to access 389-DS Server through remote LDAP Admin tool? your_shadow03 Linux - Newbie 2 01-09-2010 03:17 PM
Access point authentication with RADIUS server by LDAP as backend for authentic aravind1024004 Linux - Server 3 01-07-2009 07:19 AM

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration