Nextcloud external auth: Difference between revisions

From Newroco Tech Docs
Jump to navigationJump to search
Line 11: Line 11:
Enter the Base DN(s) as needed. The basic one is
Enter the Base DN(s) as needed. The basic one is
  dc=yourdomain,dc=local
  dc=yourdomain,dc=local
Click ''Test Base DN''
Click ''Test Base DN'' then
Configuration OK should go green. If not check for typos and that your target Samba server has the workaround in its smb.conf as per [[Samba#Secure_LDAP_quick_workaround]]
''Configuration OK'' should go green. If not check for typos and that your target Samba server has the workaround in its smb.conf as per [[Samba#Secure_LDAP_quick_workaround]]

Revision as of 12:15, 24 April 2017

These notes are designed to help with LDAP authentication for various packages, and were developed around the use of samba for the LDAP provider.

Nextcloud (without LDAP SSL)

Create service user in Samba (make sure it has a long password and never expires). These docs assume you name the user next.cloud Go to Nextcloud Admin -> LDAP/Ad integration Enter server IP of Samba server Enter the port as 389 Enter User DN as follows. Assumes your domain is something like yourdomain.local and that your primary user container is the default "users"

cn=next.cloud,cn=users,dc=yourdomain,dc=local

Enter the password for the next.cloud user Enter the Base DN(s) as needed. The basic one is

dc=yourdomain,dc=local

Click Test Base DN then Configuration OK should go green. If not check for typos and that your target Samba server has the workaround in its smb.conf as per Samba#Secure_LDAP_quick_workaround