Skip to content

Commit

Permalink
Merge pull request #273 from haiwen/add-adfs-disable-pwd-notes
Browse files Browse the repository at this point in the history
Update seahub_settings_py.md
  • Loading branch information
freeplant authored Apr 11, 2024
2 parents 2ee305f + 1ffb8ee commit cc99f34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions manual/config/seahub_settings_py.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ ENABLE_GLOBAL_ADDRESSBOOK = False
# Since 6.0.9
ENABLE_ADFS_LOGIN = True

# Force user login through ADFS instead of email and password
# Default is False
# Since 11.0.7
DISABLE_ADFS_USER_PWD_LOGIN = True

# Enable authentication wit Kerberos
# Default is False
ENABLE_KRB5_LOGIN = True
Expand Down
3 changes: 2 additions & 1 deletion manual/upgrade/upgrade_notes_for_11.0.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ The upgrade script will merge ccnet_db.LDAPImported table to ccnet_db.EmailUsers

If you use OAuth authentication, the configuration need to be changed a bit.

If you use SAML, you don't need to change configuration files. For SAML2, in version 10, the name_id field is returned from SAML server, and is used as the username (the email field in ccnet_dbEmailUser). In version 11, for old users, Seafile will find the old user and create a name_id to name_id mapping in social_auth_usersocialauth. For new users, Seafile will create a new user with random ID and add a name_id to the random ID mapping in social_auth_usersocialauth.
If you use SAML, you don't need to change configuration files. For SAML2, in version 10, the name_id field is returned from SAML server, and is used as the username (the email field in ccnet_dbEmailUser). In version 11, for old users, Seafile will find the old user and create a name_id to name_id mapping in social_auth_usersocialauth. For new users, Seafile will create a new user with random ID and add a name_id to the random ID mapping in social_auth_usersocialauth. In addition, we have added a feature where you can configure to disable login with a username and password for saml users by using the config of `DISABLE_ADFS_USER_PWD_LOGIN = True` in seahub_settings.py.



### Dropped SQLite Database Support
Expand Down

0 comments on commit cc99f34

Please sign in to comment.