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

(ITS#3774) olcSuffix and olcRootDN: value #0 invalid per syntax



Full_Name: Michael Ströder
Version: HEAD
OS: SuSE Linux 9.3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (83.121.32.213)


HI!

Can't add an entry based on olcBdbConfig since syntax check fails
for these attributes:

olcSuffix: dc=example,dc=com
olcRootDN: cn=root,dc=example,dc=com

See details below...

Ciao, Michael.

-----------------------------------------------------------------

$ ldapadd -x -H "ldap://localhost"; -D"cn=config" -w testconfig -f
add_olcBdbConfig_AddressBook.ldif
adding new entry "olcDatabase={2}bdb,cn=config"
ldap_add: Invalid syntax (21)
        additional info: olcSuffix: value #0 invalid per syntax

$ ldapadd -x -H "ldap://localhost"; -D"cn=config" -w testconfig -f
add_olcBdbConfig_AddressBook.ldif
adding new entry "olcDatabase={2}bdb,cn=config"
ldap_add: Invalid syntax (21)
        additional info: olcRootDN: value #0 invalid per syntax
-----------------------------add_olcBdbConfig_AddressBook.ldif------------------------------
dn: olcDatabase={2}bdb,cn=config
objectClass: olcBdbConfig
olcDatabase: {2}bdb
olcDbDirectory: /var/openldap/HEAD/example.com
olcRootDN: cn=root,dc=example,dc=com
olcSuffix: dc=example,dc=com

-----------------------------------slapd.conf---------------------------------------
include         /opt/openldap-HEAD/etc/openldap/schema/core.schema
pidfile         /opt/openldap-HEAD/var/run/slapd.pid
argsfile        /opt/openldap-HEAD/var/run/slapd.args

database        schema

database        config
rootdn          cn=config
rootpw          testconfig

database        monitor
--------------------------------------------------------------------------
# /opt/openldap-HEAD/libexec/slapd -d 1 -F
/opt/openldap-HEAD/etc/openldap/configdir


ldap_pvt_gethostbyname_a: host=nb2, r=0
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 31 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <cn=config>
=> ldap_bv2dn(cn=config,0)
ldap_err2string
<= ldap_bv2dn(cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=config)=0 Success
<<< dnPrettyNormal: <cn=config>, <cn=config>
do_bind: version=3 dn="cn=config" method=128
do_bind: v3 bind: "cn=config" to "cn=config"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 8
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 223 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({m) ber:
>>> dnPrettyNormal: <olcDatabase={2}bdb,cn=config>
=> ldap_bv2dn(olcDatabase={2}bdb,cn=config,0)
ldap_err2string
<= ldap_bv2dn(olcDatabase={2}bdb,cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(olcDatabase={2}bdb,cn=config)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(olcDatabase={2}bdb,cn=config)=0 Success
<<< dnPrettyNormal: <olcDatabase={2}bdb,cn=config>,
<olcDatabase={2}bdb,cn=config>
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt (}) ber:
>>> dnPretty: <cn=root,dc=example,dc=com>
=> ldap_bv2dn(cn=root,dc=example,dc=com,0)
ldap_err2string
<= ldap_bv2dn(cn=root,dc=example,dc=com)=0 Success
send_ldap_result: conn=0 op=1 p=3
send_ldap_response: msgid=2 tag=105 err=21
ber_flush: 52 bytes to sd 8
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
connection_get(8): got connid=0
connection_read(8): checking for input on id=0
ber_get_next
ber_get_next on fd 8 failed errno=0 (Success)
connection_read(8): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=8 for close
connection_close: deferring conn=0 sd=8
do_unbind
connection_resched: attempting closing conn=0 sd=8
connection_close: conn=0 sd=8