[Bug 810977] Re: slapd remove/reinstall fails

2011-07-18 Thread Manfred Steiner
Dave, I try to reproduce this bug in a clean natty environment (new
installed in a virtualbox) and I wasn't able to reproduce this bug, like
you. So I go back to my normal PC, where the bug is still alive and I
try some additional things.

I see the message Omitting slapd configuration as requested. which is
a different behavior to the first install-procedure where a dialog comes
up and asking for a LDAP-Password.

For my feeling, the problem is caused by some initial configuration on
the LDAP database. This behavior is new compared with lucid 10.04. I am
not sure if this is really a step forward, because configuration of a
LDAP database is a very complicate issue and in my point of view it
should not be done by a installing script.

I will do some further investigations.

Two questions:

1) Do you know the cause for the change of install behavior (automatic omitting 
slapd configuration...)
2) How I can increase the parameter MaxReports for AppReports in case of 
app-get install fails...

Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/810977

Title:
  slapd remove/reinstall fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/810977/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 810977] Re: slapd remove/reinstall fails

2011-07-18 Thread Manfred Steiner
Ok, I have found a work-arround to transfer slapd into a working state.
This is not solution of this problem, but it helps to bring slapd back
into a running state and so you can continue with openLDAP on your
machine.

At first you need an additional cleen machine, I name it MC (for machine
clean). You can install this machine for example in a virtualbox.

MC ... clean machine
ME ... machine with the slapd install error 

1) on ME: execute apt-get remove slapd
2) on ME: remove manually the directories /var/lib/ldap and /etc/ldap
3) on MC: execute apt-get install slapd ldap-utils
4) on MC: stop the slapd process with service slapd stop
5) on MC: transfer with rsync the directories /var/lib/ldap and /etc/ldap 
to the maschine ME
(make sure, that owner/group and access flags are not modified)
6) on ME: execute apt-get install slapd ldap-utils

Now the installation sricpt of package slapd runs to end without any
problems. Removement and reinstallatione of package slapd works without
problems, but there is no dialog for configuration (as it is in the very
first install).

To change configuration:
1) stop the slapd process with service slapd stop
2) remove actual slapd.d with rm -r /etc/ldap/slapd.d
3) execute dpkg-reconfigure slapd

Afterwards you will find a new /etc/ldap/slapd.d

So far as good, installation script for package slapd isn't bug-free
otherwise I would not have these problems.

For me it's interesting to know:
1) where is the configuration info stored (because the dialog starts up only 
one time in the very beginning)
2) why does the dpkg-ceconfiguration fail if /etc/lapd/slapd.d is existing

My recommendation to package authors. Don't do any ldap configuration in the 
installing phase.
Only check while package removement or package installation if there is a ldap 
configuratin/database available, and in this case offer the option to 
use/remove or mover the old configuration/database.
If user selects a complete removement everything after reinstallation should be 
like after a very first install.

Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/810977

Title:
  slapd remove/reinstall fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/810977/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 810977] [NEW] slapd remove/reinstall fails

2011-07-15 Thread Manfred Steiner
Public bug reported:

Description:Ubuntu 11.04
Release:11.04
package slapd version 2.4.23-6ubuntu6

Problem sounds like Bug #798946 but recommended solution doesn't word.
So I publish my problem as new bug.

First install of slapd works fine. Then I try to remove the openLDAP completly 
(to remove also basic databank settings). 
I ececute apt-get remove slapd ldap-utils ... works fine.
Now I execute apt-get install slapd ldap-utils  ... fails
...
Entpacken von ldap-utils (aus .../ldap-utils_2.4.23-6ubuntu6_amd64.deb) ...
Trigger für ufw werden verarbeitet ...
Trigger für ureadahead werden verarbeitet ...
Trigger für man-db werden verarbeitet ...
slapd (2.4.23-6ubuntu6) wird eingerichtet ...
  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: Fehler beim Bearbeiten von slapd (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
ldap-utils (2.4.23-6ubuntu6) wird eingerichtet ...
Fehler traten auf beim Bearbeiten von:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

In 10.04LTS (Lucis) Server version I see the same problem, but there I can 
solve it by myself by:
1) rm -r /var/lib/ldap
2) rm -r /etc/ldap/slapd.d

But under 11.04 (Natty) this special procedure doesn't work.

Therefore something is wrong in the installations script of slapd.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: slapd 2.4.23-6ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CNConfig: Error: command ['gksu', '-D', 'Apport', '--', '/usr/bin/ldapsearch', 
'-Q', '-LLL', '-Y EXTERNAL', '-H ldapi:///', '-b cn=config'] failed with exit 
code 255:
Date: Fri Jul 15 11:58:06 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 Natty Narwhal - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=de_AT:en
 PATH=(custom, user)
 LANG=de_AT.UTF-8
 SHELL=/bin/bash
SourcePackage: openldap
SysLog:
 Jul 15 11:42:31 sx-ubuntu64 kernel: [18821.406747] type=1400 
audit(1310722951.922:21): apparmor=STATUS operation=profile_replace 
name=/usr/sbin/slapd pid=8611 comm=apparmor_parser
 Jul 15 11:44:40 sx-ubuntu64 kernel: [18950.341039] type=1400 
audit(1310723080.863:22): apparmor=STATUS operation=profile_replace 
name=/usr/sbin/slapd pid=8877 comm=apparmor_parser
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: openldap (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug natty running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/810977

Title:
  slapd remove/reinstall fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/810977/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 810977] Re: slapd remove/reinstall fails

2011-07-15 Thread Manfred Steiner
-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/810977

Title:
  slapd remove/reinstall fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/810977/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs