Hello everybody again,

 

I got with success to configure auth LDAP(Active Directory Win 2008 Server) to customer in OTRS so I send to you how did to work this feature:

 

1 – Edit Config.pm file in folder Kernel of OTRS;

 

2 -  Find the line in the file that says: “insert your own config settings "here"”;

 

3 – Insert the configurations of the LDAP, as bellow and according with your LDAP(AD)  environment:

 

##################################################

# CONFIGS AUTH CUSTOMER IN LDAP

# BY LEONARDO COUTO CONRADO

# DATE 18.05.2011

##################################################

# This is an example configuration for an LDAP auth. backend.

# (make sure Net::LDAP is installed!)

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';

$Self->{'Customer::AuthModule::LDAP::Host'} = 'srvfslm.grupolm.com.br';

$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=grupolm,dc=com,dc=br';

$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';

$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=helpdesk otrs,OU=TI,OU=DCORP,OU=LM IGUATEMI,OU=GRUPOLM,DC=grupolm,DC=com,DC=br';

$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';

$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'otrs123';

$Self->{'AuthModule::LDAP::Die'} = 1;

 

##################################################

# CONFIGS CUSTOMER IN BACKEND LDAP

# BY LEONARDO COUTO CONRADO

# DATE 18.05.2011

##################################################

# CustomerUser

# (customer user ldap backend and settings)

    $Self->{CustomerUser} = {

        Name => 'LDAP Backend',

        Module => 'Kernel::System::CustomerUser::LDAP',

        Params => {

            Host => 'srvfslm.grupolm.com.br',

            BaseDN => 'dc=grupolm,dc=com,dc=br',

            SSCOPE => 'sub',

            UserDN => 'CN=helpdesk otrs,OU=TI,OU=DCORP,OU=LM IGUATEMI,OU=GRUPOLM,DC=grupolm,DC=com,DC=br',

            UserPw => 'otrs123',

           AlwaysFilter => '(objectclass=user)',

            },

 

# customer unique id

    CustomerKey => 'sAMAccountName',

    CustomerID => 'sAMAccountName',

    CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],

    CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],

    CustomerUserSearchPrefix => '',

    CustomerUserSearchSuffix => '*',

    CustomerUserSearchListLimit => 250,

    CustomerUserPostMasterSearchFields => ['mail'],

    CustomerUserNameFields => ['givenname', 'sn'],

    Map => [

      # note: Login, Email and CustomerID needed!

      # var, frontend, storage, shown, required, storage-type

      #[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],

      [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],

      [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],

      [ 'UserLogin', 'Login', 'sAMAccountName', 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' ],

    ],

  };

 

Att,

 

Leonardo Couto Conrado.

 

 

De: Leonardo Couto [mailto:leonardocoutoc@gmail.com]
Enviada em: quarta-feira, 18 de maio de 2011 20:02
Para: otrs@otrs.org
Assunto: Auth LDAP but erro in customer backend

 

Hello everybody,

 

I'm new user in the system otrs and am really enjoying its features, I'm on a project and think it will deploy the company in otrs where I manage computer systems and computer networks. Well my problem is: I set up the customers to be able to log in using the database ldap but when I try login with my ldap user I get the following error:

 

“Authentication succeeded, but no customer record is found in the customer backend. Please contact your administrator.”

 

Someone have some a idea to solution this problem?

 

Thank,

 

 

Leonardo Conrado.