Auth : LDAP Container
| From: | Christophe Gesché | Date: | Sat, 29 Oct 2005 17:12:53 +0000 |
| Subject: | Auth : LDAP Container | ||
| References: | 1 2 3 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-3188@lists.php.net to get a copy of this message | ||
I have make a change in LDAP container by adding a new option.
The default value preserve the compatibility
The second value is to request that container return additional
properties like the other container. It's useful to build an application
using auth wich don't must branch code following used container.
I'm to have commit without announcement.
I has discuss about it with arnaud to prepare the change.
So I tell write the unit test for LDAP (and perhaps repair the global
this (broken -> Warning: Call-time pass-by-reference has been deprecated
- argument
passed by value; If you would like to pass it by reference, modify the
declaration of [runtime function name]().)
I tell update the english Doc (and probably translate it in french)
My co-worker on claroline project would probably request CVS access
because I'm not in claroline project the 'lead' for code using auth.
And they talks better english than me :)
My Zend studio (in french)
list me these problem in auth code
bugs
container LDAP :
function fetchData($username, $password)
La variable $ver est utilisée avant d'être définie
*Auth\Controller.php*
- Variable $accessList appears only once,
the value of variable $accessList was never used (line 51)
- Variable $url appears only once,
the value of variable $url was never used (line 99)
*Auth\Auth.php*
- Unsafe use of variable in call include()/require() (line 352)
- Both empty return and return with value used in function login() (line
455)
*Container\IMAP.php*
- Both empty return and return with value used in function
_checkServer() (line 134)
- Variable $errno was used before it was defined (line 125)
- Variable $errstr was used before it was defined (line 125)
*Auth\Container\LDAP.php*
- Both empty return and return with value used in function
Auth_Container_LDAP() (line 194)
- Both empty return and return with value used in function _connect()
(line 242)
- Assignment in condition (line 431)
- Variable $ver was used before it was defined (line 392)
*Container\SMBPasswd.php*
- Variable $user & $pass are used before it was defined (line 107)
- Unused function arguments: $username & $password (line 105)
*Auth\Container.php*
LINE 55 function fetchData($username, $password, $isChallengeResponce=false)
- Unused function arguments: $username & $password (line 55)
- Variable $isChallengeResponce appears only once (line 55)
The value of variable $isChallengeResponce was never used (line 55)
- Unused function arguments:
-- $username, $password function addUser($username, $password,
$additional=null) (line 150)
-- $username function removeUser($username) (line 159)
-- $username, $password function changePassword($username, $password)
(line 169)