ldap-Anbindung Fehlermeldung

Hallo an alle, seit Freitag beschäftige ich mich mit der Customer-Anbindung an unser Notes-LDAP. Habe mir auch alle Daten besorgt und kann über ein entsprechendes Tool (ldp.exe) über Windows alle Customer-Werte vom LDAP-Server abfragen. Wenn ich LDAP für OTRS aktivieren möchte geht gar nichts mehr... Folgendes habe ich eingestellt: Config.pm: $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::DB', Params => { # DSN => 'DBI:odbc:yourdsn', # DSN => 'DBI:mysql:database=customerdb;host=customerdbhost', # User => '', # Password => '', Table => 'customer_user', }, # customer uniq id CustomerKey => 'login', # customer # CustomerID => 'customer_id', CustomerValid => 'valid_id', CustomerUserListFields => ['login', 'first_name', 'last_name', 'email'], # CustomerUserListFields => ['login', 'first_name', 'last_name', 'customer_id', 'email'], CustomerUserSearchFields => ['login', 'last_name', 'customer_id'], CustomerUserPostMasterSearchFields => ['email'], CustomerUserNameFields => ['salutation', 'first_name', 'last_name'], ReadOnly => 1, Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type, http-link [ 'UserSalutation', 'Salutation', 'salutation', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'login', 1, 1, 'var' ], [ 'UserPassword', 'Password', 'pw', 0, 1, 'var' ], [ 'UserEmail', 'Email', 'email', 0, 1, 'var' ], [ 'UserPhone', 'Phone', 'phone', 1, 0, 'var' ], [ 'UserLocation', 'Location', 'location', 1, 0, 'var' ], [ 'UserRoom', 'Room', 'room', 1, 0, 'var' ], # [ 'UserEmail', 'Email', 'email', 1, 1, 'var',], [ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var' ], [ 'UserComment', 'Comment', 'comments', 1, 0, 'var' ], [ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int' ], ], }; # CustomerUser # (customer user ldap backend and settings) $Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => 'V2050108.ccs.snt-ag.de', # ldap base dn BaseDN => 'o=snt,c=de', # search scope (one|sub) SSCOPE => 'sub', # The following is valid but would only be necessary if the # The following is valid but would only be necessary if the # anonymous user does NOT have permission to read from the LDAP tree # CustomerUser # (customer user ldap backend and settings) $Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => '********', BaseDN => 'o=snt,c=de', SSCOPE => 'sub', UserDN => '*****', UserPw => '*******', }, CustomerKey => 'uid', CustomerID => 'mail', CustomerUserListFields => ['cn', 'mail'], CustomerUserSearchFields => ['uid', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], Map => [ [ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ], [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ], [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'uid', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ], [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], ], }; --------------------------------------------------------------------- Nach Aktivierung des LDAP-Bereiches sagt mein Browser: Forbidden You don't have permission to access /otrs/ on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.27 Server at P-ITS-Linux01.local Port 80 ---------------------------------------------------------------------- http-error.log: [Mon Mar 1 12:59:06 2004] [error] [client 10.6.11.87] attempt to invoke directory as script: /opt/otrs/bin/cgi-bin [Mon Mar 1 12:59:06 2004] [notice] Apache/1.3.27 (Linux/SuSE) PHP/4.3.1 mod_perl/1.27 configured -- resuming normal operations [Mon Mar 1 12:59:06 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 1 12:59:06 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) [Mon Mar 1 12:59:08 2004] [error] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at /opt/otrs/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 42. [Mon Mar 1 12:59:18 2004] [error] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at /opt/otrs/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 42. [Mon Mar 1 12:59:25 2004] [error] [client 10.6.11.87] attempt to invoke directory as script: /opt/otrs/bin/cgi-bin [Mon Mar 1 12:59:25 2004] [error] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at /opt/otrs/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 42. Nun habe ich schon rausgefunden, das das LDAP-Perl-Modul nicht installiert war. Von CPAN.org habe ich perl-ldap -0.31 (Jan 2004) installiert. index.pl und PostMaster.pl sind mit dem Aufruf 'perl -cw' auch in Ordnung. Nun weiß ich nicht mehr weiter... Verzweifelte Grüße :o((( Jonas

On Monday, March 01, 2004 2:33 PM
Jonas Wendland
seit Freitag beschäftige ich mich mit der Customer-Anbindung an unser Notes-LDAP. Habe mir auch alle Daten besorgt und kann über ein entsprechendes Tool (ldp.exe) über Windows alle Customer-Werte vom LDAP-Server abfragen.
Probier' mal http://phpldapadmin.sourceforge.net - das ist ein Geschenk der Götter.
Folgendes habe ich eingestellt:
Config.pm:
$Self->{CustomerUser} = { #... }; $Self->{CustomerUser} = { #...syntaxerrorhere... $Self->{CustomerUser} = {
#... }; das ist wie bei Mails - einmal reicht ;-) hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388 -- Morgens um sieben ist die Welt noch in Dortmund. Sepp Maier
participants (2)
-
Jonas Wendland
-
Robert Kehl