Customers against LDAP (eDirectory) - SOLVED

Moderator: crythias

Locked
luciano
Znuny newbie
Posts: 2
Joined: 30 Nov 2011, 18:10
Znuny Version: 3.0.11
Real Name: Luciano

Customers against LDAP (eDirectory) - SOLVED

Post by luciano »

Hi everybody,

I've installed OTRS 3.0.11 for Windows, here in Argentina. I'm sorry about my english.

I was doing some test with agents and customers authentincating against DB and its great. But now I'm trying to do it work authenticating customers (so far just customers, not agents) against LDAP (Novell eDirectory) and until now, I can't. This is what I get when I try to log me in as myself as a customer:

[Notice][Kernel::System::CustomerAuth::LDAP::Auth] CustomerUser: xxx (cn=xxx,ou=DSOPORTE,ou=GSISTEMAS,ou=ADM,o=yyy) authentication ok (REMOTE_ADDR: 172.16.xxx.xxx).
[Error][Kernel::System::CustomerUser::SetPreferences][493] No such user 'xxx'!

Below, Im attaching Config.pm. But I've tryied just configuring all the stuff in the option Edit Config Settings in Framework -> Frontend::Customer::Auth as root@localhost agent.

By the way, I don´t understand tge difference between what I've just configured there and what it's automatically generated in ZZZAuto.pm

Somebody can help me? I dont know what else I could test, and right now I have all perl modules ok.

Thanks in advance
Regards,

Luciano


package Kernel::Config;

sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# Start of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #

# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'hot';
# 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};";

# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self->{Home} = 'C:/OTRS/OTRS';

# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #
# $Self->{SessionUseCookie} = 0;
# $Self->{CheckMXRecord} = 0;

# ---------------------------------------------------- #

# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #

$Self->{LogModule} = 'Kernel::System::Log::File';
$Self->{LogModule::LogFile} = 'C:/OTRS/OTRS/var/log/otrs.log';
# $DIBI$
$Self->{'DefaultCharset'} = 'utf-8';





$Self->{CustomerUser} = {
Name => 'LDAP Backend',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '172.16.xxx.xxx',
BaseDN => 'o=xxx',
SSCOPE => 'sub',
#UserDN => 'cn=ldap, o=xxxx',
#UserPw => '*****',
},
CustomerKey => 'cn',
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['cn', 'mail'],
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenName', 'sn'],
Map => [
['UserSalutation', 'Title', 'title', 1, 0,'var'],
['UserFirstname', 'Firstname', 'givenName', 1, 1, 'var'],
['UserLastname', 'Lastname', 'sn', 1, 1, 'var'],
['UserLogin', 'Login', 'cn', 1, 1, 'var'],
['UserEmail', 'Email', 'mail', 1, 1, 'var'],
['UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var'],
['UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var'],
['UserAddress', 'Address', 'postaladdress', 1, 0, 'var'],
['UserComment', 'Comment', 'description', 1, 0, 'var'],
],
};

It was my fault. I've used this example http://devilx.net/2010/03/19/otrs-ldap- ... customers/ modifying mappings with my ldap and it works
amaxi
Znuny newbie
Posts: 5
Joined: 30 Aug 2013, 14:17
Znuny Version: 3.2.9
Real Name: Maxi Attila
Company: NPSH LTD.

Re: Customers against LDAP (eDirectory) - SOLVED

Post by amaxi »

Dear Luciano

I have this problem too. :-(

Could you please share your config file with me ? (Of course without you private numbers (passw, ip etc...) and notes)


Thank you

Attila
Locked