mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-21 17:06:22 +00:00
Correct spelling, including spelling of a configuration variable name.
This commit is contained in:
parent
f9bf7ff170
commit
3e2c600c33
@ -186,7 +186,7 @@ $c->admin_email ='calendar-admin@example.com';
|
||||
// 'default_value' => array("date_format_type" => "E","locale" => "fr_FR"),
|
||||
/** foreach key set start and length in the string provided by ldap
|
||||
example for openLDAP timestamp : 20070503162215Z **/
|
||||
// 'format_udpated'=> array('Y' => array(0,4),'m' => array(4,2),'d'=> array(6,2),'H' => array(8,2),'M'=>array(10,2),'S' => array(12,2))
|
||||
// 'format_updated'=> array('Y' => array(0,4),'m' => array(4,2),'d'=> array(6,2),'H' => array(8,2),'M'=>array(10,2),'S' => array(12,2))
|
||||
//
|
||||
// );
|
||||
//
|
||||
|
||||
@ -162,7 +162,7 @@ function LDAP_check($username, $password ){
|
||||
|
||||
|
||||
$ldap_timestamp = $valid[$mapping["updated"]];
|
||||
foreach($c->authenticate_hook['config']['format_udpated'] as $k => $v)
|
||||
foreach($c->authenticate_hook['config']['format_updated'] as $k => $v)
|
||||
$$k = substr($ldap_timestamp,$v[0],$v[1]);
|
||||
|
||||
//ok it is valid is already exist in db ?
|
||||
@ -233,7 +233,7 @@ function sync_LDAP(){
|
||||
foreach($users_to_create as $username){
|
||||
$valid=$ldap_users_info[$username];
|
||||
$ldap_timestamp = $valid[$mapping["updated"]];
|
||||
foreach($c->authenticate_hook['config']['format_udpated'] as $k => $v)
|
||||
foreach($c->authenticate_hook['config']['format_updated'] as $k => $v)
|
||||
$$k = substr($ldap_timestamp,$v[0],$v[1]);
|
||||
$user = new RSCDSUser(0);
|
||||
$validUserField = array_keys($user->Fields);
|
||||
@ -260,7 +260,7 @@ function sync_LDAP(){
|
||||
foreach($users_to_update as $key=> $username){
|
||||
$valid=$ldap_users_info[$username];
|
||||
$ldap_timestamp = $valid[$mapping["updated"]];
|
||||
foreach($c->authenticate_hook['config']['format_udpated'] as $k => $v)
|
||||
foreach($c->authenticate_hook['config']['format_updated'] as $k => $v)
|
||||
$$k = substr($ldap_timestamp,$v[0],$v[1]);
|
||||
$ldap_timestamp = "$Y"."$m"."$d"."$H"."$M"."$S";
|
||||
$db_timestamp = substr(strtr($db_users_info[$username]['updated'], array(':' => '',' '=>'','-'=>'')),0,14);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user