Code: Select all
$tlCfg->authentication['method'] = 'LDAP';
$tlCfg->authentication['ldap_server'] = 'ldap_server_ip';
$tlCfg->authentication['ldap_port'] = 'ldap_port';
$tlCfg->authentication['ldap_version'] = '3'; // could be '2' in some cases
$tlCfg->authentication['ldap_root_dn'] = 'DC=sample,DC=company,DC=local';
$tlCfg->authentication['ldap_bind_dn'] = 'CN=myname,CN=Users,DC=sample,DC=company,DC=local'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap_bind_passwd'] = 'password'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap_tls'] = false; // true -> use tls
$tlCfg->authentication['ldap_organization'] = ''; // e.g. '(organizationname=*Traffic)'
$tlCfg->authentication['ldap_uid_field'] = 'mysAMAccountName'; // Use 'sAMAccountName' for Active Directory
$tlCfg->authentication['ldap_realname_field'] = 'uid';
Can anyone help me regarding this issue