finall ldap support
This commit is contained in:
@@ -174,7 +174,7 @@ Supported values:
|
||||
|
||||
For `ldap` and `ad`, RustPad searches the directory with the service account, validates the password by binding as the user, and automatically provisions a local account. Existing sessions, ownership, sharing, and other account functions continue to use the existing `users` table. Local registration and guest nickname access are disabled.
|
||||
|
||||
The nickname is generated as `LDAP_ORGANIZATION/displayName`, for example `example/Mateusz Testowy`. The directory e-mail is the stable local account identifier.
|
||||
The nickname is generated as `LDAP_ORGANIZATION/displayName`, for example `example/Mateusz Testowy`. Directory accounts are stored using a stable `entryUUID` (LDAP) or `objectGUID` (AD), while e-mail, nickname, and DN are synchronized after every successful login.
|
||||
|
||||
### OpenLDAP
|
||||
|
||||
@@ -218,7 +218,20 @@ LDAP_EMAIL_ATTRIBUTE=mail
|
||||
LDAP_DISPLAY_NAME_ATTRIBUTE=displayName
|
||||
```
|
||||
|
||||
All LDAP attributes and filters can still be overridden explicitly. The LDAP/LDAPS server certificate must be trusted by the RustPad container.
|
||||
All LDAP attributes and filters can still be overridden explicitly. By default TLS certificates are verified. For a trusted internal or test server using a self-signed certificate, `LDAP_TLS_VERIFY=false` keeps LDAPS/StartTLS encryption enabled without requiring a custom CA file. Do not disable verification on untrusted networks.
|
||||
|
||||
Additional directory options:
|
||||
|
||||
```env
|
||||
LDAP_EXTERNAL_ID_ATTRIBUTE=entryUUID
|
||||
LDAP_EMAIL_REQUIRED=true
|
||||
LDAP_LINK_EXISTING_BY_EMAIL=false
|
||||
LDAP_TLS_VERIFY=true
|
||||
LDAP_CONNECT_TIMEOUT_SECONDS=5
|
||||
LDAP_OPERATION_TIMEOUT_SECONDS=10
|
||||
```
|
||||
|
||||
For Active Directory, the default external identifier is `objectGUID`. Set `LDAP_LINK_EXISTING_BY_EMAIL=true` only during an intentional migration of existing local or legacy LDAP accounts; otherwise an e-mail collision is rejected.
|
||||
|
||||
### Test LDAP on 10.87.2.6
|
||||
|
||||
|
||||
Reference in New Issue
Block a user