I'm facing the same problem. Adding the line as suggested in the previous post does not solve my problem.
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
Thanks a lot for your help.
mod note: References this post.
Moderator: crythias
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
Code: Select all
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend1';
When I log in with root@localhost. I getPanic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid.
Code: Select all
[Tue Jul 8 13:47:13 2014][Notice][Kernel::System::Auth::DB::Auth] User: root@localhost authentication ok (Method: sha256, REMOTE_ADDR: ::1).
[Tue Jul 8 13:47:13 2014][Notice][Kernel::System::Auth::Sync::LDAP::Sync] User: root@localhost sync failed, no LDAP entry found!BaseDN='dc=xxxx,dc=local', Filter='(userPrincipalName=root@localhost)', (REMOTE_ADDR: ::1)
Code: Select all
[Tue Jul 8 13:51:56 2014][Notice][Kernel::System::Auth::DB::Auth] User: otrs.search@xxxx.local authentication with wrong Pw!!! (Method: sha256, REMOTE_ADDR: ::1)
[Tue Jul 8 13:51:56 2014][Notice][Kernel::System::Auth::LDAP::Auth] User: otrs.search@xxxx.local (CN=otrs search,CN=Users,DC=xxxx,DC=local) authentication ok (REMOTE_ADDR: ::1).
Code: Select all
[Tue Jul 8 13:55:17 2014][Notice][Kernel::System::Auth::DB::Auth] User: xxxx.xxxx@xxxx.local doesn't exist or is invalid!!! (REMOTE_ADDR: ::1)
[Tue Jul 8 13:55:17 2014][Notice][Kernel::System::Auth::LDAP::Auth] User: xxxx.xxxx@xxxx.local (CN=xxxx xxxx,CN=Users,DC=xxxx,DC=local) authentication ok (REMOTE_ADDR: ::1).
[Tue Jul 8 13:55:17 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 13:55:17 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 13:55:17 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 13:55:17 2014][Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'xxxx.xxxx@xxxx.local'!!!
Code: Select all
# AuthSyncModule::LDAP::UserSyncMap
# (map if agent should create/synced from LDAP to DB after successful login)
# you may specify LDAP-Fields as either
# * list, which will check each field. first existing will be picked ( ["givenName","cn","_empty"] )
# * name of an LDAP-Field (may return empty strings) ("givenName")
# * fixed strings, prefixed with an underscore: "_test", which will always return this fixed string
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
#DB -> 'LDAP',
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
uploaded Config.pm:aph wrote:The script failed to send data error does not occur anymore. I changed:
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
to:
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend1';
Code: Select all
inet4 => 1,
The corresponding log entry isLogin failed! Your user name or password was entered incorrectly.
Code: Select all
[Tue Jul 8 15:58:21 2014][Error][Kernel::System::Auth::LDAP::Auth][182] First bind failed! Bad file descriptor
Code: Select all
[Tue Jul 8 16:07:43 2014][Notice][Kernel::System::Auth::DB::Auth] User: xxxx.xxxx@xxxx.local doesn't exist or is invalid!!! (REMOTE_ADDR: ::1)
[Tue Jul 8 16:07:43 2014][Notice][Kernel::System::Auth::LDAP::Auth] User: xxxx.xxxx@xxxx.local (CN=xxxx xxxx,CN=Users,DC=xxxx,DC=local) authentication ok (REMOTE_ADDR: ::1).
[Tue Jul 8 16:07:43 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 16:07:43 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 16:07:43 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
[Tue Jul 8 16:07:43 2014][Notice][Kernel::System::User::GetUserData] Panic! No UserData for user: 'xxxx.xxxx@xxxx.local'!!!
Code: Select all
# $Self->{'AuthSyncModule::LDAP::AlwaysFilter'} = '';
# AuthSyncModule::LDAP::UserSyncMap
# (map if agent should create/synced from LDAP to DB after successful login)
# you may specify LDAP-Fields as either
# * list, which will check each field. first existing will be picked ( ["givenName","cn","_empty"] )
# * name of an LDAP-Field (may return empty strings) ("givenName")
# * fixed strings, prefixed with an underscore: "_test", which will always return this fixed string
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
#DB -> 'LDAP',
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# defines AuthSyncBackend (AuthSyncModule) for AuthModule
# if this key exists and is empty, there won't be a sync.
# example values: AuthSyncBackend, AuthSyncBackend2
$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend1';
# In case you need to use OTRS in iso-charset, you can define this
# by using this option (converts utf-8 data from LDAP to iso).
# $Self->{'AuthSyncModule::LDAP::Charset'} = 'iso-8859-1';
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthSyncModule::LDAP::Params'} = {
# port => 389,
# timeout => 120,
# async => 0,
# version => 3,
inet4 => 1,
};
Code: Select all
UserFirstname
UserLastname
UserEmail
Code: Select all
[Tue Jul 8 17:44:36 2014][Notice][Kernel::System::Auth::DB::Auth] User: xxxx.xxxx@xxxx.local doesn't exist or is invalid!!! (REMOTE_ADDR: ::1)
[Tue Jul 8 17:44:36 2014][Error][Kernel::System::Auth::LDAP::Auth][182] First bind failed! Bad file descriptor
[Tue Jul 8 17:44:36 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@xxxx.local'!
Code: Select all
[Tue Jul 8 17:52:31 2014][Notice][Kernel::System::Auth::DB::Auth] User: xxxx.xxxx@xxxx.local doesn't exist or is invalid!!! (REMOTE_ADDR: ::1)
[Tue Jul 8 17:52:32 2014][Error][Kernel::System::Auth::LDAP::Auth][167] Can't connect to otrsserver.xxxx.local: IO::Socket::INET6: connect: 10061
[Tue Jul 8 17:52:32 2014][Error][Kernel::System::User::UserLookup][834] No UserID found for 'xxxx.xxxx@aphajco.local'!