| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 350 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
auth_ldap:: (6 methods):
auth_ldap()
checkPass()
getUserData()
_makeFilter()
_filterEscape()
_openLDAP()
| auth_ldap() X-Ref |
| Constructor |
| checkPass($user,$pass) X-Ref |
| Check user+password Checks if the given user exists and the given plaintext password is correct by trying to bind to the LDAP server author: Andreas Gohr <andi@splitbrain.org> return: bool |
| getUserData($user,$inbind=false) X-Ref |
| Return user info Returns info about the given user needs to contain at least these fields: name string full name of the user mail string email addres of the user grps array list of groups the user is in This LDAP specific function returns the following addional fields: dn string distinguished name (DN) uid string Posix User ID inbind bool for internal use - avoid loop in binding author: Andreas Gohr <andi@splitbrain.org> author: Trouble author: Dan Allen <dan.j.allen@gmail.com> author: <evaldas.auryla@pheur.org> author: Stephane Chazelas <stephane.chazelas@emerson.com> return: array containing user data or false |
| _makeFilter($filter, $placeholders) X-Ref |
| Make LDAP filter strings. Used by auth_getUserData to make the filter strings for grouptree and groupfilter filter string ldap search filter with placeholders placeholders array array with the placeholders author: Troels Liebe Bentsen <tlb@rapanden.dk> return: string |
| _filterEscape($string) X-Ref |
| Escape a string to be used in a LDAP filter Ported from Perl's Net::LDAP::Util escape_filter_value author: Andreas Gohr |
| _openLDAP() X-Ref |
| Opens a connection to the configured LDAP server and sets the wanted option on the connection author: Andreas Gohr <andi@splitbrain.org> |
| Generated: Fri Nov 21 01:30:02 2008 | Cross-referenced by PHPXref 0.7 |