Skip to content

Commit

Permalink
Merge pull request #348 from haiwen/SSO_LDAP_USE_SAME_UID
Browse files Browse the repository at this point in the history
SSO_LDAP_USE_SAME_UID
  • Loading branch information
freeplant authored Oct 17, 2024
2 parents 198fa6b + 7635c16 commit ea9b555
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manual/deploy_pro/ldap_in_11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,16 @@ 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.
```

### SSO and LDAP users use the same uid

If you sync users from LDAP to Seafile, when the user login via SSO (ADFS or OAuth), you want Seafile to find the existing account for this user instead of creating a new one, you can set `SSO_LDAP_USE_SAME_UID = True`:

```python
SSO_LDAP_USE_SAME_UID = True
```

Note, here the UID means the unique user ID, in LDAP it is the attribute you use for `LDAP_LOGIN_ATTR` (not `LDAP_UID_ATTR`), in ADFS it is `uid` attribute. You need make sure you use the same attribute for the two settings.

## Importing Roles from LDAP

Seafile Pro Edition supports syncing roles from LDAP or Active Directory.
Expand Down
8 changes: 8 additions & 0 deletions manual/upgrade/upgrade_notes_for_11.0.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ 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 sync users from LDAP to Seafile, when the user login via SSO (ADFS or OAuth), you want Seafile to find the existing account for this user instead of creating a new one, you can set `SSO_LDAP_USE_SAME_UID = True`:

```python
SSO_LDAP_USE_SAME_UID = True
```

Note, here the UID means the unique user ID, in LDAP it is the attribute you use for `LDAP_LOGIN_ATTR` (not `LDAP_UID_ATTR`), in ADFS it is `uid` attribute. You need make sure you use the same attribute for the two settings.

#### Migrate LDAP records

Run the following script to migrate users in `LDAPImported` to `EmailUsers`
Expand Down

0 comments on commit ea9b555

Please sign in to comment.