Re: [blfs-support] compile openldap BLFS 8.2

2018-03-07 Thread Pierre Labastie
On 07/03/2018 11:41, Thomas Seeling wrote:
> Hallo,
> 
> 
> I'm using jhalfs 2.4 to compile select portions of the book, and it
> fails for me when working on openldap.
> 
> The installation is missing the slapd config files .conf and .ldif.

They were installed for me. Did you modify the script generated by jhalfs?
This is a case where jhalfs does not do a good job, because there is first the
client installation, then the server one. You should remove the client
installation instructions from the generated script.

> So the Makefile aborts on the section where it tries to chown these files.
> 
> chmod   -v640 /etc/openldap/slapd.{conf,ldif}   &&
> chown   -v  root:ldap /etc/openldap/slapd.{conf,ldif}   &&
> 
> Files exist in /etc/openldap but with .default extension. Renaming them
> makes slapd startable and the ldapsearch works then.

Not sure where this come from: normally, if /etc/openldap/slapd.{conf,ldif} do
not exist already, they are installed.

> 
> Contrary to the book I suggest to configure with --enable-debug. This
> makes debugging startup problems so much easier. With debugging disabled
> it simply states "config test failed" for slapd -T test. When debugging
> is possible (-d 255) it gives lots of hints what went wrong.

Book instructions usually do not take debugging into account. But they are
only advises, and can be modified to suit one's needs. It's always a good idea
to review "./configure --help"...

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] compile openldap BLFS 8.2

2018-03-07 Thread Thomas Seeling
Hallo,


I'm using jhalfs 2.4 to compile select portions of the book, and it
fails for me when working on openldap.

The installation is missing the slapd config files .conf and .ldif.
So the Makefile aborts on the section where it tries to chown these files.

chmod   -v640 /etc/openldap/slapd.{conf,ldif}   &&
chown   -v  root:ldap /etc/openldap/slapd.{conf,ldif}   &&

Files exist in /etc/openldap but with .default extension. Renaming them
makes slapd startable and the ldapsearch works then.

Contrary to the book I suggest to configure with --enable-debug. This
makes debugging startup problems so much easier. With debugging disabled
it simply states "config test failed" for slapd -T test. When debugging
is possible (-d 255) it gives lots of hints what went wrong.

Tschau...Thomas
-- 
"Do you wanna be a legend or a passing footprint on the sands of time?"



signature.asc
Description: OpenPGP digital signature
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page