Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
auth_ldap

Topics

 task
 
 

Namespaces

namespace  auth_ldap\adminpresets
  
 
namespace  auth_ldap\privacy
 Privacy Subsystem implementation for auth_ldap.
 
namespace  auth_ldap\task
 A scheduled task for LDAP roles sync.
 

Classes

class  auth_ldap\adminpresets\adminpresets_auth_ldap_admin_setting_special_contexts_configtext
 Basic text setting, cleans the param using the admin_setting paramtext attribute. More...
 
class  auth_ldap\privacy\provider
 Privacy Subsystem for auth_ldap implementing null_provider. More...
 
class  auth_ldap\task\sync_roles
 A scheduled task class for LDAP roles sync. More...
 
class  auth_ldap\task\sync_task
 A scheduled task class for LDAP user sync. More...
 
class  auth_ldap_admin_setting_special_contexts_configtext
 Special setting for auth_ldap that cleans up context values on save. More...
 
class  auth_ldap_admin_setting_special_lowercase_configtext
 Special setting for auth_ldap that lowercases values on save. More...
 
class  auth_ldap_admin_setting_special_ntlm_configtext
 Special admin setting for auth_ldap that validates ntlm usernames. More...
 
class  auth_plugin_ldap
 LDAP authentication plugin. More...
 

Functions

 get_ldap_assignable_role_names ($user=null)
 Get a list of system roles assignable by the current or a specified user, including their localised names.
 
 xmldb_auth_ldap_upgrade ($oldversion)
 Function to upgrade auth_ldap.
 

Variables

 $plugin = 2023100400
 
$plugin component = 'auth_ldap'
 
if(!defined('AUTH_AD_ACCOUNTDISABLE')) if(!defined( 'AUTH_AD_NORMAL_ACCOUNT')) if(!defined('AUTH_NTLMTIMEOUT')) if(!defined( 'UF_DONT_EXPIRE_PASSWD')) if(!defined('AUTH_UID_NOBODY')) if(!defined( 'AUTH_GID_NOGROUP')) if(!defined('AUTH_NTLM_VALID_USERNAME')) if(!defined( 'AUTH_NTLM_VALID_DOMAINNAME')) if(!defined('AUTH_NTLM_DEFAULT_FORMAT')) if(!defined( 'AUTH_NTLM_FASTPATH_ATTEMPT')) if(!defined('AUTH_NTLM_FASTPATH_YESFORM')) if(!defined( 'AUTH_NTLM_FASTPATH_YESATTEMPT')) if (!defined( 'LDAP_OPT_DIAGNOSTIC_MESSAGE'))
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ get_ldap_assignable_role_names()

get_ldap_assignable_role_names ( $user = null)

Get a list of system roles assignable by the current or a specified user, including their localised names.

Parameters
integer | object$userA user id or object. By default (null) checks the permissions of the current user.
Return values
array\$roles,eachrole as an array with id, shortname, localname, and settingname for the config value.

◆ xmldb_auth_ldap_upgrade()

xmldb_auth_ldap_upgrade ( $oldversion)

Function to upgrade auth_ldap.

Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult