Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP authorization #424

Open
ureman2 opened this issue Apr 15, 2024 · 0 comments
Open

LDAP authorization #424

ureman2 opened this issue Apr 15, 2024 · 0 comments

Comments

@ureman2
Copy link

ureman2 commented Apr 15, 2024

Good afternoon.
I can't do LDAP authentication at all.
The configuration has already been studied. I've tried different options, but I still get "invalid username or password" as output. Please correct me if it's not difficult.
define('K_LDAP_ENABLED', true);
define('K_LDAP_HOST', 'ldaps://srv.jobname.com');
define('K_LDAP_PORT', 389);
define('K_LDAP_PROTOCOL_VERSION', 3);
define('K_LDAP_ROOT_DN', 'CN= examen, OU= SystemUsers, DC=jobname,DC=com');
define('K_LDAP_ROOT_PASS', 'password');
define('K_LDAP_BASE_DN', 'CN= examen, OU= SystemUsers, DC=jobname, DC=com');
define('K_LDAP_FILTER', 'uid= sAMAccountName=user');

$ldap_attr = array();
$ldap_attr['dn'] = 'dn';
$ ldap_attr['user_email'] = 'mail';
$ ldap_attr['user_firstname'] = 'Specified name';
$ldap_attr['user_lastname'] = 'sn';
//$ ldap_attr['user_registrar'] = ";

define('K_LDAP_UTF8', false);
define('K_LDAP_USER_LEVEL', 1);
define('K_LDAP_USER_GROUP_ID', 1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant