On Mon, Oct 3, 2016 at 12:10 PM, Sketch <smblist at rednsx.org> wrote:> > I would assume they would work if you built Samba against them so that > it's ldb modules were built for the same version. But that seems like a > lot of work when you can just use the CentOS ldb-tools package. >Well the ldb-tools package from COS doesn't work, as we've discussed previously. Rebuilding the COS 7 samba SRPM with the ldb tools isn't that difficult given it needs to be rebuild anyway to provide DC functionality. Here are the mods I made the spec file to build the ldb tools: -%global with_internal_ldb 0 +%global with_internal_ldb 1 +Requires: libldb -Requires: pyldb +#Requires: pyldb -%{_libdir}/samba/libldb-cmdline.so +#%{_libdir}/samba/libldb-cmdline.so +%{_libdir}/samba/libldb-cmdline-samba4.so +%{_libdir}/samba/libpyldb-util.so.1 +%{_libdir}/samba/libpyldb-util.so.1.1.20 -- Greg J. Zartman Board Member Koozali SME Server www.koozali.org SME Server user, contributor, and community member since 2000
On Mon, 3 Oct 2016, Greg Zartman via samba wrote:> Well the ldb-tools package from COS doesn't work, as we've discussed > previously. Rebuilding the COS 7 samba SRPM with the ldb tools isn't > that difficult given it needs to be rebuild anyway to provide DC > functionality.As far as I can tell, it works fine without rebuilding ldb-tools. Once you've rebuilt (and installed) the samba-dc packages (without internal_ldb), all of the necessary modules are in /usr/lib64/samba/ldb/. You just need to export LDB_MODULES_PATH=/usr/lib64/samba/ldb/ before you run ldbadd/etc, so that it knows where to find the modules. I suppose what might be cleaner is just to modify samba-dc to install them directly to /usr/lib64/ldb/ instead, then you wouldn't have to set any environment variabls.
On Mon, Oct 3, 2016 at 12:50 PM, Sketch <smblist at rednsx.org> wrote:> > As far as I can tell, it works fine without rebuilding ldb-tools. Once > you've rebuilt (and installed) the samba-dc packages (without > internal_ldb), all of the necessary modules are in /usr/lib64/samba/ldb/. > > You just need to export LDB_MODULES_PATH=/usr/lib64/samba/ldb/ before you > run ldbadd/etc, so that it knows where to find the modules. I suppose what > might be cleaner is just to modify samba-dc to install them directly to > /usr/lib64/ldb/ instead, then you wouldn't have to set any environment > variabls. >Will give that a shot. Thanks,. -- Greg J. Zartman Board Member Koozali SME Server www.koozali.org SME Server user, contributor, and community member since 2000