[SOLVED] LDAP: No userData for user

Moderator: crythias

Locked
JeroenB
Znuny newbie
Posts: 9
Joined: 12 Jul 2013, 17:00
Znuny Version: 3.2.8

[SOLVED] LDAP: No userData for user

Post by JeroenB »

OTRS: 3.1.7

My configuration:

Code: Select all

$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'ip';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=domain,dc=org';
$Self->{'AuthModule::LDAP::UID'} = 'uid';

$Self->{'AuthModule::LDAP::Params'} = {
    port => 389,
    timeout => 120,
    async => 0,
    version => 3,
};

$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://ip';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=domain, dc=org';
$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';

$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
    # DB -> LDAP
    UserFirstname => 'givenName',
    UserLastname  => 'sn',
    UserEmail     => 'mail',
};


$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
    'users',
];
The weird thing is: when I try to login with a agent username I also created on otrs (with the same information as it's present in my LDAP) it gets perfectly authenticated:

Code: Select all

otrs OTRS-CGI-10[2559]: [Notice][Kernel::System::Auth::LDAP::Auth] User: testagent (uid=testagent,ou=people,dc=domain,dc=org) authentication ok (REMOTE_ADDR: 192.168.56.1).
But when I try to login with a user which (at the moment) is only present in LDAP I get the following message:

Code: Select all

OTRS-CGI-10[2559]: [Notice][Kernel::System::Auth::LDAP::Auth] User: appmgr (uid=appmgr,ou=people,dc=domain,dc=org) authentication ok (REMOTE_ADDR: 192.168.56.1).
OTRS-CGI-10[2559]: [Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'appmgr'!!!
Looks like it does authenticates successfully against my LDAP, but then fails to synchronize this information to OTRS.

I found quite some posts regarding the configuration of LDAP for OTRS but none describing this problem, could somebody point me in the right direction? Thanks in advance!
Last edited by JeroenB on 23 Jan 2014, 17:15, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP: No userData for user

Post by crythias »

viewtopic.php?f=60&t=16543

UserData comes from database or authsync.
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
JeroenB
Znuny newbie
Posts: 9
Joined: 12 Jul 2013, 17:00
Znuny Version: 3.2.8

LDAP: No userData for user

Post by JeroenB »

Thank you very much! adding the following line solved it:

Code: Select all

$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
Locked