mirror of
https://github.com/lldap/lldap.git
synced 2024-11-25 17:13:25 +00:00
977 B
977 B
Configuration for Seafile
Basic configuration
Add the following to your seafile/conf/ccnet.conf
file:
[LDAP]
HOST = ldap://192.168.1.100:3890
BASE = ou=people,dc=example,dc=com
USER_DN = uid=admin,ou=people,dc=example,dc=com
PASSWORD = YOURPASSWORDHERE
LOGIN_ATTR = mail
- Replace
192.168.1.100:3890
with your lldap server's ip/hostname and port. - Replace every instance of
dc=example,dc=com
with your configured domain. - Replace
YOURPASSWORDHERE
with your bind user's password.
IMPORTANT: Seafile requires the LOGIN_ATTR to be in an email-like format. You cannot use the uid as LOGIN_ATTR!
After restarting the Seafile server, users should be able to log in with their email address and password.
Filtering by group membership
If you only want members of a specific group to be able to log in, add the following line:
FILTER = memberOf=cn=seafile_user,ou=groups,dc=example,dc=com
- Replace
seafile_user
with the name of your group.