LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-13-2013, 11:44 PM   #1
Linuxupdate
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
ldap_create
Enter LDAP Password:
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_pvt_connect: fd: 4 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
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:
Empty
ld 0x1dc1320 response count 0
ldap_chkResponseList ld 0x1dc1320 msgid 1 all 1
ldap_chkResponseList returns ld 0x1dc1320 NULL
ldap_int_select
read1msg: ld 0x1dc1320 msgid 1 all 1
ber_get_next
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)
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_msgfree
ldap_err2string
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
vishesh
Member
 
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

Thanks
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:06 AM.

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