4. Configure Nextcloud#
How to configure the LDAP plugin in Nextcloud is beyond the scope of this document. For the configuration of the LDAP plugin, follow User authentication with LDAP in Nextcloud Administration Manual [2].
Important
Although this section provides a reference for the configuration values of the Nextcloud LDAP plugin, Univention doesn’t provide support for the configuration of the LDAP plugin.
This section provides a reference for the configuration values that operators need to configure in the LDAP plugin to use Nubus for Kubernetes. For the values on the configuration tabs, see the respective sections:
4.1. tab#
Field |
Value |
---|---|
DNS name to the LDAP server of Nubus for Kubernetes. |
|
Default value in Nubus is |
|
The DN for the LDAP search user.
The LDAP search user looks like
Replace |
|
Use the same value for password for the LDAP search user that you defined in Listing 3.1. |
|
The LDAP base DN to the Directory Service in Nubus for Kubernetes.
It’s the value of the template variable |
Tip
If your Nextcloud instance runs outside your cluster,
you need to make the LDAP server reachable to Nextcloud.
Kubernetes provides several ways to achieve this goal,
and it depends on your cluster setup.
One way is to configure a Kubernetes Service of the type NodePort
.
You then use the DNS name of your cluster and the chosen port.
For more information about NodePort
,
see Service | Kubernetes.
4.2. tab#
Field |
Value |
---|---|
With the following LDAP Query, Nextcloud looks up all user accounts that the identity administrator has activated for access to Nextcloud. (&(objectclass=univentionNextcloudUser)(univentionNextcloudEnabled=1))
|
4.3. tab#
Field |
Value |
---|---|
Activated |
|
This query determines which LDAP attribute Nextcloud uses to match the login name.
It configures it to (&(objectclass=univentionNextcloudUser)(univentionNextcloudEnabled=1)(uid=%uid))
|
4.4. tab#
Field |
Value |
---|---|
With the following LDAP Query, Nextcloud looks up all user groups that the identity administrator has activated for access to Nextcloud. (&(objectclass=univentionNextcloudGroup)(univentionNextcloudEnabled=1))
|
4.5. Single sign-on#
After installing the packaged integration and configuring the LDAP plugin, Nextcloud is able to read the user accounts from Nubus for Kubernetes. The next and final step is to also configure single sign-on in Nextcloud, using Nubus for Kubernetes as the identity provider. Imagine your users signing in to the Nubus portal and then opening Nextcloud without the system asking for a username and password.
How to configure single sign-on in Nextcloud and use Nubus for Kubernetes as identity management system is beyond the scope of this document.
See also
- Configure Single-Sign-On | Nextcloud Enterprise
for thorough information about how to configure single sign-on with SAML in Nextcloud.