Ubuntu Samba Apache Active Directory Authentication

So I’ve spent some time for something at work figuring out how to get an Ubuntu server to authenticate users with a Windows 2003 Server Active Directory. Using the process I’ve found by combining various sources, my instructions show how to get a machine setup such that users logging in to the shell, accessing a samba share and checking out a website (or sub-directory of one) can all be authenticated using credentials centrally stored in a separate Active Directory server.

Check out my articles I’ve posted here:

Samba/Shell Authentication

Apache Authentication

2 comments to Ubuntu Samba Apache Active Directory Authentication

  • I have been following the ActiveDirectoryHowto and have installed all the modules, but when I try to specify the LDAP server
    I get the following error

    ldapsearch -h ubunserve1.zoeftigco.local
    ldap_sasl_interactive_bind_s: Can’t contact LDAP server (-1)
    > ldapsearch -h zoeftserve.zoeftigco.local
    SASL/GSSAPI authentication started
    ldap_sasl_interactive_bind_s: Local error (-2)

    My ubuntu machine is called ubunserve1 and I thought this would be the ldap server but when that didn’t work I tried zoeftserve which is the name of my SBS 2003 server.

  • Sounds just like a name resolution problem to me. Can you ping zoeftserve.zoeftigco.local?

    If not, perhaps add it to your /etc/hosts file

    Also, there’s some weirdness (I don’t understand it) involved with some part of Windows Networking stuff that seems to require that you use all capital letters in a hostname.. So you may want to see if it’ll connect to ZOEFTSERVE.ZOEFTIGCO.LOCAL

    Hope that helps a bit.