diff options
author | andi <andi@splitbrain.org> | 2005-01-14 17:40:57 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-01-14 17:40:57 +0100 |
commit | 15fae1076f4439c7cd1302494a48e24f707a3020 (patch) | |
tree | 87c99f0393d0155fbf853f928f7e6d7ee04778bc /inc/auth_ldap.php | |
parent | 132bdbfe5a8ce4c57b4ae7d4391e99d05f186d43 (diff) | |
download | rpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.gz rpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.bz2 |
phpdoc comments
darcs-hash:20050114164057-9977f-e4936fde9037c65c3f32c30b31b2b7df35732f3a.gz
Diffstat (limited to 'inc/auth_ldap.php')
-rw-r--r-- | inc/auth_ldap.php | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php index 2872e710f..c1ff55706 100644 --- a/inc/auth_ldap.php +++ b/inc/auth_ldap.php @@ -1,15 +1,21 @@ <?php /** - * This is used to authenticate against an LDAP server + * LDAP authentication backend * * tested with openldap 2.x on Debian only * * PHPs LDAP extension is needed + * + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * @author Andreas Gohr <andi@splitbrain.org> */ /** - * connects to the ldap server and holds the connection - * in global scope for multiple use + * Connect to the LDAP server + * + * Holds the connection in global scope for multiple use + * + * @author Andreas Gohr <andi@splitbrain.org> */ function auth_ldap_connect(){ global $LDAP_CONNECTION; @@ -34,12 +40,14 @@ function auth_ldap_connect(){ } /** - * required auth function + * Check user+password [required auth function] * * Checks if the given user exists and the given - * plaintext password is correct + * plaintext password is correct by trying to bind + * to the LDAP server * - * It does so by trying to connect to the LDAP server + * @author Andreas Gohr <andi@splitbrain.org> + * @return bool */ function auth_checkPass($user,$pass){ global $conf; @@ -62,7 +70,7 @@ function auth_checkPass($user,$pass){ } /** - * Required auth function + * Return user info [required auth function] * * Returns info about the given user needs to contain * at least these fields: @@ -72,10 +80,12 @@ function auth_checkPass($user,$pass){ * grps array list of groups the user is in * * This LDAP specific function returns the following - * addional fields + * addional fields: * * dn string distinguished name (DN) * uid string Posix User ID + * + * @author Andreas Gohr <andi@splitbrain.org> */ function auth_getUserData($user){ global $conf; @@ -125,9 +135,11 @@ function auth_getUserData($user){ } /** - * Required auth function + * Create a new User [required auth function] * * Not implemented + * + * @author Andreas Gohr <andi@splitbrain.org> */ function auth_createUser($user,$name,$mail){ msg("Sorry. Creating users is not supported by the LDAP backend",-1); |