2014-11-13 15:56 GMT+01:00 Elmopi, Stefano <stefano.elm...@sociale.it>:

> Hi,
>
>
Hi,


> meanwhile, thank you very much for your response. I knew that if you
> configure with OLC (cn = config) into directory, there must not be
> the file slapd.conf and so I have configured in the file /etc/default/slapd
>
> SLAPD_CONF=""
> SLAPD_CONF_DIR="$SLAPD_PATH/etc/openldap/slapd.d"
>
>

It's correct


> but when I go to execute the command:
>
> /etc/init.d/slapd start
> slapd: [INFO] Using /etc/default/slapd for configuration
> slapd: [INFO] Launching OpenLDAP configuration test...
> slapd: [ALERT] OpenLDAP configuration test failed
>
>
So, your configuration was not validated.


> slaptest
> 5464c021 could not stat config file
> "/usr/local/openldap/etc/openldap/slapd.conf": No such file or directory (2)
> slaptest: bad configuration file!
>
>

Calling slaptest will by default use slapd.conf. Use slaptest -F
/path/to/slapd.d to test your cn=config configuration.



> I'm sorry but I can not figure out if there is to be the file slapd.conf
> or not and how it creates the hierarchical tree:
>
> slapd.d/
>   cn=config.ldif
>   cn=config/
>       cn=schema.ldif
>       cn=module{0}.ldif
>       olcDatabase={-1}frontend.ldif
>       olcDatabase={1}monitor.ldif
>       olcDatabase={2}sociale
>       olcDatabase={0}config.ldif
>       cn=schema
>       olcDatabase={2}sociale.ldif
>
>
>

This is an OpenLDAP question: you can convert slapd.conf into slapd.d with
the slaptest command.


Your can try to run 'service slapd debug' to get more details on why it
fails.



Clément.
_______________________________________________
ltb-users mailing list
ltb-users@lists.ltb-project.org
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to