Folgende Quellen habe ich für die Umsetzung benutzt:
http://www.youtube.com/watch?v=ZwODnB5L5lM
http://doc.otrs.org/3.0/de/html/custome ... ckend.html
Bitte entschuldigt dieses ausgekaute Thema, ich weis für einigen von euch muss es recht langweilig sein, aber für mich ist das mein erster Job und meine Kenntnisse sind noch nicht so tiefgehend.
Codemäßig siehts folgendermaßen aus:
Config.pm
Code: Select all
$Self->{AuthModule1} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host1'} = 'philipp.firma.local';
$Self->{'AuthModule::LDAP::BaseDN1'} = 'dc=firma,dc=local';
$Self->{'AuthModule::LDAP::UID1'} = 'sAMAccountName';
# The following is valid but would only be necessary if the
# anonymous user do NOT have permission to read from the LDAP tree
$Self->{'AuthModule::LDAP::SearchUserDN1'} = 'CN=administrator,CN=Users,DC=firma,DC=local';
$Self->{'AuthModule::LDAP::SearchUserPw1'} = '******';
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthModule::LDAP::Params1'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
# Die if backend can't work, e. g. can't connect to server.
$Self->{'AuthModule::LDAP::Die1'} = 1;
#------------------------- Async ---------------------#
$Self->{AuthSyncModule1} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host1'} = 'philipp.firma.local';
$Self->{'AuthSyncModule::LDAP::BaseDN1'} = 'OU=Benutzer,OU=Firma,DC=firma,DC=local';
$Self->{'AuthSyncModule::LDAP::UID1'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN1'} = 'CN=administrator,CN=Users,DC=firma,DC=local';
$Self->{'AuthSyncModule::LDAP::SearchUserPw1'} = '******';
$Self->{'AuthSyncModule::LDAP::UserSyncMap1'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
# Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
$Self->{'AuthSyncModule::LDAP::Params1'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
# Die if backend can't work, e. g. can't connect to server.
$Self->{'AuthSyncModule::LDAP::Die1'} = 1;
Can't load backend module Kernel::System::Auth::LDAP!
Daraufhin habe ich natürlichCan't locate Net/LDAP.pm in @INC (@INC contains: /opt/otrs-3.1.1/bin/Custom /opt/otrs-3.1.1/bin/Kernel/cpan-lib /opt/otrs-3.1.1/bin /opt/otrs-3.1.1/bin/cgi-bin/../../Custom /opt/otrs-3.1.1/bin/cgi-bin/../../Kernel/cpan-lib /opt/otrs-3.1.1/bin/cgi-bin/../.. /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/otrs-3.1.1/bin/cgi-bin/../../Kernel/System/Auth/LDAP.pm line 16.
Code: Select all
# perl -MCPAN -e shell
# i /Net::LDAP/
# install Bundle::Net::LDAP
Code: Select all
# perl -V
Wenn ich dann versuche mich mit dem user otrs@firma.local anzumelden crashed die ganze Geschichte und 500er Fehlermeldung kommt./etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl
Das ist alles was ich so zusammenschreiben konnte. Vl. kann mir jemand von euch ein paar tipps geben, wäre sehr dankbar dafür
