Problems with LDAP Auth - Panic! No UserData for user

itsm@otrs.org When I try to login the OTRS login page shows an error message - Panic! No UserData!!! Looging to the logs I see that the authentacion to LDAP works....
From the logs:
tail /tmp/otrs.log [Wed May 23 12:23:36 2007][Notice][Kernel::System::Auth::LDAP::Auth] User: nedim.hadzimahmutovic (uid=nedim.hadzimahmutovic,ou=XX,ou=Users,ou=BA,ou=XX,ou=XX,dc=XX,dc=XX) authentication ok (REMOTE_ADDR: 10.2.0.120). [Wed May 23 12:23:36 2007][Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'nedim.hadzimahmutovic'!!! tail /var/log/ldap.log tail /var/log/ldap.log May 23 18:20:31 localhost slapd[4566]: conn=303 fd=14 ACCEPT from IP=10.0.0.10:34198 (IP=0.0.0.0:389) May 23 18:20:31 localhost slapd[4566]: conn=303 op=0 BIND dn="" method=128 May 23 18:20:31 localhost slapd[4566]: conn=303 op=0 RESULT tag=97 err=0 text= May 23 18:20:31 localhost slapd[4566]: conn=304 fd=16 ACCEPT from IP=10.0.0.10:34199 (IP=0.0.0.0:389) May 23 18:20:31 localhost slapd[4566]: conn=304 op=0 BIND dn="" method=128 May 23 18:20:31 localhost slapd[4566]: conn=304 op=0 RESULT tag=97 err=0 text= May 23 18:20:31 localhost slapd[4566]: conn=304 op=1 SRCH base="ou=XX,dc=XX,dc=XX" scope=2 deref=2 filter="(uid=nedim.hadzimahmutovic)" May 23 18:20:31 localhost slapd[4566]: <= bdb_equality_candidates: (uid) index_param failed (18) May 23 18:20:31 localhost slapd[4566]: conn=304 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= May 23 18:20:31 localhost slapd[4566]: conn=304 op=2 BIND dn="uid=nedim.hadzimahmutovic,ou=XX,ou=XX,ou=BA,ou=EE,ou=XX,dc=XX,dc=XX" method=128 May 23 18:20:31 localhost slapd[4566]: conn=304 op=2 BIND dn="uid=nedim.hadzimahmutovic,ou=XX,ou=XXs,ou=BA,ou=EE,ou=XX,dc=XX,dc=XX" mech=SIMPLE ssf=0 May 23 18:20:31 localhost slapd[4566]: conn=304 op=2 RESULT tag=97 err=0 text= May 23 18:20:31 localhost slapd[4566]: conn=304 op=3 UNBIND May 23 18:20:31 localhost slapd[4566]: conn=304 fd=16 closed May 23 18:20:31 localhost slapd[4566]: conn=303 fd=14 closed (connection lost) Here is my OTR Configuration: # # # # MINE UBER COOL LDAP CONFIG # # # This is an example configuration for an LDAP auth. backend. # (take care that Net::LDAP is installed!) $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP'; $Self->{'Customer::AuthModule::LDAP::Host'} = '10.2.0.107'; $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=HQ,dc=XX,dc=XX'; $Self->{'Customer::AuthModule::LDAP::UID'} = 'uid'; $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => '10.2.0.107', BaseDN => 'ou=HQ,dc=XX,dc=XX', SSCOPE => 'sub', }, CustomerKey => 'uid', CustomerID => 'mail', CustomerUserListFields => ['uid', 'cn', 'mail'], CustomerUserSearchFields => ['uid', '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', 'uid', 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' ], ], }; # UserSyncLDAPMap # (map if agent should create/synced from LDAP to DB after login) $Self->{UserSyncLDAPMap} = { # DB -> LDAP Firstname => 'givenName', Lastname => 'sn', Email => 'mail', }; # UserSyncLDAPGroups # (If "LDAP" was selected for AuthModule, you can specify # initial user groups for first login.) $Self->{UserSyncLDAPGroups} = [ 'users', ]; # UserTable $Self->{DatabaseUserTable} = 'system_user'; $Self->{DatabaseUserTableUserID} = 'id'; $Self->{DatabaseUserTableUserPW} = 'pw'; $Self->{DatabaseUserTableUser} = 'login'; -- Nedim --------------------------------------------
participants (1)
-
Nedim Hadzimahmutovic