move auth classes to Api\Auth, only Sql is currently tested!

This commit is contained in:
Ralf Becker 2016-03-06 20:48:37 +00:00
parent b95727bb6f
commit f116751110

View File

@ -23,7 +23,6 @@ use EGroupware\Api;
// explicitly reference classes still in phpgwapi or old structure
use common; // next_id
use auth;
/**
* LDAP Backend for accounts
@ -599,7 +598,7 @@ class Ldap
}
elseif (!preg_match('/^\\{[a-z5]{3,5}\\}.+/i',$data['account_passwd'])) // if it's not already entcrypted, do so now
{
$data['account_passwd'] = auth::encrypt_ldap($data['account_passwd']);
$data['account_passwd'] = Api\Auth::encrypt_ldap($data['account_passwd']);
}
$to_write['userpassword'] = $data['account_passwd'];
$to_write['shadowlastchange'] = round((time()-$utc_diff) / (24*3600));