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

AW: Proofed slapd.conf + *.ldif example ??



:: here is one i setup last night, which works for me:

What a pity, but it failed with following result (which was also my
initial problem, not been able to ldapadd):

<try>

shell> ldapadd -f basic.ldif -x -D "cn=admin,o=linuxpowered,c=us" -w
secret

adding new entry "o=linuxpowered,c=us"
ldap_add: Operations error

ldif_record() = 1

</try>

a dump of the debug information (calling ldapadd -d '-1' ..) is at the
appendix of the email.

:: hope this helps. ldap isn't easy, something that is badly 
:: needed is more examples. it took several hours of trial and 

U R SO RIGHT !!!

:: error and research to get the above working to the point 
:: that i have a basic understanding. too much info on LDAP is 
:: generalized, on what kind of information, more info is 
:: needed on how to accomplish specific tasks using LDAP. I 
:: hope to write a page on doing this in the comming weeks.

A good bullet-proof documentation would be a good help for take the big
learning-curve when getting openldap configured/setup.

:: nate

Another problem are the very meager error/warning messages of the
executables. 

Anyhow, thank you nate.
Murat
 
Appendix----------------------------

shell> ldapadd -d '-1' -f basic.ldif -x -D
"cn=admin,o=linuxpowered,c=us" -w secret

ldap_create
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: localhost
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_open_defconn: successful
ldap_send_server_request
ber_flush: 48 bytes to sd 4
  0000:  30 2e 02 01 01 60 29 02  01 03 04 1c 63 6e 3d 61
0....`).....cn=a
  0010:  64 6d 69 6e 2c 6f 3d 6c  69 6e 75 78 70 6f 77 65
dmin,o=linuxpowe
  0020:  72 65 64 2c 63 3d 75 73  80 06 73 65 63 72 65 74
red,c=us..secret
ldap_write: want=48, written=48
  0000:  30 2e 02 01 01 60 29 02  01 03 04 1c 63 6e 3d 61
0....`).....cn=a
  0010:  64 6d 69 6e 2c 6f 3d 6c  69 6e 75 78 70 6f 77 65
dmin,o=linuxpowe
  0020:  72 65 64 2c 63 3d 75 73  80 06 73 65 63 72 65 74
red,c=us..secret
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: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Sat Mar  2 11:19:32 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
ldap_read: want=1, got=1
  0000:  30                                                 0
ldap_read: want=1, got=1
  0000:  0c                                                 .
ldap_read: want=12, got=12
  0000:  02 01 01 61 07 0a 01 00  04 00 04 00               ...a........
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x100b6940 ptr=0x100b6940 end=0x100b694c len=12
  0000:  02 01 01 61 07 0a 01 00  04 00 04 00               ...a........
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x100b6940 ptr=0x100b6943 end=0x100b694c len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........
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_dump: buf=0x100b6940 ptr=0x100b6943 end=0x100b694c len=9
  0000:  61 07 0a 01 00 04 00 04  00                        a........
ber_scanf fmt (}) ber:
ber_dump: buf=0x100b6940 ptr=0x100b694c end=0x100b694c len=0

ldap_msgfree
adding new entry "o=linuxpowered,c=us"
ldap_add
ldap_send_initial_request
ldap_send_server_request
ber_flush: 82 bytes to sd 4
  0000:  30 50 02 01 02 68 4b 04  13 6f 3d 6c 69 6e 75 78
0P...hK..o=linux
  0010:  70 6f 77 65 72 65 64 2c  63 3d 75 73 30 34 30 1d
powered,c=us040.
  0020:  04 0b 6f 62 6a 65 63 74  43 6c 61 73 73 31 0e 04
..objectClass1..
  0030:  0c 6f 72 67 61 6e 69 7a  61 74 69 6f 6e 30 13 04
.organization0..
  0040:  01 6f 31 0e 04 0c 6c 69  6e 75 78 70 6f 77 65 72
.o1...linuxpower
  0050:  65 64                                              ed
ldap_write: want=82, written=82
  0000:  30 50 02 01 02 68 4b 04  13 6f 3d 6c 69 6e 75 78
0P...hK..o=linux
  0010:  70 6f 77 65 72 65 64 2c  63 3d 75 73 30 34 30 1d
powered,c=us040.
  0020:  04 0b 6f 62 6a 65 63 74  43 6c 61 73 73 31 0e 04
..objectClass1..
  0030:  0c 6f 72 67 61 6e 69 7a  61 74 69 6f 6e 30 13 04
.organization0..
  0040:  01 6f 31 0e 04 0c 6c 69  6e 75 78 70 6f 77 65 72
.o1...linuxpower
  0050:  65 64                                              ed
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: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Sat Mar  2 11:19:32 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
ldap_read: want=1, got=1
  0000:  30                                                 0
ldap_read: want=1, got=1
  0000:  0c                                                 .
ldap_read: want=12, got=12
  0000:  02 01 02 69 07 0a 01 01  04 00 04 00               ...i........
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x100b68e8 ptr=0x100b68e8 end=0x100b68f4 len=12
  0000:  02 01 02 69 07 0a 01 01  04 00 04 00               ...i........
ldap_read: message type add msgid 2, original id 2
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x100b68e8 ptr=0x100b68eb end=0x100b68f4 len=9
  0000:  69 07 0a 01 01 04 00 04  00                        i........
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_dump: buf=0x100b68e8 ptr=0x100b68eb end=0x100b68f4 len=9
  0000:  69 07 0a 01 01 04 00 04  00                        i........
ber_scanf fmt (}) ber:
ber_dump: buf=0x100b68e8 ptr=0x100b68f4 end=0x100b68f4 len=0

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
  0000:  30 05 02 01 03 42 00                               0....B.
ldap_write: want=7, written=7
  0000:  30 05 02 01 03 42 00                               0....B.
ldap_free_connection: actually freed