SSO_LDAP_USE_SAME_UID

This commit is contained in:
skywalker 2024-10-17 10:19:15 +08:00
parent 198fa6b95b
commit b2e3771de1
2 changed files with 14 additions and 0 deletions

View File

@ -113,3 +113,11 @@ If your LDAP service supports TLS connections, you can configure `LDAP_SERVER_UR
```python
LDAP_SERVER_URL = 'ldaps://192.168.0.1:636/'
```
### SSO and LDAP users use the same uid
If you use both ldap and SSO (enable LDAP user sync with ADFS/OAuth), and the uids of ldap and sso users are the same, you can configure `SSO_LDAP_USE_SAME_UID = True` to make different authentication methods point to the same Seafile user.
```python
SSO_LDAP_USE_SAME_UID = True
```

View File

@ -179,6 +179,12 @@ DEL_GROUP_IF_NOT_FOUND = False # Set to "true", sync process will dele
DEL_DEPARTMENT_IF_NOT_FOUND = False # Set to "true", sync process will deleted the department if not found it in LDAP server.
```
If you use both ldap and SSO (enable LDAP user sync with ADFS/OAuth), and the uids of ldap and sso users are the same, you can configure `SSO_LDAP_USE_SAME_UID = True` to make different authentication methods point to the same Seafile user.
```python
SSO_LDAP_USE_SAME_UID = True
```
#### Migrate LDAP records
Run the following script to migrate users in `LDAPImported` to `EmailUsers`