On 02/14/2014 02:23 PM, Clément OUDOT wrote:
> Hi,
> 
> I  have no problems with those packages.
> 
> What method to you use to install them?
> 
> Modules back_hdb.la <http://back_hdb.la>, back_monitor.la
> <http://back_monitor.la>, back_mdb.la <http://back_mdb.la> are not
> present because they are compiled into slapd. You can use them directly.


I want to migrate from Debian slapd package to openldap-ltb. I want to
model my migration as slapd from Debian is buggy enough. slapd package
is present in the system while instaling openldap-ltb. Here is my output:

# apt-get install openldap-ltb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  berkeleydb-ltb
Suggested packages:
  openldap-ltb-check-password openldap-ltb-contrib-overlays
The following NEW packages will be installed:
  berkeleydb-ltb openldap-ltb
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/12.1 MB of archives.
After this operation, 36.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously unselected package berkeleydb-ltb.
(Reading database ... 35040 files and directories currently installed.)
Unpacking berkeleydb-ltb (from
.../berkeleydb-ltb_4.6.21.NC-4-patch4_amd64.deb) ...
Selecting previously unselected package openldap-ltb.
Unpacking openldap-ltb (from .../openldap-ltb_2.4.39-1_amd64.deb) ...
dpkg: error processing
/var/cache/apt/archives/openldap-ltb_2.4.39-1_amd64.deb (--unpack):
 trying to overwrite '/etc/init.d/slapd', which is also in package slapd
2.4.31-1+nmu2
Errors were encountered while processing:
 /var/cache/apt/archives/openldap-ltb_2.4.39-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
#

Clearly something went wrong. Then I used dpkg with --force-all:

# dpkg --force-all -i
/var/cache/apt/archives/openldap-ltb_2.4.39-1_amd64.deb
(Reading database ... 36833 files and directories currently installed.)
Unpacking openldap-ltb (from .../openldap-ltb_2.4.39-1_amd64.deb) ...
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/etc/init.d/slapd', which is also in package slapd
2.4.31-1+nmu2
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/etc/default/slapd', which is also in package
slapd 2.4.31-1+nmu2
dpkg: also configuring 'berkeleydb-ltb' (required by 'openldap-ltb')
Setting up berkeleydb-ltb (4.6.21.NC-4-patch4) ...

Configuration file `/etc/profile.d/berkeleydb.sh', does not exist on system.
Installing new config file as you requested.
Setting up openldap-ltb (2.4.39-1) ...

Configuration file `/usr/local/openldap/etc/openldap/slapd.conf', does
not exist on system.
Installing new config file as you requested.

Configuration file `/usr/local/openldap/etc/openldap/ldap.conf', does
not exist on system.
Installing new config file as you requested.

Configuration file `/usr/local/openldap/var/openldap-data/DB_CONFIG',
does not exist on system.
Installing new config file as you requested.

Configuration file `/etc/profile.d/openldap.sh', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/init.d/slapd ...

Configuration file `/etc/logrotate.d/openldap', does not exist on system.
Installing new config file as you requested.
Installing new version of config file /etc/default/slapd ...
insserv: script dsmcad_orig: service dsmcad already provided!
insserv: script slapd_from_debian: service slapd already provided!
slapd: [INFO] Using /etc/default/slapd for configuration
slapd: [INFO] Launching OpenLDAP configuration test...
No directory, logging in with HOME=/
slapd: [OK] OpenLDAP configuration test successful
slapd: [INFO] No db_recover done
slapd: [INFO] Launching OpenLDAP...
slapd: [OK] File descriptor limit set to 1024
slapd: [ALERT] No PID file for OpenLDAP
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing openldap-ltb (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 openldap-ltb
#

# dpkg -l | egrep 'openldap-ltb|slapd'
iF  openldap-ltb                       2.4.39-1
amd64        OpenLDAP server with addons from the LDAP Tool Box project
ii  slapd                              2.4.31-1+nmu2
amd64        OpenLDAP server (slapd)
#

As you can see, "start" action has failed and openldap-ltb is in a
broken/failed state. 2 bad things happened:
1) /etc/init.d/slapd changed
2) /etc/default/slapd changed

This is my testing environment, changes are acceptable, because I wished
that way (dpkg --force-all). But... in real production it will break my
working slapd from Debian repository. I would like to use the same
server (same IPs, same DNS names, etc.) and just replace software.
Advice would be helpful. Thanks.
-- 
Pagarbiai,
Nerijus Kislauskas
KTU ITD, Litnet valdymo centras
Studentu g. 48a - 101, Kaunas
tel.: (8~37) 30 06 45
mob. tel.: 8-614-93889
e-mail.: [email protected]

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to