User manual

172
B.
Samba schema
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
Configuration examples
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
o
Root DN: uid=root,cn=users,dc=macserver,dc=qnap,dc=com
o
Users Base DN: cn=users,dc=macserver,dc=qnap,dc=com
o
Groups Base DN: cn=groups,dc=macserver,dc=qnap,dc=com