From 4e0ee6265dbc1f5b1374357f56480c697c11bcc8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 4 Dec 2024 18:44:36 +0000 Subject: [PATCH] Fixed nextcloud to use uid for login and welcome email for nextcloud user notice --- lib/functions.sh | 2 ++ lib/nextcloud.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index d8ab493..65ab256 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -1684,6 +1684,8 @@ Here are the credentials for that user. Username = "admin@$DOMAIN"
Password = "$ADMINPASS"

+IMPORTANT: When logging into Nextcloud using normal login (NOT Login with Authelia), you need to use the system username from panel, not user@domain.com. This includes the admin user. +

Dashboard

Visit https://dashboard.$DOMAIN to access all of your applications using the admin user and password above. You can use dashboard as a launching pad for your applications. diff --git a/lib/nextcloud.sh b/lib/nextcloud.sh index 015388a..8fa9878 100644 --- a/lib/nextcloud.sh +++ b/lib/nextcloud.sh @@ -218,7 +218,7 @@ PATH=/var/www/html:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/bin /var/www/html/occ ldap:set-config s01 ldapGroupFilterMode 0 /var/www/html/occ ldap:set-config s01 ldapGroupFilterObjectclass inetOrgPerson /var/www/html/occ ldap:set-config s01 ldapGroupMemberAssocAttr uniqueMember -/var/www/html/occ ldap:set-config s01 ldapLoginFilter '(&(|(objectclass=inetOrgPerson))(mail=%uid))' +/var/www/html/occ ldap:set-config s01 ldapLoginFilter '(&(|(objectclass=inetOrgPerson))(uid=%uid))' /var/www/html/occ ldap:set-config s01 ldapLoginFilterEmail 0 /var/www/html/occ ldap:set-config s01 ldapLoginFilterMode 0 /var/www/html/occ ldap:set-config s01 ldapLoginFilterUsername 1