Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
AuthRemote: Disable the local copy of the user when doing master/slav…
Browse files Browse the repository at this point in the history
…e, should fix #382 and fix #40
  • Loading branch information
cdujeu committed Jan 15, 2014
1 parent 2c0752b commit 82a86b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/auth.multi/class.multiAuthDriver.php
Expand Up @@ -347,11 +347,13 @@ public function checkPassword($login, $pass, $seed)
if ($this->drivers[$this->masterName]->userExists($login)) {
// check master, and refresh slave if necessary
if ($this->drivers[$this->masterName]->checkPassword($login, $pass, $seed)) {
/*
if ($this->drivers[$this->slaveName]->userExists($login)) {
$this->drivers[$this->slaveName]->changePassword($login, $pass);
} else {
$this->drivers[$this->slaveName]->createUser($login, $pass);
}
*/
return true;
} else {
return false;
Expand Down

1 comment on commit 82a86b9

@echampet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to clarify, by doing this listUsers of the master plugin must be implemented (and not return array()) (problem for ftp plugin...)?

When i use the sheduler, it will try for every user, and not only for user who log at least once (if i open my pydio to 10000 user but only 100 use it)

How to list real user (that at least log once)?

thanks in advance

Please sign in to comment.