Full_Name: Varnava Sergey Version: openldap-sasl-server-2.4.47 OS: FreeBSD 12.0-RELEASE URL: Submission from: (NULL) (86.62.75.82)
slapd configured to use cn=config
I'm trying to create database under cn=config with olcSuffix attribute set to DN with international UTF-8 characters.
`cat adddb.ldif` dn: olcDatabase=mdb objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: mdb olcSuffix:: ZGM90KHQvtC70L3Ri9GI0LrQvixkYz3QlNGD0YDQlNC+0LwK olcRootDN:: Y2490JTQuNGA0LXQutGC0L7RgCxkYz3QodC+0LvQvdGL0YjQutC+LGRjPdCU0YPRgNCU0L7QvAo= olcRootPW:: e1NTSEF9ZHVyc2VjcmV0Cg== olcDbIndex: objectClass eq olcDbDirectory: /var/db/openldap-data
When doing `ldapadd -x -w secret -f /root/adddb.ldif` I'm getting this error:
adding new entry "olcDatabase=mdb" ldap_add: Invalid syntax (21) additional info: olcSuffix: value #0 invalid per syntax
Some debug from log file:
... Mar 13 20:32:00 ldap slapd[2181]: send_ldap_result: conn=1004 op=0 p=3 Mar 13 20:32:00 ldap slapd[2181]: send_ldap_response: msgid=1 tag=97 err=0 Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on 1 descriptor Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on: Mar 13 20:32:00 ldap slapd[2181]: 13r Mar 13 20:32:00 ldap slapd[2181]: Mar 13 20:32:00 ldap slapd[2181]: daemon: read activity on 13 Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=6 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=7 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=8 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: connection_get(13): got connid=1004 Mar 13 20:32:00 ldap slapd[2181]: connection_read(13): checking for input on id=1004 Mar 13 20:32:00 ldap slapd[2181]: op tag 0x68, time 1552498320 Mar 13 20:32:00 ldap slapd[2181]: conn=1004 op=1 do_add Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on 1 descriptor Mar 13 20:32:00 ldap slapd[2181]: daemon: waked Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=6 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=7 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=8 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: >>> dnPrettyNormal: <olcDatabase=mdb> Mar 13 20:32:00 ldap slapd[2181]: <<< dnPrettyNormal: <olcDatabase=mdb>, <olcDatabase=mdb> Mar 13 20:32:00 ldap slapd[2181]: >>> dnPretty: <dc=Солн<D1>M-^K<D1>M-^Hко,dc=<D0>M-^T<D1>M-^C<D1>M-^@<D0>M-^Tом
Mar 13 20:32:00 ldap slapd[2181]: send_ldap_result: conn=1004 op=1 p=3 Mar 13 20:32:00 ldap slapd[2181]: send_ldap_response: msgid=2 tag=105 err=21 Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on 1 descriptor Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on: Mar 13 20:32:00 ldap slapd[2181]: 13r Mar 13 20:32:00 ldap slapd[2181]: Mar 13 20:32:00 ldap slapd[2181]: daemon: read activity on 13 Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=6 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=7 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=8 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: connection_get(13): got connid=1004 Mar 13 20:32:00 ldap slapd[2181]: connection_read(13): checking for input on id=1004 Mar 13 20:32:00 ldap slapd[2181]: op tag 0x42, time 1552498320 Mar 13 20:32:00 ldap slapd[2181]: ber_get_next on fd 13 failed errno=0 (No error: 0) Mar 13 20:32:00 ldap slapd[2181]: connection_read(13): input error=-2 id=1004, closing. Mar 13 20:32:00 ldap slapd[2181]: connection_closing: readying conn=1004 sd=13 for close Mar 13 20:32:00 ldap slapd[2181]: connection_close: deferring conn=1004 sd=13 Mar 13 20:32:00 ldap slapd[2181]: conn=1004 op=2 do_unbind Mar 13 20:32:00 ldap slapd[2181]: connection_resched: attempting closing conn=1004 sd=13 Mar 13 20:32:00 ldap slapd[2181]: connection_close: conn=1004 sd=13 Mar 13 20:32:00 ldap slapd[2181]: daemon: removing 13 Mar 13 20:32:00 ldap slapd[2181]: daemon: activity on 1 descriptor Mar 13 20:32:00 ldap slapd[2181]: daemon: waked Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=6 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=7 active_threads=0 tvp=NULL Mar 13 20:32:00 ldap slapd[2181]: daemon: select: listen=8 active_threads=0 tvp=NULL ...
Is it possible to solve this problem?