[Pkg-samba-maint] Bug#632974: samba4: libsamdb0 package creates broken link to samba/ldb modules

Arvid Requate requate at univention.de
Thu Jul 7 14:05:38 UTC 2011


Package: samba4
Version: 4.0.0~alpha15.dfsg1
Severity: normal
Tags: patch


The libsamdb0 package build from source package samba4 creates a link /usr/lib/ldb/modules/samba pointing to ../../../samba/ldb. The target path does not exist. Maybe it should rather be a link to ../../samba/ldb. As a result the ldb-tools cannot find the samba4/ldb modules:

bash# ldbsearch -H /var/lib/samba/private/secrets.ldb 
WARNING: Module [samba_secrets] not found - do you need to set LDB_MODULES_PATH?
Unable to load modules for /var/lib/samba/private/secrets.ldb: (null)
Failed to connect to /var/lib/samba/private/secrets.ldb - (null)



Additionally the ldb-tools build from source package ldb (version 1.1.0) do not find the modules in /usr/lib/ldb/modules/samba because they use

 LDB_MODULESDIR=/usr/lib/ldb/modules/ldb

While this can be fixed temporarily by "export LDB_MODULS_PATH=/usr/lib/ldb/modules", the libsamdb0 package should probably put the link beneath the LDB_MODULESDIR. Maybe it would be preferable to set LDB_MODULESDIR=/usr/lib/ldb/modules in the source package ldb to achieve this.


-- System Information:
Debian Release: 5.0.1
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.32-ucs21-amd64
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05_fix_libsamdb0_symlink.patch
Type: text/x-diff
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20110707/f31d5396/attachment.patch>


More information about the Pkg-samba-maint mailing list