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
Copy file name to clipboardExpand all lines: docs/specs/ldap.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ When the connection URL starts with `ldaps://`, then Authgear will connect to th
34
34
It is very common that before a LDAP client can run any [Search Operation](https://datatracker.ietf.org/doc/html/rfc4511#section-4.5),
35
35
the LDAP client must perform [Bind Operation](https://datatracker.ietf.org/doc/html/rfc4511#section-4.2) first.
36
36
37
-
Authgear supports Simple Bind with username and password.
37
+
Authgear supports Simple Bind with DN and password, according to https://datatracker.ietf.org/doc/html/rfc4513#section-5.1.3
38
38
39
39
## Configuration of LDAP servers
40
40
@@ -86,14 +86,16 @@ secrets:
86
86
- data:
87
87
items:
88
88
- name: default
89
-
username: authgear
89
+
# According to https://datatracker.ietf.org/doc/html/rfc4513#section-5.1.3,
90
+
# Simple Bind takes a DN and a password.
91
+
dn: cn=authgear,dc=example,dc=com
90
92
password: secret1
91
93
key: ldap
92
94
```
93
95
94
96
- `items.name`: To associate a LDAP server in `authgear.yaml`.
95
-
- `items.username`: Optional. The username Authgear uses to authenticate itself to the LDAP server. If it is not provided, then Authgear does not authenticates itself, and assumes the LDAP server allows anonymous requests.
96
-
- `items.password`: Optional. The password Authgear uses to authenticate itself to the LDAP server. If `username` is provided, then `password` is required.
97
+
- `items.dn`: Optional. The DN of the LDAP entry Authgear uses to authenticate itself to the LDAP server. If it is not provided, then Authgear does not authenticates itself, and assumes the LDAP server allows anonymous requests.
98
+
- `items.password`: Optional. The password of the LDAP entry Authgear uses to authenticate itself to the LDAP server. If `dn` is provided, then `password` is required.
0 commit comments