2016-10-27 11:22:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include __DIR__.'/account.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Updates the user credentials on external systems like Samba, create
|
|
|
|
* home directory, create mailbox, etc.
|
|
|
|
**/
|
|
|
|
class SyncUser extends Vn\Web\JsonRequest
|
|
|
|
{
|
|
|
|
const PARAMS = ['syncUser'];
|
|
|
|
|
|
|
|
function run ($db)
|
|
|
|
{
|
2017-05-02 12:33:48 +00:00
|
|
|
Account::sync ($db, $_REQUEST['syncUser'], NULL);
|
2016-10-27 11:22:04 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|