LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unble access LDAP server (https://www.linuxquestions.org/questions/linux-server-73/unble-access-ldap-server-4175465941/)

Linuxupdate 06-13-2013 11:44 PM

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

vishesh 06-14-2013 10:23 AM

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


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