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

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



Thanks for the report. I'm not seeing the same behavior here, although 
I've run into two other issues.

The problem you're seeing indicates that the core schema didn't get 
loaded. Your cn=config database ought to have an entry 
cn={0}core,cn=schema,cn=config, and searching this entry via ldapsearch, 
you should see the valid contents of that schema.

The next problem you'll run into is that the database actually needs to 
also have the olcDatabaseConfig objectclass. This is not reflected in 
the doc examples, I know. I'll either change the doc to indicate this, 
or change the code to insert the missing objectclasses, haven't decided 
which yet.

michael@stroeder.com wrote:
> 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
>
>   


-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support