Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
auth_ldap

Namespaces

namespace  auth_ldap\adminpresets
  
 
namespace  auth_ldap\privacy
  
 
namespace  auth_ldap\task
  
 

Classes

class  auth_ldap\adminpresets\adminpresets_auth_ldap_admin_setting_special_contexts_configtext
 
class  auth_ldap\privacy\provider
 Privacy Subsystem for auth_ldap implementing null_provider. More...
 
class  auth_ldap\task\asynchronous_sync_task
 Adhoc task class for LDAP user sync. 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 = 2024041600
 
 $tasks
 
$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 = 2024042200
 

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

Variable Documentation

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => 'auth_ldap\task\sync_roles',
'blocking' => 0,
'minute' => '0',
'hour' => '0',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'disabled' => 1
),
array(
'classname' => 'auth_ldap\task\sync_task',
'blocking' => 0,
'minute' => '0',
'hour' => '0',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'disabled' => 1
)
)