Okay, I’ve used the template that
they have in the ver. 1.3 documentation to try and enable AD authentication,
but I’m getting errors when I try and log into the index.pl
I get the following error/s.
IO::Socket::INET: Bad hostname '[x.x.x.x]' at /opt/otrs//Kernel/System/CustomerUser/LDAP.pm line 63
Or
Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at /opt/otrs//Kernel/System/CustomerUser.pm line 80, <PRODUCT> line 12
My configuration is as follows.
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '[asf-fp1.allstatefastener.local]';
$Self->{'AuthModule::LDAP::BaseDN'} = '[DC=allstatefastener,DC=local]';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = '[CN=otrs,CN=Users,DC=allstatefastener,DC=local]';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '[xxx]';
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '[asf-fp1.allstatefastener.local]';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = '[DC=allstatefastener,DC=local]';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = '[OU=Users,DC=allstatefastener,DC=local]';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '[]';
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '[asf-fp1.allstatefastener.local]',
BaseDN => '[DC=allstatefastener,DC=local]',
SSCOPE => 'sub',
UserDN => '[CN=otrs,CN=Users,DC=allstatefastener,DC=local]',
UserPw => '[xxx]',
},
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' ],
],
};
Thanks,
Mike Pietersen, A+, MCP
All State Fastener
Corporation
IT (586) 498-1388