Page 1 of 1

Slapd installation

Posted: 05 Feb 2012, 11:19
by flexor
Hi Folks,

I want to build myself a single signon authentication server using OpenLDAP, Samba and such. One of the first steps is to install the debian package slapd. I'm using:

Code: Select all

# apt-get install slapd
Which gets me the following output:

Code: Select all

slapd : Depends: libdb4.8 (>= 4.8.30) but 4.8.26-1 is to be installed
I think this means that the 4.8.30 version of libdb4.8 is not in the repositories yet. But surely, people have installed LDAP servers on this version of Debian before?

I tried downloading a down-level slapd, but they have a dependency on the same kind of package, which is no help. I also tried downloading libdb4.8 at the required level, but that also gets me into the la-la land of dependencies. And I really really do not want to compile my own OpenLDAP.

I would also prefer not to switch to the "Testing" or "Unstable" distributions, for that way madness lies.

Any ideas?

Cheers,
Menno.

Re: Slapd installation

Posted: 10 Feb 2012, 19:45
by flexor
Well dear friends,

I caved in, and compiled OpenLDAP for myself. It is now running, but I keep getting annoying warnings from Samba to the effect that something, somewhere, is not entirely kosher with the library versions. Which is weird and shouldn't happen because I compiled OpenLDAP on this very system. You've got to admire the sheer optimism of these Debian beardies:
./configure
make depend
make
make test
make install

OpenLDAP Should be working now.
It is to make a hollow laughing! Will continue trying to squelch the library messages and once I do get this PDC to run, I will post a wiki entry telling you how I did it.

All in all, I would very much prefer it if Debra and Ian could see their way clear to fixing their bloody repo. I've been toiling for three days to replicate what should have been a simple apt-get install slapd.

Re: Slapd installation

Posted: 08 Aug 2012, 18:46
by drdr6
I ended up in the same place. So still broken. WIll have to try doing the same build myself. Duh.

Re: Slapd installation

Posted: 09 Aug 2012, 03:35
by Gordon
What are the exact library misses?

From the Gentoo repository I note a dependency on kernel-headers and there is an issue with version stamping in the Bubba kernel source. This would affect modules that require the correct kernel version in them and one of them could very well be the samba4 module.

So if you see a message such as "version 2.6.39 found but 2.6.39.4 needed" that is because of the kernel source which is missing the ".4" extraversion value in Makefile.

Re: Slapd installation

Posted: 09 Aug 2012, 04:03
by drdr6
I see exactly the message that flexor noted:
slapd : Depends: libdb4.8 (>= 4.8.30) but 4.8.26-1 is to be installed
Is this likely to go away if I do a Bubba3 2.5 upgrade ? (or 2.5.0.2 or whatever it is today)

Re: Slapd installation

Posted: 09 Aug 2012, 11:10
by Gordon
I'm sorry. I overlooked that bit. I thought you had already done the build yourself and was now seeing the library errors from Samba. In any case you now know what to watch for and possibly avoid those errors.

Re: Slapd installation

Posted: 30 Aug 2013, 08:27
by flexor
Well, I've had to follow the procedure again, using a slightly more up-to-date version of OpenLDAP. There now appears to be a database monitor that slapcat complains about, which means you have to add a line to your slapd.conf, but otherwise, it's about the same.

I've turned my Bubba into a Samba server complete with LDAP, DNS, DHCP and NFS. Currently, only my Ubuntu workstation slaves off it. It's probably quick enough for a small workgroup of ten people or so.

The HTML for the whole procedure is about 77KB in size. It starts with a Bubba where you have configured the webGUI. I'd want to anonymise it before putting it up here, but it contains the following topics:

- Gaining root access (DHCP, logging in and so on).

- Removing the Excito webgui (link to wiki and specific commands)

- Getting rid of that [CENSORED] umask 000 in /etc/profile

- Configuring DNS

- Configuring DHCP

- Building LDAP (step-by-step with explanations what I'm doing)

- Putting users in LDAP

- Starting slapd at boot (stole /etc/init.d/slapd from Ubuntu)

- Moving the storage from /home to /local (I hate chucking things in /home that aren't people's home directories)

- Configuring PAM

- Configuring Samba

Now that I'm in that document, I may as well add a chapter on configuring Apache2 and NFS. Only I think it's a bit long for a forum post, and I have a few tables and pre sections. So I think the Wiki would be the best place for it. Where is the appropriate place?

Cheers,
Menno.