[Ltb-users] Openldap with OLC (cn = config) configuration

Elmopi, Stefano stefano.elmopi at sociale.it
Thu Nov 13 17:26:52 CET 2014


Hi,

ok, to have a clear situation, steps to do to use the configuration OLC
from the beginning:

- install packages:
  berkeleydb-ltb-4.6.21.NC-4.el6.patch4.x86_64.rpm
  openldap-ltb-2.4.40-1.el6.x86_64.rpm
  openldap-ltb-check-password-1.1-8.el6.x86_64.rpm
  openldap-ltb-contrib-overlays-2.4.40-1.el6.x86_64.rpm
  openldap-ltb-mdb-utils-2.4.40-1.el6.x86_64.rpm

- edit the file /etc/default/slapd

  SLAPD_CONF=""
  SLAPD_CONF_DIR="$SLAPD_PATH/etc/openldap/slapd.d"

creating the folder slapd.d in the right position.
At this point, what should you do ??

Best Regards


Ing. Stefano Elmopi
Cooperativa Capodarco - Resp. Area ICT Gestione Esercizio
Via Ostiense 131/L Corpo B, 00154 Roma

cell. 3466147165
tel.  0657060500

email:stefano.elmopi at sociale.it



2014-11-13 16:09 GMT+01:00 Clément OUDOT <clem.oudot at gmail.com>:

>
>
> 2014-11-13 15:56 GMT+01:00 Elmopi, Stefano <stefano.elmopi at 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.
>

-- 
"Ai sensi e per gli effetti della legge sulla tutela dei dati personali 
(D.lgs 196/2003),
le informazioni contenute nella presente @mail sono di natura riservata e 
destinate
ad un uso aziendale-lavorativo con esclusione di utilizzi ad uso personale; 
come tali,
pertanto, sono riservate esclusivamente ai destinatari sopra indicati. E' 
proibito leggere,
copiare, usare o diffondere il contenuto della presente @mail senza 
autorizzazione.
Se avete ricevuto questa @mail per errore, siete pregati di rispedire la 
stessa al mittente.
Grazie"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ltb-project.org/pipermail/ltb-users/attachments/20141113/9625b928/attachment.htm>


More information about the ltb-users mailing list