163
Some software applications are available and allow management of LDAP users,
including Samba password. For example:
LDAP Account Manager (LAM), with a web-based interface, available from: http://
smbldap-tools (command line tool)
webmin-ldap-useradmin - LDAP user administration module for Webmin.
B. Sa m ba s c he m a
To import the a Samba schema to the LDAP server, please refer to the documentation
or FAQ of the LDAP server. A samba.schema file is required and can be found in the
directory examples/LDAP in the Samba source distribution. Example for open-ldap in the
Linux server where the LDAP server is running (it can be different depending on the
Linux distribution):
Copy the samba schema:
zcat /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz > /etc/ldap/
schema/samba.schema
Edit /etc/ldap/slapd.conf (openldap server configuration file) and make sure the
following lines are present in the file:
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/nis.schema
C onfigura tion e x a m ple s
The following are some configuration examples. They are not mandatory and need to be
adapted to match the LDAP server configuration:
1. Linux OpenLDAP Server
o
Base DN: dc=qnap,dc=com
o
Root DN: cn=admin,dc=qnap,dc=com
o
Users Base DN: ou=people,dc=qnap,dc=com
o
Groups Base DN: ou=group,dc=qnap,dc=com
2. Mac Open Directory Server
o
Base DN: dc=macserver,dc=qnap,dc=com