Topic Resolution: Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #15906
      Stefano Grespan
      Participant

        Hello,

        i’m trying to configure customer portal with LDAP authentication but when I log the error message is: “Authentication succeeded but no customer record is found in the customer backend”. I think the missing part is the relation between Customer and Customer Users but I don’t understand how to do it. I’ve configured a customer but the customer users list is empty and so I cannot create the relation. Can you help me? I would like to associate AD users to our customer and authenticate them using LDAP.

        Thanks

         

      • #15909
        Stefano Grespan
        Participant

          Solved. After some trials and errors i’ve found a working configuration: Below my Config.pm Ldap part. The error was in map line [ ‘UserLogin’, Translatable(‘Username’), ‘uid’, 1, 1, ‘var’, ”, 1, undef, undef ]: changing ‘uid’ with ‘sAMAccountName’ solved the problem.

           

          $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
          $Self->{'Customer::AuthModule::LDAP::Host'} = 'MYDC.MYDOMAIN.LOCAL';
          $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'OU=MYUSERS,dc=MYDOMAIN,dc=LOCAL';
          $Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=LDAPUSER,CN=Users,DC=MYDOMAIN,DC=LOCAL';
          $Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'LDAPUSERPASSWORD';
          $Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

           

          $Self->{CustomerUser} = {
          Name => 'LDAP Backend',
          Module => 'Kernel::System::CustomerUser::LDAP',
          Params => {
          Host => 'MYDC.MYDOMAIN.LOCAL',
          BaseDN => 'OU=MYUSERS,dc=MYDOMAIN,dc=LOCAL',
          SSCOPE => 'sub',
          UserDN => 'CN=LDAPUSER,CN=Users,DC=MYDOMAIN,DC=LOCAL',
          UserPw => 'LDAPUSERPASSWORD',
          AlwaysFilter => '',
          Die => 0,

          Params => {
          port => 389,
          timeout => 120,
          async => 0,
          version => 3,
          },
          },

          CustomerKey => 'sAMAccountName',
          CustomerID => 'mail',
          CustomerUserListFields => ['cn', 'mail'],
          CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
          CustomerUserSearchPrefix => '',
          CustomerUserSearchSuffix => '*',
          CustomerUserSearchListLimit => 250,
          CustomerUserPostMasterSearchFields => ['mail'],
          CustomerUserNameFields => ['givenname', 'sn'],
          CustomerUserNameFieldsJoin => '',
          CustomerUserExcludePrimaryCustomerID => 0,
          AdminSetPreferences => 0,
          CacheTTL => 0,
          Map => [

          [ 'UserTitle', Translatable('Title or salutation'), 'title', 1, 0, 'var', '', 1, undef, undef ],
          [ 'UserFirstname', Translatable('Firstname'), 'givenname', 1, 1, 'var', '', 1, undef, undef ],
          [ 'UserLastname', Translatable('Lastname'), 'sn', 1, 1, 'var', '', 1, undef, undef ],
          [ 'UserLogin', Translatable('Username'), 'sAMAccountName', 1, 1, 'var', '', 1, undef, undef ],
          [ 'UserEmail', Translatable('Email'), 'mail', 1, 1, 'var', '', 1, undef, undef ],
          [ 'UserCustomerID', Translatable('CustomerID'), 'mail', 0, 1, 'var', '', 1, undef, undef ],
          [ 'UserPhone', Translatable('Phone'), 'telephonenumber', 1, 0, 'var', '', 1, undef, undef ],
          [ 'UserAddress', Translatable('Address'), 'postaladdress', 1, 0, 'var', '', 1, undef, undef ],
          [ 'UserComment', Translatable('Comment'), 'description', 1, 0, 'var', '', 1, undef, undef ],

          ],
          };

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.