ich bin gerade dabei ein neues OTRS bei uns aufzusetzen und stehe vor der Schwierigkeit gegen bestimmte AD::LDAP Gruppen zu Authentifizieren.
Die LDAP Anbindung als solches funktioniert und tut was Sie soll, nur bekomme ich die Einschränkung auf bestimmte Gruppen nicht hin.
Desweiteren soll dieser AD Gruppe dann automatisch eine Rolle zugewiesen bekommen.
Jetzt zu meinem Problem:
Die User auth gegen AD funktioniert. Problem ist hier aber, dass jeder AD Login Funktioniert und nicht nach der Gruppe gefiltert wird.
Das nächste Problem ist, dass der User dann auch nicht der Rolle zugewiesen wird.
Einzige Fehlermeldung die ich in der error.log sehe:
Code: Select all
[Thu May 23 15:33:48 2013] -e: Argument "" isn't numeric in numeric eq (==) at /usr/share/otrs//Kernel/Modules/AdminRoleGroup.pm line 174.
Code: Select all
################### AD Integration Code START########################
## LDAP Group 1 #########
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'deldaphostxxxx';
$Self->{'AuthModule::LDAP::BaseDN'} = 'DC=xxx1,DC=xxx2,DC=xxx3';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'otrsauth.1@xxx1.xxx2.xxx3';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxxxx';
$Self->{'AuthModule::LDAP::Params'} = {
port => 3268,
timeout => 120,
async => 0,
version => 3,
};
$Self->{'AuthModule::LDAP::AccessAttr'} = 'CN=DE-Gruppe-1';
## LDAP Group 2 #########
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'deldaphostxxxx';
$Self->{'AuthModule::LDAP::BaseDN'} = 'DC=xxx1,DC=xxx2,DC=xxx3';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'otrsauth.1@xxx1.xxx2.xxx3';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'xxxxxx';
$Self->{'AuthModule::LDAP::Params'} = {
port => 3268,
timeout => 120,
async => 0,
version => 3,
};
$Self->{'AuthModule::LDAP::AccessAttr'} = 'CN=DE-Gruppe-2';
# Sync data with OTRS DB
$Self->{'UserSyncLDAPMap'};
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'deldaphostxxxx';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'DC=xxx1,DC=xxx2,DC=xxx3';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'otrsauth.1@xxx1.xxx2.xxx3';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'xxxxxx';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
# UserMobileNumber => 'telephoneNumber', #(Optional)
};
# # AuthSyncModule::LDAP::UserSyncInitialGroups
# # (sync following group with rw permission after initial create of first agent login)
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [ 'users', ];
$Self->{'AuthSyncModule::LDAP::UserSyncRolesDefinition'} = {
# ldap group
'cn=DE-Gruppe-1' => {
# otrs role
'DE-Gruppe-1' => 1,
},
'cn=DE-Gruppe-2' => {
'DE-Gruppe-2' => 1,
},
'cn=DE-Gruppe-3' => {
'DE-Gruppe-3' => 1,
},
'CN=DE-Gruppe-4' => {
'DE-Gruppe-4' => 1,
},
};
################### AD Integration Code END ########################
Vllt. habe ich bei der ganzen Geschichte ja auch ein grundsätzliches Verständnisproblem und hoffe ihr könnt helfen.
Vielen Dank im Voraus
Arne
Edit (24.05,10:44Uhr): Hat einer der Mod's o.ä. ein Problem, wenn ich diese Anfrage, sollte mir bis heute Abend niemand helfen können, in einem anderem Forum poste? Mfg Arne