external directory: reset auth source when disabled
this allows existing users to login (including the owner itself) The alternative is to have some system where we have unique superadmin users across cloudrons which don’t get trampled upon by a sync. This is a bit unrealistic. For the future, we could also design this such that ldap auth is asked for in the initial step i.e at superadmin creation time. If LDAP connection is lost/down, user can always use 'cloudron-support —owner-login'
This commit is contained in:
@@ -54,6 +54,8 @@ exports = module.exports = {
|
||||
getProfileConfig,
|
||||
setProfileConfig,
|
||||
|
||||
resetSource,
|
||||
|
||||
AP_MAIL: 'mail',
|
||||
AP_WEBADMIN: 'webadmin',
|
||||
|
||||
@@ -972,3 +974,7 @@ async function setProfileConfig(profileConfig) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function resetSource() {
|
||||
await database.query('UPDATE users SET source = ?', [ '' ]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user