Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
ldaplib.php File Reference

Functions

 ldap_addslashes ($text)
 Quote control characters in AttributeValue parts of a RelativeDistinguishedName used in LDAP distinguished names - See RFC 4514/2253.
 
 ldap_connect_moodle ($host_url, $ldap_version, $user_type, $bind_dn, $bind_pw, $opt_deref, &$debuginfo, $start_tls=false)
 Tries connect to specified ldap servers.
 
 ldap_filter_addslashes ($text)
 Quote control characters in texts used in LDAP filters - see RFC 4515/2254.
 
 ldap_find_userdn ($ldapconnection, $username, $contexts, $objectclass, $search_attrib, $search_sub)
 Search specified contexts for username and return the user dn like: cn=username,ou=suborg,o=org.
 
if(!defined('LDAP_DN_SPECIAL_CHARS')) if(!defined( 'LDAP_DN_SPECIAL_CHARS_QUOTED_NUM')) if(!defined('LDAP_DN_SPECIAL_CHARS_QUOTED_ALPHA')) if(!defined( 'LDAP_DN_SPECIAL_CHARS_QUOTED_ALPHA_REGEX')) ldap_get_dn_special_chars ()
 The order of the special characters in these arrays IS IMPORTANT.
 
 ldap_get_entries_moodle ($ldapconnection, $searchresult)
 Returns values like ldap_get_entries but is binary compatible and returns all attributes as array.
 
 ldap_getdefaults ()
 Initializes needed variables for ldap-module.
 
 ldap_isgroupmember ($ldapconnection, $userid, $group_dns, $member_attrib)
 Checks if user belongs to specific group(s) or is in a subtree.
 
 ldap_normalise_objectclass ($objectclass, $default=' *')
 Normalise the supplied objectclass filter.
 
 ldap_paged_results_supported ($ldapversion, $ldapconnection=null)
 Check if we can use paged results (see RFC 2696).
 
 ldap_stripslashes ($text)
 Unquote control characters in AttributeValue parts of a RelativeDistinguishedName used in LDAP distinguished names - See RFC 4514/2253.
 
if(!defined( 'ROOTDSE')) if(!defined('LDAP_PAGED_RESULTS_CONTROL')) if(!defined( 'LDAP_DEFAULT_PAGESIZE')) ldap_supported_usertypes ()
 Returns predefined user types.
 

Variables

**Library file of miscellaneous general purpose LDAP functions and *data structures