Can't sync Customer with LDAP

Moderator: crythias

Post Reply
jwfg
Znuny newbie
Posts: 3
Joined: 22 Mar 2011, 17:23
Znuny Version: 3.0.6

Can't sync Customer with LDAP

Post by jwfg »

I'm trying to setup a LDAP link with the Customer database.

I've managed to get the Agent side working and syncing correctly however when i've configured the customer side, i keep getting:

[Tue Mar 22 15:24:16 2011][Error][Kernel::System::CustomerAuth::LDAP::Auth][220] Search failed! Bad filter

The customer section has the following code:

Code: Select all

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '192.168.1.1';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=woof,dc=dog';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=Domain Users,CN=Users,DC=woof,DC=dog';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=bob smith,OU=Users,OU=woof,DC=woof,DC=dog';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'barking';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
    port => 389,
    timeout => 120,
    async => 0,
    version => 3,
};
all the information above is correct (although obv i've changed some key info for privacy :)) so i'm thinking i'm missing some code. I've tried reworking the code i used for the Agent side...

Code: Select all

    $Self->{'Customer::AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
    $Self->{'Customer::AuthSyncModule::LDAP::Host'} = '192.168.1.1';
    $Self->{'Customer::AuthSyncModule::LDAP::BaseDN'} = 'dc=woof,dc=dog';
    $Self->{'Customer::AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
    $Self->{'Customer::AuthSyncModule::LDAP::AccessAttr'} = 'member';
    $Self->{'Customer::AuthSyncModule::LDAP::SearchUserDN'} = 'CN=bob smith,OU=Users,OU=woof,DC=woof,DC=dog';
    $Self->{'Customer::AuthSyncModule::LDAP::SearchUserPw'} = 'barking';

    $Self->{'Customer::AuthSyncModule::LDAP::UserSyncMap'} = {
        UserFirstname => 'givenName',
        UserLastname  => 'sn',
        UserEmail     => 'mail',
    };
    $Self->{'Customer::AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
        'users',
    ];
...but that didnt work either.

Any help much appreciated.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Can't sync Customer with LDAP

Post by jojo »

There is no sync for customers!

Please change $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID'; to $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN;
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply