[Date Prev][Date Next] [Chronological] [Thread] [Top]

Help for a newbie in LDAP, with a strange problem !



Hello All !

I'm new in OpenLdap, and I need some, help !

I would like to use the LDAP as the backend of my Samba Domain Controller !

I've found a good manual, that how to set up...etc:
http://samba.idealx.org/dist/samba-ldap-howto.pdf

I have followed this documentation, step by step and when I wanted to
prepare the very first initial entries I got the following errors.

Here are the config files: (See attached file: slapd.conf)(See attached
file: ldap.conf)(See attached file: baseorig.ldif)

I have no more idea, and I guess my config files are OK.

The system is a Redhat 7.2, with OPenLdap-2.0.23-4 from RPM !

Thanks in advance !


ldapadd -x -h 127.0.0.1 -D cn=Manager,dc=TESTD,dc=com -f baseorig.ldif -W
Enter LDAP Password:

adding new entry "dc=TESTD,dc=com"
ldap_add: Operations error
ldif_record() = 1


ldapadd -d 1 -x -h 127.0.0.1 -D cn=Manager,dc=TESTD,dc=com -f baseorig.ldif
-W                                                       ldap_create
Enter LDAP Password:
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: 127.0.0.1
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 4 tm: -1 async: 0
ldap_ndelay_on: 4
ldap_is_sock_ready: 4
ldap_ndelay_off: 4
ldap_int_sasl_open: host=ibmhu000s
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 46 bytes to sd 4
ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: 127.0.0.1  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Mon Apr 15 10:17:59 2002
** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
do_ldap_select
read1msg: msgid 1, all 1
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
read1msg:  0 new referrals
read1msg:  mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_scanf fmt (}) ber:
ldap_msgfree
adding new entry "dc=TESTD,dc=com"
ldap_add
ldap_send_initial_request
ldap_send_server_request
ber_flush: 66 bytes to sd 4
ldap_result msgid 2
ldap_chkResponseList for msgid=2, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 2
wait4msg continue, msgid 2, all 1
** Connections:
* host: 127.0.0.1  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Mon Apr 15 10:17:59 2002
** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=2, all=1
ldap_chkResponseList returns NULL
do_ldap_select
read1msg: msgid 2, all 1
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ldap_read: message type add msgid 2, original id 2
ber_scanf fmt ({iaa) ber:
read1msg:  0 new referrals
read1msg:  mark request completed, id = 2
request 2 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_scanf fmt (}) ber:
ldap_msgfree
ldap_perror
ldap_add: Operations error
ldif_record() = 1
ldap_unbind
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 4
ldap_free_connection: actually freed


Best Regards !

Viktor Posta



Attachment: slapd.conf
Description: Binary data

Attachment: ldap.conf
Description: Binary data

Attachment: baseorig.ldif
Description: Binary data