28include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
46 $this->family =
"interface";
48 $this->module_position =
'30';
50 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
53 $this->version =
'dolibarr';
54 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
58 $this->picto =
'technic';
61 $this->dirs = array(
"/ldap/temp");
64 $this->config_page_url = array(
"ldap.php");
67 $this->hidden =
false;
68 $this->depends = array();
69 $this->requiredby = array();
70 $this->conflictwith = array();
74 [
'LDAP_SERVER_TYPE',
'chaine',
'openldap',
'', 0],
75 [
'LDAP_SERVER_PROTOCOLVERSION',
'chaine',
'3',
'', 0],
76 [
'LDAP_SERVER_HOST',
'chaine',
'localhost',
'', 0],
77 [
'LDAP_USER_DN',
'chaine',
'ou=users,dc=example,dc=com',
'', 0],
78 [
'LDAP_GROUP_DN',
'chaine',
'ou=groups,dc=example,dc=com',
'', 0],
79 [
'LDAP_FILTER_CONNECTION',
'chaine',
'&(objectClass=inetOrgPerson)',
'', 0],
80 [
'LDAP_FIELD_LOGIN',
'chaine',
'uid',
'', 0],
81 [
'LDAP_FIELD_FULLNAME',
'chaine',
'cn',
'', 0],
82 [
'LDAP_FIELD_NAME',
'chaine',
'sn',
'', 0],
83 [
'LDAP_FIELD_FIRSTNAME',
'chaine',
'givenname',
'', 0],
84 [
'LDAP_FIELD_MAIL',
'chaine',
'mail',
'', 0],
85 [
'LDAP_FIELD_PHONE',
'chaine',
'telephonenumber',
'', 0],
86 [
'LDAP_FIELD_FAX',
'chaine',
'facsimiletelephonenumber',
'', 0],
87 [
'LDAP_FIELD_MOBILE',
'chaine',
'mobile',
'', 0],
88 [
'LDAP_GROUP_FILTER',
'chaine',
'&(objectClass=groupOfNames)',
'', 0],
89 [
'LDAP_USERACCOUNTCONTROL',
'int', 512,
'', 0],
93 $this->boxes = array();
96 $this->rights = array();
97 $this->rights_class =
'ldap';
Class to describe and enable module Ldap.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.