LDAP returning Panic No user Data

Moderator: crythias

Locked
tpham
Znuny newbie
Posts: 15
Joined: 11 Jun 2011, 20:22
Znuny Version: 3.0.8
Real Name: T

LDAP returning Panic No user Data

Post by tpham »

I am receiving "Panic! No UserData!!!" while trying to log into the client interface. My system logs show me that the user is authenticating properly but I cant seem to get it to create an account. I've searched the depths of the Internet for a solution and nothing has worked. I understand that is isnt suppose to create a user in the database but instead authenticate with LDAP itself. I just cant seem to get it to do anything. My config low is below. Can somebody tell me what I'm doing wrong? I want configured for client side only, not for agents.

A few things I've noticed:

After I edit and save the config.pm file, it doesnt seem to update everything in the sysconfig GUI settings. LDAP turns on but the other values stay the same. I am editing /etc/otrs/Kernel/Config.pm. When I go to "Customer Users", the source I have is "Database Backend" Isnt this suppose to be LDAP?


#Enable LDAP authentication for Customers / Users
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '192.168.10.67';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=contoso,dc=com';
$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'} = 'CN=otrs ldap,OU=Users,OU=OU-Chi,DC=contoso,DC=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'pwd';

# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};

#CustomerUser
#(customer user database backend and settings)
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '192.168.10.67';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'OU=Users,OU=OU-Chi,DC=contoso,DC=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'otrs ldap';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'pwd';

#CustomerUser
$Self->{CustomerUser} = {
Name => 'LDAP Datasource',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '192.168.10.67',
BaseDN => 'OU=Users,OU=OU-Chi,DC=contoso,DC=com',
SSCOPE => 'sub',
UserDN => 'otrs ldap',
UserPw => 'pwd',
},

#customer unique ID
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
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' ],
# [ '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',
};
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP returning Panic No user Data

Post by crythias »

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
tpham
Znuny newbie
Posts: 15
Joined: 11 Jun 2011, 20:22
Znuny Version: 3.0.8
Real Name: T

Re: LDAP returning Panic No user Data

Post by tpham »

I modified my config.pm with those settings and i'm still getting the same error. Im about to go crazy.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: LDAP returning Panic No user Data

Post by jojo »

Chck if you have a second Config.pm in the system (/usr/local/otrs/Kernel/ e.g.)

Customers are not synced, so this part is useless in Config. Please also have a look in the logfiles
"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
tpham
Znuny newbie
Posts: 15
Joined: 11 Jun 2011, 20:22
Znuny Version: 3.0.8
Real Name: T

Re: LDAP returning Panic No user Data

Post by tpham »

nope, only one file.
Locked