Operation Manual

438
FAQ of the LDAP server.
The 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
Configuration exam ples:
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
Base DN: dc=qnap,dc=com
Root DN: cn=admin,dc=qnap,dc=com
Users Base DN: ou=people,dc=qnap,dc=com
Groups Base DN: ou=group,dc=qnap,dc=com
2. Mac Open Directory Server
Base DN: dc=macserver,dc=qnap,dc=com
Root DN: uid=root,cn=users,dc=macserver,dc=qnap,dc=com
Users Base DN: cn=users,dc=macserver,dc=qnap,dc=com
Groups Base DN: cn=groups,dc=macserver,dc=qnap,dc=com