Hello,
I have been trying to install slapd without configuration, so I could do the configuration manually [specifically to customize my "organization" objectClass].
I have been using debconf-set-selections and noninteractive install. It worked fine when I would do non interactive config database configuration and also DIT database configuration. When I set "slapd slapd/no_configuration boolean true" setup fails. The error is below: Omitting slapd configuration as requested. * No configuration file was found for slapd at /etc/ldap/slapd.conf. invoke-rc.d: initscript slapd, action "start" failed. dpkg: error processing package slapd (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Errors were encountered while processing: slapd E: Sub-process /usr/bin/dpkg returned an error code (1)
I understand that the issue might be debian-related and have little to do with OpenLDAP, per say. Still, to be sure that I did not do something completely wrong, and to tap into collective wisdom; I would love for someone experienced to comment.
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
Sincerely,
Igor Shmukler
Am Mon, 30 Mar 2015 11:33:31 +0300 schrieb Igor Shmukler igor.shmukler@gmail.com:
Hello,
I have been trying to install slapd without configuration, so I could do the configuration manually [specifically to customize my "organization" objectClass].
[...]
I understand that the issue might be debian-related and have little to do with OpenLDAP, per say. Still, to be sure that I did not do something completely wrong, and to tap into collective wisdom; I would love for someone experienced to comment.
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
create a slapd.conf with global parameters and a config database declaration and probably a monitor database.
-Dieter
Am Montag, 30. März 2015 10:33 CEST, Igor Shmukler igor.shmukler@gmail.com schrieb:
Hello,
I have been trying to install slapd without configuration, so I could do the configuration manually [specifically to customize my "organization" objectClass].
I have been using debconf-set-selections and noninteractive install. It worked fine when I would do non interactive config database configuration and also DIT database configuration. When I set "slapd slapd/no_configuration boolean true" setup fails. The error is below: Omitting slapd configuration as requested.
- No configuration file was found for slapd at /etc/ldap/slapd.conf.
invoke-rc.d: initscript slapd, action "start" failed. dpkg: error processing package slapd (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Errors were encountered while processing: slapd E: Sub-process /usr/bin/dpkg returned an error code (1)
I understand that the issue might be debian-related and have little to do with OpenLDAP, per say. Still, to be sure that I did not do something completely wrong, and to tap into collective wisdom; I would love for someone experienced to comment.
This _is_ a Debian packaging question.
This can be considered a bug in Debian's slapd.postinst - the script should set SLAPD_NO_START=1 when installing without configuration.
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
That's a installation mode the Debian package isn't really set up for.
HTH Ralf Mattes
Sincerely,
Igor Shmukler
Hello Dieter and Ralf,
Thank you for clarifications.
Sincerely,
Igor Shmukler
On Mon, Mar 30, 2015 at 12:17 PM, Mattes r.mattes@mh-freiburg.de wrote:
Am Montag, 30. März 2015 10:33 CEST, Igor Shmukler igor.shmukler@gmail.com schrieb:
Hello,
I have been trying to install slapd without configuration, so I could do the configuration manually [specifically to customize my "organization" objectClass].
I have been using debconf-set-selections and noninteractive install. It worked fine when I would do non interactive config database configuration and also DIT database configuration. When I set "slapd slapd/no_configuration boolean true" setup fails. The error is below: Omitting slapd configuration as requested.
- No configuration file was found for slapd at /etc/ldap/slapd.conf.
invoke-rc.d: initscript slapd, action "start" failed. dpkg: error processing package slapd (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Errors were encountered while processing: slapd E: Sub-process /usr/bin/dpkg returned an error code (1)
I understand that the issue might be debian-related and have little to do with OpenLDAP, per say. Still, to be sure that I did not do something completely wrong, and to tap into collective wisdom; I would love for someone experienced to comment.
This _is_ a Debian packaging question.
This can be considered a bug in Debian's slapd.postinst - the script should set SLAPD_NO_START=1 when installing without configuration.
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
That's a installation mode the Debian package isn't really set up for.
HTH Ralf Mattes
Sincerely,
Igor Shmukler
Am Montag, 30. März 2015 10:33 CEST, Igor Shmukler igor.shmukler@gmail.com schrieb:
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
Frankly: try to understand the systems you a messing with ... ;-) Why do you need to _not_ have Debian's installer create the DIT for the wanted suffix?
If you _really_ need to prevent the creation of the initial DIT you can create/modify '/usr/share/slapd/slapd.init.ldif' before installing the slapd package. But you should really understand what you are doing.
Cheers, Ralf Mattes
Sincerely,
Igor Shmukler
Hi Ralf,
Would not say that I _really_ understand what I am doing. In fact, knowledgeable subscribers from this list rightfully pointed out that I understand little, quite a few times. Plus, I would like to continue using tools so that the people who hired me would be able to continue supporting the code that I have written, after my contract is up.
As I wrote earlier - my goal is to have the object describing organization inherit from a objectClass inherited from dcObject instead of the actual dcObject. This works for domains which I add manually, after loading a custom schema. Since I could not figure out how to update/modify objectClass, it made sense [to me] to try to move things around. :) Otherwise, I would love to mess with OpenLDAP as little as possible/necessary.
Sincerely,
Igor Shmukler
On Mon, Mar 30, 2015 at 12:29 PM, Mattes rm@mh-freiburg.de wrote:
Am Montag, 30. März 2015 10:33 CEST, Igor Shmukler igor.shmukler@gmail.com schrieb:
What would be the easiest way to install slapd, ideally with config database setup, without a DIT database? I want to manually add DIT database[s] later. I got that part down.
Frankly: try to understand the systems you a messing with ... ;-) Why do you need to _not_ have Debian's installer create the DIT for the wanted suffix?
If you _really_ need to prevent the creation of the initial DIT you can create/modify '/usr/share/slapd/slapd.init.ldif' before installing the slapd package. But you should really understand what you are doing.
Cheers, Ralf Mattes
Sincerely,
Igor Shmukler
Igor Shmukler igor.shmukler@gmail.com writes:
When I set "slapd slapd/no_configuration boolean true" setup fails.
This is a known, but controversial issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596777
Ignore the error and create your preferred configuration with slapadd:
$ sudo mkdir -p /srv/ldap/dc=example,dc=org /etc/ldap/slapd.d $ sudo chown openldap:openldap /srv/ldap/dc=example,dc=org /etc/ldap/slapd.d $ sudo -u openldap slapadd -F /etc/ldap/slapd.d -n0 -l bootstrap.ldif
Finally, take the pending configuration step:
$ sudo dpkg --configure --pending
openldap-technical@openldap.org