Identity and Access Managementยถ

IAM(Identity and Access Management) is setup via Keycloak and LDAP.

OpenID Connect (OIDC) Support ๐Ÿ”ยถ

OIDC is supported in this roleโ€”for example, via Keycloak. OIDC-specific tasks are included when enabled, allowing integration of external authentication providers seamlessly.

Verify OIDC Configurationยถ

docker compose exec -u www-data application /var/www/html/occ config:app:get sociallogin custom_providers

LDAPยถ

More information: https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_auth_ldap.html

Get LDAP Configurationยถ

docker compose exec -u www-data application php occ ldap:show-config

Get all relevant entries except passwordยถ

SELECT * FROM `oc_appconfig` WHERE appid LIKE "%ldap%" and configkey != "s01ldap_agent_password";

Update User with LDAP valuesยถ

docker compose exec -it -u www-data application php occ ldap:check-user --update {{username}}

Update LDAP Syncยถ

docker compose exec -u www-data application php occ user:sync-account-data

Update Each Userยถ

If you want to update every LDAP user, run:

for user in $(docker compose exec -u www-data application php occ user:list --output=json | jq -r 'keys[]'); do
    docker compose exec -u www-data application php occ ldap:check-user --update "$user"
done

Federationยถ

If users are just created via Keycloak and not via LDAP, they have a different username. Due to this reaso concider to use LDAP to guaranty that the username is valid.