The script is looking for /etc/ldap.secret

Bug #49007 reported by Dries Desmet
4
Affects Status Importance Assigned to Milestone
ldapscripts (Ubuntu)
Fix Released
Undecided
MOTU

Bug Description

The default installation of a ldap server in Ubuntu Dapper Drake is a setup so that the rootdn password is included in the /etc/ldap/slapd.conf. A /etc/ldap.secret file is thus not generated. As I understand, the use of /etc/ldap.secret is old style.

Steps to reproduce:

$ sudo ldapaddgroup urga 500
cat: /etc/ldap.secret: No such file or directory
Error adding group urga to LDAP

The config file /etc/ldapscript/ldapscripts.conf doesn't contain a setting to change this behaviour.

Related branches

Revision history for this message
Matthew Lloyd (lloyd-matthew) wrote :

Thank you for filing this bug report. Could you please provide the version number of the program in question? Thank you. :)

Changed in ldapscripts:
assignee: nobody → lloyd-matthew
status: Unconfirmed → Needs Info
Revision history for this message
Dries Desmet (dries) wrote :

dries@adam:~$ apt-cache showpkg ldapscripts
Package: ldapscripts
Versions:
1.4-1(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_dapper_universe_binary-amd64_Packages)(/var/lib/dpkg/status)

Reverse Depends:
Dependencies:
1.4-1 - libpam-ldap (0 (null)) libnss-ldap (0 (null)) slapd (0 (null)) ldap-utils (0 (null)) sharutils (0 (null))
Provides:
1.4-1 -
Reverse Provides:

Changed in ldapscripts:
assignee: lloyd-matthew → nobody
status: Needs Info → Confirmed
Dries Desmet (dries)
Changed in ldapscripts:
assignee: nobody → ubuntu-server
Dries Desmet (dries)
Changed in ldapscripts:
assignee: ubuntu-server → motu
Revision history for this message
muzzol (muzzol) wrote :

i can reproduce it in feisty also.

libnss introduces a change in its behaviour, now the file used is

/etc/libnss-ldap.secret

but ldapscripts are still looking for /etc/ldap.secret

a simple soft link solves de problem, maybe should be done by debconf postscript.

Package: ldapscripts
Priority: optional
Section: universe/admin
Installed-Size: 216
Maintainer: Pierre Habouzit <email address hidden>
Architecture: all
Version: 1.4-2
Depends: libpam-ldap, libnss-ldap, slapd, ldap-utils, sharutils
Filename: pool/universe/l/ldapscripts/ldapscripts_1.4-2_all.deb

lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ldapscripts - 1.8.0-0ubuntu1

---------------
ldapscripts (1.8.0-0ubuntu1) intrepid; urgency=low

  * New Upstream release (LP: #261462)
  * Package no longer needs the workstation to be configured
    for LDAP auth in order to work (LP: #114006, LP #256091)
    - Removed debian.runtime
    - Package doesn't depend on libnss-ldap
  * Updated Homepage field
  * Improved the Description language, to make it clearer
  * /etc/ldapscripts/ldapscripts.passwd is used by default (LP: #49007)
  * ldapinit now uses the 'ldapadd -c' option allowing the script to continue if
    objects are already present (LP: #126759)
  * Adjusted the default ldapscripts.conf file for new options.

 -- Adam Sommer <email address hidden> Tue, 26 Aug 2008 00:31:28 -0400

Changed in ldapscripts:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.