I tried modifying the settings to signify a specific AD group but when applied no one is able to login (Agents nor Customers). I presume it is a configuration problem on the $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP'; portion of the Config.pm
I get this error messsge:
Code: Select all
Jan 29 16:14:43 ei-otrs OTRS-CGI-10[16566]: [Notice][Kernel::System::Auth::LDAP::Auth] User: otrsuser authentication failed, no LDAP group entry foundGroupDN='CN=otrsagents,CN=Users,DC=**,DC=*************,DC=com', Filter='(memberUid=otrsuser)'!
LDAP integration:
Code: Select all
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '<Servername>.com';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=**,dc=**********,dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=ldapsearch,cn=Users,dc=**,dc=**********,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = '**********';
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '(&(!(objectClass=Computer))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))';
$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=otrsagents,CN=Users,DC=**,DC=***********,DC=com';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'memberUid';
$Self->{'AuthModule::LDAP::UserAttr'} = 'UID';
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '<servername>.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=**,dc=***********,dc=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
# We only need to see users. Not computers and no disabled users.
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '(&(!(objectClass=Computer))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=ldapsearch,cn=Users,dc=**,dc=***********,dc=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '************';
Code: Select all
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://<server>.com/';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=**,dc=************,dc=com';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::UserAttr'} = 'sAMAccountName';
#$Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'memberUID';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'cn=ldapsearch,cn=Users,dc=**,dc=***********,dc=com';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = '**********';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
];
Any help would be appreciated.