Home MiscellaneousConfigure OpenLDAP for use with SAMBA

Configure OpenLDAP for use with SAMBA

by SupportPRO Admin

In order to use LDAP and SAMBA we need to configure the /etc/ldap/slapd.conf file.
# Copy the samba.schema file to the OpenLDAP schema directory.

cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema/
# Unzip the file.

gzip -d /etc/ldap/schema/samba.schema.gz
# Open the /etc/ldap/slapd.conf file for editing.

vim /etc/ldap/slapd.conf
# Add the following lines to the document where the other “include” lines are:

include         /etc/ldap/schema/samba.schema
include         /etc/ldap/schema/misc.schema
# Change the line:

access to attribute=userPassword
# to:

access to attrs=userPassword,sambaNTPassword,sambaLMPassword
# Restart OpenLDAP:

/etc/init.d/slapd restart

If you require help, contact SupportPRO Server Admin

Facing issues?

Our technical support
engineers can solve it.

Contact Us today!
guy server checkup

You may also like

Leave a Comment