auth:ntlm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
auth:ntlm [2011-06-18 15:00] – corrected link ach | auth:ntlm [2012-02-17 10:56] – 87.162.133.94 | ||
---|---|---|---|
Line 201: | Line 201: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Additions ===== | ||
+ | |||
+ | Using NTLM based auth and as user store the users.auth.php, | ||
+ | |||
+ | < | ||
+ | /** | ||
+ | * Return user info | ||
+ | * | ||
+ | * Returns info about the given user needs to contain | ||
+ | * at least these fields: | ||
+ | * | ||
+ | * name string | ||
+ | * mail string | ||
+ | * grps array list of groups the user is in | ||
+ | * | ||
+ | * @author | ||
+ | */ | ||
+ | function getUserData($user){ | ||
+ | |||
+ | if($this-> | ||
+ | return isset($this-> | ||
+ | } | ||
+ | |||
+ | |||
+ | function _loadUserData(){ | ||
+ | global $config_cascade; | ||
+ | |||
+ | $this-> | ||
+ | |||
+ | if(!@file_exists($config_cascade[' | ||
+ | |||
+ | $lines = file($config_cascade[' | ||
+ | foreach($lines as $line){ | ||
+ | $line = preg_replace('/# | ||
+ | $line = trim($line); | ||
+ | if(empty($line)) continue; | ||
+ | |||
+ | $row = explode(":", | ||
+ | $groups = array_values(array_filter(explode(",", | ||
+ | |||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | and comment the function getUserData from original ntlm.class.php | ||
+ | |||
+ | < | ||
+ | //function getUserData($user) { | ||
+ | // global $conf; | ||
+ | // $userInfo[' | ||
+ | // $userInfo[' | ||
+ | // $userInfo[' | ||
+ | // return $userInfo; | ||
+ | //} | ||
+ | </ | ||