2022-03-08 19:42:28 +01:00
|
|
|
# DEBUG
|
|
|
|
|
|
|
|
## Mode debug
|
|
|
|
|
|
|
|
sed -i "s/'debug' => false,/'debug' => true,/g" /etc/nextcloud/config.php
|
|
|
|
|
|
|
|
## LDAP
|
|
|
|
|
|
|
|
Test configuration:
|
|
|
|
|
|
|
|
```
|
|
|
|
php /usr/share/nextcloud/occ ldap:test-config s01
|
|
|
|
```
|
|
|
|
|
|
|
|
Show LDAP configuration:
|
|
|
|
|
|
|
|
```
|
|
|
|
php /usr/share/nextcloud/occ ldap:show-config s01
|
|
|
|
```
|
|
|
|
|
|
|
|
Check a user:
|
|
|
|
|
|
|
|
```
|
|
|
|
php /usr/share/nextcloud/occ ldap:search Emmanuel
|
|
|
|
```
|
|
|
|
|
|
|
|
Check a login name:
|
|
|
|
|
|
|
|
```
|
|
|
|
php /usr/share/nextcloud/occ ldap:check-user gnunux@gnunux.info
|
|
|
|
```
|
|
|
|
|
|
|
|
## admin
|
|
|
|
|
|
|
|
su - apache -s /bin/bash -c "php /usr/share/nextcloud/occ app:disable oidc_login"
|
|
|
|
Password : password/nextcloud.in.gnunux.info/nextcloud/admin_password
|
2022-07-05 22:07:23 +02:00
|
|
|
|
|
|
|
## The provider authorization_endpoint could not be fetched. Make sure your provider has a well known configuration available.
|
|
|
|
|
|
|
|
Vérification :
|
|
|
|
|
|
|
|
```
|
|
|
|
su - apache -s /bin/bash -c "php /usr/share/nextcloud/occ config:list"|grep know
|
|
|
|
```
|
|
|
|
|
2022-10-01 19:11:05 +02:00
|
|
|
Il faut quelque chose comme :
|
|
|
|
|
|
|
|
```
|
|
|
|
"well-known": "{\"grant_types_supported\": [...]}"
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2022-07-05 22:07:23 +02:00
|
|
|
Suppression de cache nextcloud :
|
|
|
|
|
|
|
|
```
|
|
|
|
su - apache -s /bin/bash -c "php /usr/share/nextcloud/occ config:app:set --value 0 oidc_login last_updated_well_known"
|
|
|
|
```
|
|
|
|
|
|
|
|
Sur lemonldap, le script de création du fichier .well-known :
|
|
|
|
|
|
|
|
```
|
|
|
|
/usr/local/lib/sbin/interne_well_known.pl
|
|
|
|
```
|
2022-10-01 19:11:05 +02:00
|
|
|
|
|
|
|
Pour regénérer :
|
|
|
|
|
|
|
|
```
|
|
|
|
systemctl restart lemonldap-ng-fastcgi-server.service
|
|
|
|
```
|