Customer database from Active Directory

Moderator: crythias

Locked
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

Customer database from Active Directory

Post by cbravo »

Hello guys,

I've successfully integrated my otrs with my active directory to get my customer database. As you will see from these images, I'm getting my user info from the AD (Windows Server 2008) and since there is no password field to change I know the integration is working.
user info AD.JPG
When I try to login from the customer frontend something is not working though.

this is my config.pm file (I've changed a few fields from *** for security reasons, sorry about that).

Code: Select all

    $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
    $Self->{'Customer::AuthModule::LDAP::Host'} = 'myipaddress';
    $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=itcgroup,dc=us';
    $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'} = 'THEADUSER';
    $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '****************';

    #CustomerUser
    #(customer user database backend and settings)
    $Self->{CustomerUser} = {
      Module => 'Kernel::System::CustomerUser::LDAP',
      Params => {
      Host => 'MYIPADDRESS',
      BaseDN => 'DC=itcgroup,DC=us',
      SSCOPE => 'sub',
      UserDN =>'THEADUSER',
      UserPw => '****************',
    },

    # customer unique id
    CustomerKey => 'sAMAccountName',
    # customer #
    CustomerID => 'mail',
    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' ],
       ],
    };
Do you have any idea of what I'm doing wrong? When I try to login from the customer frontend I'm getting Login failed! Your user name or password was entered incorrectly.

As always, I appreciate and thank you any help you could give me.

Greetings,

C.
You do not have the required permissions to view the files attached to this post.
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer database from Active Directory

Post by crythias »

What do the logs say?
viewtopic.php?f=60&t=16543
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
cbravo
Znuny advanced
Posts: 113
Joined: 18 Nov 2010, 00:33
Znuny Version: 3.0

Re: Customer database from Active Directory

Post by cbravo »

I was getting the following error:

Search failed! 0000208D: NameErr: DSID-031001E4, problem 2001 (NO_OBJECT), data 0, best match of:

but for some reason it works now! I tried today and could login without doing any change.

Thank you for your help though!

Greetings,

C.
OTRS: 3.08
OS: Ubuntu
Apache2/MySQL 5
Locked