Samba and LDAP
Samba and LDAP
1 of 3
https://help.ubuntu.com/12.04/serverguide/samba-ldap.html
Ubuntu.com
Official Documentation
Community
Support
Partners
10/30/2014 7:51 PM
2 of 3
https://help.ubuntu.com/12.04/serverguide/samba-ldap.html
Previous | Next
This section covers the integration of Samba with LDAP. The Samba server's role will be that of a "standalone" server and the LDAP directory will
provide the authentication layer in addition to containing the user, group, and machine account information that Samba requires in order to
function (in any of it's 3 possible roles). The pre-requisite is an OpenLDAP server configured with a directory that can accept authentication
requests. See OpenLDAP Server for details on fulfilling this requirement. Once this section is completed, you will need to decide what specifically
you want Samba to do for you and then configure it accordingly.
Software Installation
LDAP Configuration
Samba Configuration
Resources
Software Installation
There are three packages needed when integrating Samba with LDAP: samba, samba-doc, and smbldap-tools packages.
Strictly speaking, the smbldap-tools package isn't needed, but unless you have some other way to manage the various Samaba entities (users,
groups, computers) in an LDAP context then you should install it.
Install these packages now:
sudo apt-get install samba samba-doc smbldap-tools
LDAP Configuration
We will now configure the LDAP server so that it can accomodate Samba data. We will perform three tasks in this section:
Samba schema
In order for OpenLDAP to be used as a backend for Samba, logically, the DIT will need to use attributes that can properly describe Samba data.
Such attributes can be obtained by introducing a Samba LDAP schema. Let's do this now.
For more information on schemas and their installation see Modifying the slapd Configuration Database.
10/30/2014 7:51 PM
3 of 3
https://help.ubuntu.com/12.04/serverguide/samba-ldap.html
The material in this document is available under a free license, see Legal for details
For information on contributing see the Ubuntu Documentation Team wiki page. To report errors in this serverguide documentation, file a bug report.
10/30/2014 7:51 PM