FormLdap
class FormLdap (View source)
Class to manage generation of HTML components for ldap module
Properties
| DoliDB | $db | ||
| string | $error | ||
| string[] | $errors |
Methods
__construct($db)
Constructor
selectLdapPasswordHashType($selected = 'md5', string $htmlname = 'ldaphashtype', $showempty = 0)
Return list of types of hash
selectLdapDnSynchroActive(int $selected = 0, string $htmlname = 'activesynchro', string[] $exclude = array(), int<0, 3> $scriptonly = 0, $showempty = 0)
Return list of type of synchronization
selectLdapServerType($selected = 'openldap', string $htmlname = 'type', $showempty = 0)
Return list of ldap server types
selectLdapServerProtocolVersion($selected = '3', string $htmlname = 'ldapprotocolversion', $showempty = 0)
Return list of ldap server protocol version
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
selectLdapPasswordHashType($selected = 'md5', string $htmlname = 'ldaphashtype', $showempty = 0)
Return list of types of hash
@param string $selected Preselected type
selectLdapDnSynchroActive(int $selected = 0, string $htmlname = 'activesynchro', string[] $exclude = array(), int<0, 3> $scriptonly = 0, $showempty = 0)
Return list of type of synchronization
selectLdapServerType($selected = 'openldap', string $htmlname = 'type', $showempty = 0)
Return list of ldap server types
@param string $selected Preselected type
selectLdapServerProtocolVersion($selected = '3', string $htmlname = 'ldapprotocolversion', $showempty = 0)
Return list of ldap server protocol version
@param string $selected Preselected type