1

Topic: openldap database : cannot create another one..in slapf.conf

hi,

i need to create another database in my configuration : when i tried to create this one under slapd.conf, slapd cannot restart.

my configuration is :

DC=my_name,dc=my_company_name,dc=com

and i need to have two databases under openldap ! when i tried to insert in slapd.conf this :


database        bdb

# The base of your directory in database #2
suffix          dc=another_name,dc=com

# Admin info
rootdn                          dc=another_name,dc=com
rootpw                          {SSHA}blzablzababbaa


# Where the database file are physically stored for database #2
directory       "/var/lib/ldap/company2-name"

slapd start failed ...

have you an idea ?

2

Re: openldap database : cannot create another one..in slapf.conf

Please set "loglevel 256" in slapd.conf, then restart openldap and monitor its log file (default is /var/log/openldap.log). You will see detail error log in log file.

3

Re: openldap database : cannot create another one..in slapf.conf

i set it and see that slapd cannot create the directory for  "/var/lib/ldap/company2-name"

4

Re: openldap database : cannot create another one..in slapf.conf

You should create this directory and set correct owner/permission before starting OpenLDAP.

5

Re: openldap database : cannot create another one..in slapf.conf

ok i try thanks !

6

Re: openldap database : cannot create another one..in slapf.conf

yes it works ! but now how can i said to iredmail to check email address under this ldap database ?

7

Re: openldap database : cannot create another one..in slapf.conf

Replace 'DC=my_name,dc=my_company_name,dc=com' by 'dc=another_name,dc=com'.

8

Re: openldap database : cannot create another one..in slapf.conf

heuu sorry but in wich file ??  and it's necessary that iredmail check under the two ldap ///

9

Re: openldap database : cannot create another one..in slapf.conf

Postfix, Dovecot, Roundcube will query LDAP server, so you need to replace old settings in their config files.

May i know why you want to add another database in OpenLDAP?

10

Re: openldap database : cannot create another one..in slapf.conf

sure because one ldap is on my site and another one is on another site : for the same extension domain : compagny-name.com
so if i try to send an email to this another company users are not found... so i need to reconfigure ldap query in postfix, dovecot and roundcube.. lot of work !! snif snif