Samba and LDAP

From Secure Computing Wiki
Revision as of 11:03, 29 October 2008 by Ecrist (Talk | contribs) (New page: rightThis how-to assumes you have a working OpenLDAP system. The purpose of this page is to provide a procedure for installation and configuration of Samba 3....)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Samba logo.png
This how-to assumes you have a working OpenLDAP system. The purpose of this page is to provide a procedure for installation and configuration of Samba 3.0 with an LDAP backend for authentication and certain configuration. The document was written using FreeBSD 7.0, OpenLDAP 2.4, and Samba 3.0.32.

Introduction

Samba is a powerful file sharing utility that has, over the years, become supported on most common platforms. Mac OS X, Windows, Linux, and other Unix-like operating systems offer direct support, or support through add-on utilities and packages. Couple this with LDAP on the back end, you can build a centralized authentication and file sharing system approaching single-sign-on (SSO).

While this document was written using FreeBSD as the host system, the majority of these steps are relatively OS-agnostic. Simply apply your appropriate package manager for installation steps. File locations will vary from one OS to another.

Installation

The first step is to install Samba, and its dependencies on your system. On FreeBSD, I accomplished this with:

# cd /usr/ports/net/samba3 && make install clean
  • Be sure to select LDAP from the list. Non FreeBSD users, add --with-ldap to your ./configure