Hello,
I am trying to use the DB_CONFIG file as it seems to be the good way to configure my hdb database. My LDAP start without any DB_CONFIG, but when I put a DB_CONFIG file I have an error:
"unrecognized name-value pair: dn:"
Here is an extract of my files (I have changed my personal information by MY...) - slapd.conf: ------------------------------------ database hdb suffix "MY_LDAP_SUFFIX" rootdn "MY_ROOT_DN" rootpw MY_ROOT_PASS directory /opt/local/openldap/var/openldap-data
- DB_CONFIG: ----------------------------------- # global configuration settings dn: cn=config objectClass: olcGlobal cn: config # schema definitions dn: cn=schema,cn=config objectClass: olcSchemaConfig cn: schema dn: cn=core,cn=schema,cn=config objectClass: olcSchemaConfig cn: core #backend definitions dn: olcBackend=hdb,cn=config objectClass: olcBackendConfig olcBackend: hdb # database definitions dn: olcDatabase=hdb,cn=config objectClass: olcDatabaseConfig olcDatabase: hdb olcSuffix: MY_LDAP_SUFFIX ....
It seems to be because of the first line of my DB_CONFIG file but I have copied it from the documentation ( http://www.openldap.org/doc/admin24/slapdconf2.html). Did I miss something? Is it not the good file for such configuration? Any help is welcome and sorry if it is a stupid question.
Lionel
Lepoutre Lionel wrote:
I am trying to use the DB_CONFIG file as it seems to be the good way to configure my hdb database. My LDAP start without any DB_CONFIG, but when I put a DB_CONFIG file I have an error:
"unrecognized name-value pair: dn:"
Here is an extract of my files (I have changed my personal information by MY...)
database hdb suffix "MY_LDAP_SUFFIX" rootdn "MY_ROOT_DN" rootpw MY_ROOT_PASS directory /opt/local/openldap/var/openldap-data
- DB_CONFIG:
# global configuration settings dn: cn=config objectClass: olcGlobal cn: config
This seems like LDIF data for the new dynamic configuation backend [1] which you don't seem to use at all since you posted excerpts of slapd.conf [2].
The file DB_CONFIG has another syntax - nit LDIF. See example in OpenLDAP's source distribution:
servers/slapd/DB_CONFIG
Ciao, Michael.
[1] http://www.openldap.org/doc/admin24/slapdconf2.html [2] http://www.openldap.org/doc/admin24/slapdconfig.html
Oh yes! I see so it was, indeed, a stupid question :( Sorry and thank you for your help.
2009/7/19 Michael Ströder michael@stroeder.com
Lepoutre Lionel wrote:
I am trying to use the DB_CONFIG file as it seems to be the good way to configure my hdb database. My LDAP start without any DB_CONFIG, but when I put a DB_CONFIG file I have an error:
"unrecognized name-value pair: dn:"
Here is an extract of my files (I have changed my personal information by MY...)
database hdb suffix "MY_LDAP_SUFFIX" rootdn "MY_ROOT_DN" rootpw MY_ROOT_PASS directory /opt/local/openldap/var/openldap-data
- DB_CONFIG:
# global configuration settings dn: cn=config objectClass: olcGlobal cn: config
This seems like LDIF data for the new dynamic configuation backend [1] which you don't seem to use at all since you posted excerpts of slapd.conf [2].
The file DB_CONFIG has another syntax - nit LDIF. See example in OpenLDAP's source distribution:
servers/slapd/DB_CONFIG
Ciao, Michael.
[1] http://www.openldap.org/doc/admin24/slapdconf2.html [2] http://www.openldap.org/doc/admin24/slapdconfig.html
-- Michael Ströder E-Mail: michael@stroeder.com http://www.stroeder.com
openldap-software@openldap.org