Samba + LDAP

I’m making some virtual machines in VMWare to load on my servers. I’m upgrading all the hardware and moving everything to virtual machines. We’ve been having some trouble with our network as the result of a crash a few months ago. Our server crashed when I was performing an upgrade and I had a terrible time with some kernel modules I needed to support our RAID controller. The fact of the matter is I got stressed and felt pressured for time and decided to implement Samba w/ LDAP on OpenBSD. I’d been using Samba for some time, but hadn’t used LDAP. I also hadn’t used OpenBSD as a Samba server before. What I discovered is that Samba + LDAP isn’t fully implemented in OpenBSD.

Anyway, the point is I need to do it all over and do it right this time. So I’ve been planning, and testing and this is what I got.

First of all, there are some great examples for setting up Samba at samba’s own website. Just go to http://us1.samba.org/samba/docs/man/Samba-Guide/. You can go there and learn all you need. Go through the examples and get your Samba/LDAP PDC all setup. Or you can cheat, like I did, with smbldap-installer. I thought I’d write an extensive HOWTO, but the truth is everything you need is at http://www.vcsvikings.org/docuwiki/cgi-bin/moin.cgi/FrontPage. You can get the files you need there, then follow the instructions in the wiki. In Ubuntu, all I had to do was download the script, untar it, then run it. It automagically downloaded all the files and dependencies I needed, asked me a few questions, and before I knew it I had a Samba/LDAP PDC installed and working. The same script is also used to configure a Samba/LDAP BDC. Could it be any easier?

Now I just need to setup all my users and we’re good to go.

Leave a Reply