First of all I've serached trough the documentation, this forum and google before posting it.
I've introduced an OTRS / LDAP (Particullary AD @ Win2K8 R2) and encountered some problem:
I've got working Agent Auth&Sync, Customer Auth, but I've completly stuck at Customer Mapping.
Working part & result.
Code: Select all
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'A.D.D.R';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=company,dc=loc';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'CN=Domain Users,CN=Users,DC=company,DC=loc';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'ldapsearchaccount@company.loc';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'secret';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => PORT,
timeout => 120,
async => 0,
version => 3,
};
Code: Select all
[Fri Nov 16 11:26:09 2012][Notice][Kernel::System::CustomerAuth::LDAP::Auth] CustomerUser: mflakowski (CN=Flakowski MichaÅ,OU=OU_Aleja_Pokoju,OU=OU_Dzial_IT,OU=OU_USERS,DC=company,DC=loc) authentication ok (REMOTE_ADDR: A.D.D.R).
Code: Select all
$Self->{CustomerUser} = {
Name => 'AD USers',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'A.D.D.R',
BaseDN => 'dc=company,dc=loc',
SSCOPE => 'sub',
# UserDN => 'ldapseachaccount@company.loc', or
UserDN => 'CN=ldapsearchaccount,OU=OU_Services,OU=OU_USERS,DC=company,DC=loc',
UserPW => 'secret',
AlwaysFilter => '',
Params => {
port => PORT,
timeout => 120,
async => 0,
version => 3,
},
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sn', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'sn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
CustomerUserExcludePrimaryCustomerID => 0,
AdminSetPreferences => 0,
Map => [
[ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'cn', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};
Code: Select all
[Fri Nov 16 11:26:09 2012][Error][Kernel::System::CustomerUser::LDAP::CustomerUserDataGet][621] 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1
[Fri Nov 16 11:26:09 2012][Error][Kernel::System::CustomerUser::SetPreferences][506] No such user 'mflakowski'!
Any ideas would be apreciated.