So, just setup OTRS, found out how to have multiple authentication backend running and I can connect with the root@localhost just as much as with my AD account. So for this AD account I manually added it to the Agent list to check that the LDAP auth was working. And it is.
Now I tried to setup the Sync part so that the Agent would be automatically created. So here is the configuration part I have at the moment. I also tried using UserSyncLDAPMap1 instead of UserSyncMap1 but to no avail:
Code: Select all
$Self->{'AuthModule1'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host1'} = 'domain.local';
$Self->{'AuthModule::LDAP::BaseDN1'} = 'dc=domain,dc=local';
$Self->{'AuthModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN1'} = 'username_for_ldap';
$Self->{'AuthModule::LDAP::SearchUserPw1'} = 'the_pw';
$Self->{'AuthModule::LDAP::Params1'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
# Now sync data with OTRS DB
$Self->{'AuthModule::UseSyncBackend1'} = 'AuthSyncBackend1';
$Self->{'AuthSyncModule1'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host1'} = 'domain.local';
$Self->{'AuthSyncModule::LDAP::BaseDN1'} = 'dc=domain,dc=local';
$Self->{'AuthSyncModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN1'} = 'username_for_ldap';
$Self->{'AuthSyncModule::LDAP::SearchUserPw1'} = 'the_pw';
$Self->{'AuthSyncModule::LDAP::UserSyncMap1'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
#initial groups for new users
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups1'} = [
'users',
];
Code: Select all
ERROR: OTRS-CGI-77 Perl: 5.18.2 OS: linux Time: Mon Dec 22 10:48:06 2014
Message: No UserID found for 'a_user'!
RemoteAddress: 192.128.61.103
RequestURI: /otrs/index.pl
Traceback (10216):
Module: Kernel::System::User::UserLookup Line: 878
Module: Kernel::System::Auth::Auth Line: 253
Module: Kernel::System::Web::InterfaceAgent::Run Line: 242
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41
Module: (eval) (v1.99) Line: 206
Module: ModPerl::RegistryCooker::run (v1.99) Line: 206
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 172
Module: ModPerl::Registry::handler (v1.99) Line: 31
So the question is:
* How do I get the SYNC working
