well finally after lots of troubleshooting, i now have openldap up and running and i can add ldif's using slapadd etc. I've added the Manager ldif with the following info in the ldif:
dn: cn=Manager,dc=global-drum,dc=com objectclass: organizationalRole cn: Manager cn: manager cn: admin description: Directory Manager
slappadd comes back with: added: "cn=Manager,dc=global-drum,dc=com" (000000002) The only problem that i now have, is that when i use a windows ldap client, i can log into the ldap server anonymously, and view things (not add) and when i try to login with Manager, it says:
Invalid DN syntax
Since i am running slapd with -d -1, i can see the results of the connection attempt.
ldap_read: want=8, got=8 0000: 30 19 02 01 01 60 14 02 0....`.. ldap_read: want=19, got=19 0000: 01 03 04 07 4d 61 6e 61 67 65 72 80 06 72 62 68 ....Manager..pas 0010: 34 31 39 swd ber_get_next: tag 0x30 len 25 contents: ber_dump: buf=0x0825d1a8 ptr=0x0825d1a8 end=0x0825d1c1 len=25 0000: 02 01 01 60 14 02 01 03 04 07 4d 61 6e 61 67 65 ...`......Manage 0010: 72 80 06 72 62 68 34 31 39 r..passwd ber_get_next ldap_read: want=8 error=Resource temporarily unavailable ber_get_next on fd 13 failed errno=11 (Resource temporarily unavailable) daemon: select: listen=7 active_threads=0 tvp=zero daemon: select: listen=8 active_threads=0 tvp=zero do_bind ber_scanf fmt ({imt) ber: ber_dump: buf=0x0825d1a8 ptr=0x0825d1ab end=0x0825d1c1 len=22 0000: 60 14 02 01 03 04 07 4d 61 6e 61 67 65 72 80 06 `......Manager.. 0010: 72 62 68 34 31 39 passwd ber_scanf fmt (m}) ber: ber_dump: buf=0x0825d1a8 ptr=0x0825d1b9 end=0x0825d1c1 len=8 0000: 00 06 72 62 68 34 31 39 ..passwd
dnPrettyNormal: <Manager>
=> ldap_bv2dn(Manager,0) ldap_err2string <= ldap_bv2dn(Manager)=-4 Decoding error bind: invalid dn (Manager) send_ldap_result: conn=4 op=0 p=3 send_ldap_result: err=34 matched="" text="invalid DN" send_ldap_response: msgid=1 tag=97 err=34 ber_flush: 24 bytes to sd 13 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN ldap_write: want=24, written=24 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN conn=4 op=0 RESULT tag=97 err=34 text=invalid DN
Can someone shed some light on this?
Thanks and Kind Regards,
Ian Moroney Field Engineer
T: 020 8891 3010 M: 07791 965924 F: 020 8288 2591 www.techdivision.co.uk http://www.techdivision.co.uk/
TechDivision - Making IT Work
Ian-
Make sure you are entering "cn=Manager, dc=global-drum,dc=com" as your login in your LDAP client, not just "Manager".
HTH, -Matt
-----Original Message----- From: openldap-software-bounces+matt.smith=uconn.edu@OpenLDAP.org on behalf of Ian Moroney Sent: Thu 2007-01-11 11:00 To: openldap-software@openldap.org Cc: Subject: Invalid DN
well finally after lots of troubleshooting, i now have openldap up and running and i can add ldif's using slapadd etc. I've added the Manager ldif with the following info in the ldif:
dn: cn=Manager,dc=global-drum,dc=com objectclass: organizationalRole cn: Manager cn: manager cn: admin description: Directory Manager
slappadd comes back with: added: "cn=Manager,dc=global-drum,dc=com" (000000002) The only problem that i now have, is that when i use a windows ldap client, i can log into the ldap server anonymously, and view things (not add) and when i try to login with Manager, it says:
Invalid DN syntax
Since i am running slapd with -d -1, i can see the results of the connection attempt.
ldap_read: want=8, got=8 0000: 30 19 02 01 01 60 14 02 0....`.. ldap_read: want=19, got=19 0000: 01 03 04 07 4d 61 6e 61 67 65 72 80 06 72 62 68 ....Manager..pas 0010: 34 31 39 swd ber_get_next: tag 0x30 len 25 contents: ber_dump: buf=0x0825d1a8 ptr=0x0825d1a8 end=0x0825d1c1 len=25 0000: 02 01 01 60 14 02 01 03 04 07 4d 61 6e 61 67 65 ...`......Manage 0010: 72 80 06 72 62 68 34 31 39 r..passwd ber_get_next ldap_read: want=8 error=Resource temporarily unavailable ber_get_next on fd 13 failed errno=11 (Resource temporarily unavailable) daemon: select: listen=7 active_threads=0 tvp=zero daemon: select: listen=8 active_threads=0 tvp=zero do_bind ber_scanf fmt ({imt) ber: ber_dump: buf=0x0825d1a8 ptr=0x0825d1ab end=0x0825d1c1 len=22 0000: 60 14 02 01 03 04 07 4d 61 6e 61 67 65 72 80 06 `......Manager.. 0010: 72 62 68 34 31 39 passwd ber_scanf fmt (m}) ber: ber_dump: buf=0x0825d1a8 ptr=0x0825d1b9 end=0x0825d1c1 len=8 0000: 00 06 72 62 68 34 31 39 ..passwd
dnPrettyNormal: <Manager>
=> ldap_bv2dn(Manager,0) ldap_err2string <= ldap_bv2dn(Manager)=-4 Decoding error bind: invalid dn (Manager) send_ldap_result: conn=4 op=0 p=3 send_ldap_result: err=34 matched="" text="invalid DN" send_ldap_response: msgid=1 tag=97 err=34 ber_flush: 24 bytes to sd 13 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN ldap_write: want=24, written=24 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN conn=4 op=0 RESULT tag=97 err=34 text=invalid DN
Can someone shed some light on this?
Thanks and Kind Regards,
Ian Moroney Field Engineer
T: 020 8891 3010 M: 07791 965924 F: 020 8288 2591 www.techdivision.co.uk http://www.techdivision.co.uk/
TechDivision - Making IT Work
Ian Moroney wrote:
0000: 60 14 02 01 03 04 07 4d 61 6e 61 67 65 72 80 06 `......Manager.. 0010: 72 62 68 34 31 39 passwd ber_scanf fmt (m}) ber: ber_dump: buf=0x0825d1a8 ptr=0x0825d1b9 end=0x0825d1c1 len=8 0000: 00 06 72 62 68 34 31 39 ..passwd
dnPrettyNormal: <Manager>
=> ldap_bv2dn(Manager,0) ldap_err2string <= ldap_bv2dn(Manager)=-4 Decoding error bind: invalid dn (Manager) send_ldap_result: conn=4 op=0 p=3 send_ldap_result: err=34 matched="" text="invalid DN" send_ldap_response: msgid=1 tag=97 err=34 ber_flush: 24 bytes to sd 13 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN ldap_write: want=24, written=24 0000: 30 16 02 01 01 61 11 0a 01 22 04 00 04 0a 69 6e 0....a..."....in 0010: 76 61 6c 69 64 20 44 4e valid DN conn=4 op=0 RESULT tag=97 err=34 text=invalid DN Can someone shed some light on this?
The string "Manager" does not comply with DN syntax. Slapd is working as expected. Your client is broken or misused.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------------ Office: +39.02.23998309 Mobile: +39.333.4963172 Email: pierangelo.masarati@sys-net.it ------------------------------------------
openldap-software@openldap.org