Hi Altangerel,

yes, the mapping of LDAP-based values to those suitable for OTRS seems not to 
be configured. This mapping is described here: 
http://doc.otrs.org/2.4/en/html/x1790.html#customer-backend-ldap (RTFM!)
Our installation is configured as following:
        Map => [
#            # note: Login, Email and CustomerID needed!
#            # var, frontend, storage, shown (1=always,2=lite), required, 
storage-type, http-link, readonly
            [ 'UserSalutation', 'Title',      'title',           1, 0, 'var', 
'', 0 ],
            [ 'UserFirstname',  'Firstname',  'givenname',       1, 1, 'var', 
'', 0 ],
            [ 'UserLastname',   'Lastname',   'sn',              1, 1, 'var', 
'', 0 ],
            [ 'UserLogin',      'Login',      'cn',              1, 1, 'var', 
'', 0 ],
            [ 'UserEmail',      'Email',      'mail',            1, 1, 'var', 
'', 0 ],
            [ 'UserCustomerID', 'CustomerID', 'mail',            0, 1, 'var', 
'', 0 ],
#            # [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 
'var', '', 0 ],
            [ 'UserPhone',      'Phone',      'telephonenumber', 1, 0, 'var', 
'', 0 ],
            [ 'UserAddress',    'Address',    'postaladdress',   1, 0, 'var', 
'', 0 ],
            [ 'UserComment',    'Comment',    'description',     1, 0, 'var', 
'', 0 ],
            [ 'UserLocation',   'Location',   'l',               1, 0, 'var', 
'', 0 ],
        ],

You can try this or your setup can vary.

Mit freundlichen Grüßen / Kind Regards
Hermann Maurer

-----Original Message-----
From: otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] On Behalf Of 
Altangerel
Sent: Montag, 19. Oktober 2009 06:45
To: User questions and discussions about OTRS.
Subject: Re: [otrs] LDAP authentication problem

Hi,

Maurer, thank you for your valuable reply :). I've solved my problem by 
following your suggest. I'm using Windows 2003 server.
I faced another problem. By enabling LDAP authentication for agents, I 
could not log in as admin user he he. To solve this problem, I've 
decided to use LDAP authentication only for customer users.
My configuration is:

#Enable LDAP authentication for customers
    $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
    $Self->{'Customer::AuthModule::LDAP::Host'} = 'domain.xxx.com';
    $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=xxx,DC=com';
    $Self->{'Customer::AuthModule::LDAP::UID'} = 'CN';


    # 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_ldap, 
DC=xxx, DC=com';
    $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'password';

    # in case you want to add always one filter to each ldap query, use
    # this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => 
'(objectclass=user)'
    $Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '';


    # Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
    $Self->{'Customer::AuthModule::LDAP::Params'} = {
        port => 389,
        timeout => 120,
        async => 0,
        version => 3,
    };

When the customers are trying to log in error message appeared. *Panic! 
No user data!!!!!
*But in the log file everything is ok "authentication ok".

What is wrong?


 
Maurer, Hermann wrote:
> Hi,
>
> I assume, you've read this:
> http://doc.otrs.org/2.4/en/html/x1835.html#configuration-agent-auth-back
> end-ldap.
> Which server are you using as LDAP Backend? For MS ADS you do need the
> following:
> $Self->{'AuthModule::LDAP::UID'} =  'cn';
> Please make sure, that you really can search in your LDAP (with
> ldapsearch for example) in the context of the user 'CN=otrs_ldap,
> OU=otrs_group, DC=xxx, DC=com' with the given password.
>
>
> Regards,
> Hermann Maurer
>   

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to