LDAP Agent Error

Moderator: crythias

Locked
jladd
Znuny newbie
Posts: 11
Joined: 31 Dec 2010, 16:12
Znuny Version: 3.0.8

LDAP Agent Error

Post by jladd »

Good Afternoon,
I have recently upgraded to 3.0.10 and i am now trying to add a agent in that uses a LDAP authentication. However every single time i try and add the user in, it asks for a password to be entered in for the user. It seems like it just wants to add the user to the Database and not use LDAP. Below is my config.pm file. (Also when adding customers in with LDAP Backend, it works fine)

# DatabaseHost
# (The database host.)
$Self->{DatabaseHost} = '10.28.119.135';
# Database
# (The database name.)
$Self->{Database} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{DatabaseUser} = '*****';
# DatabasePw
# (The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords.)
$Self->{DatabasePw} = '*****';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

# (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a tcpip connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

$Self->{SecureMode} = 1;
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '10.28.120.13';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=****, dc=*****';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=OTRS USER, cn=Managed Service Accounts, dc=*****, dc=*****';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '*****';
$Self->{'AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};





# This is an example configuration for an LDAP auth. backend.
# (take care that Net::LDAP is installed!)
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '10.28.120.13';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=***, dc=***';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

# The following is valid but would only be necessary if the
# anonymous user do NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS USER2,OU=******Employees,DC=*****,DC=****';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '*******';
OTRS 3.0.8 running On Windows Server 2008R2 using LDAP Back-end for Authentication
Locked