You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same goes for LDAP, where you must specify the LDAP server url, the DN pattern, the Mail attribute, as well as whether you want new authenticated to be created upon login (_like for IMAP_):
209
209
210
210
```shell
211
-
LDAP_AUTH_URL="ldap://127.0.0.1"
212
-
LDAP_DN_PATTERN="mail=%u"
213
-
LDAP_MAIL_ATTRIBUTE="mail"
211
+
LDAP_AUTH_URL=ldap://127.0.0.1:3890 # default LDAP port
212
+
LDAP_DN_PATTERN=uid=%u,ou=users,dc=domain,dc=com
213
+
LDAP_MAIL_ATTRIBUTE=mail
214
214
LDAP_AUTH_USER_AUTOCREATE=true # false by default
215
-
LDAP_CERTIFICATE_CHECKING_STRATEGY="try" # try by default.
215
+
LDAP_CERTIFICATE_CHECKING_STRATEGY=try # try by default. Other values are: never, hard, demand or allow
216
216
```
217
217
218
218
> Ex: for [Zimbra LDAP](https://zimbra.github.io/adminguide/latest/#zimbra_ldap_service), you might want to use the `zimbraMailDeliveryAddress` attribute to retrieve the principal user email:
219
219
> ```shell
220
-
> LDAP_MAIL_ATTRIBUTE="zimbraMailDeliveryAddress"
220
+
> LDAP_MAIL_ATTRIBUTE=zimbraMailDeliveryAddress
221
221
>```
222
222
223
223
## Migrating from Baïkal?
@@ -551,6 +551,31 @@ In a shell, if you run Davis locally:
551
551
552
552
bin/console doctrine:migrations:migrate
553
553
554
+
### The LDAP connection is not working
555
+
556
+
> [!NOTE]
557
+
>
558
+
> Make sure all environment parameters are in plain text (no quotes).
559
+
560
+
Check if your instance can reach your LDAP server:
561
+
562
+
- For Docker instances: make sure it is on the same network
0 commit comments