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)
diff -Nuarp samba4-4.0.0~alpha16.dfsg1.orig/debian/rules samba4-4.0.0~alpha16.dfsg1/debian/rules --- samba4-4.0.0~alpha16.dfsg1.orig/debian/rules 2011-07-07 12:32:07.031952813 +0200 +++ samba4-4.0.0~alpha16.dfsg1/debian/rules 2011-07-07 12:33:23.819449160 +0200 @@ -88,7 +88,7 @@ install: configure rm $(DESTDIR)/usr/share/samba/setup/ad-schema/licence.txt # System ldb loads its modules from a different path mkdir -p $(DESTDIR)/usr/lib/ldb/modules - ln -sf ../../../samba/ldb $(DESTDIR)/usr/lib/ldb/modules/samba + ln -sf ../../samba/ldb $(DESTDIR)/usr/lib/ldb/modules/samba mkdir -p $(DESTDIR)/lib/security mv $(DESTDIR)/usr/lib/pam_winbind.so $(DESTDIR)/lib/security/pam_winbind.so mv $(DESTDIR)/usr/sbin/provision $(DESTDIR)/usr/sbin/upgradeprovision $(DESTDIR)/usr/share/samba/setup