Adding LDAP settings to Win32 1.2 Beta 2 doesn't work

After adding my old settings from Otrs 1.1.3 for LDAP to my new 1.2 Beta 2 Version I get an error when trying to go to the login (index.pl) page Server error! The server encountered an internal error and was unable to complete your request. Error message: Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at C:/otrs/otrs//Kernel/System/CustomerUser.pm line 47. This is the section I added to the config.pm ############################################################## # **************************************************** # # CustomerUser # (customer user ldap backend and settings) $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host # Host => 'localhost', Host => 'XXXXX', # ldap base dn BaseDN => 'ou=people,dc=xxx,dc=xyz,dc=com', # search scope (one|sub) SSCOPE => 'sub', # The following is valid but would only be necessary if the # anonymous user does NOT have permission to read from the LDAP tree UserDN => 'cn=Manager', UserPw => 'ttttttt', }, # customer uniq id CustomerKey => 'uid', # customer # CustomerID => 'mail', CustomerUserListFields => ['uid', 'cn', 'mail'], CustomerUserSearchFields => ['uid', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type [ 'UserLastname', 'Lastname', 'cn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'uid', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], ], }; -- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

On Tuesday, February 03, 2004 10:16 AM
Herbert Stocker
After adding my old settings from Otrs 1.1.3 for LDAP to my new 1.2 Beta 2 Version I get an error when trying to go to the login (index.pl) page Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" at C:/otrs/otrs//Kernel/System/CustomerUser.pm line 47.
Short: Try to remove every comment from your section as shown below. $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Params => { Host => 'XXXXX', BaseDN => 'ou=people,dc=xxx,dc=xyz,dc=com', SSCOPE => 'sub', UserDN => 'cn=Manager', UserPw => 'ttttttt', }, CustomerKey => 'uid', CustomerID => 'mail', CustomerUserListFields => ['uid', 'cn', 'mail'], CustomerUserSearchFields => ['uid', 'cn', 'mail'], CustomerUserPostMasterSearchFields => ['mail'], CustomerUserNameFields => ['givenname', 'sn'], Map => [ [ 'UserLastname', 'Lastname', 'cn', 1, 1, 'var' ], [ 'UserLogin', 'Login', 'uid', 1, 1, 'var' ], [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ], [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], ], }; Long: I believe you have an additional line break coming from continuation of long commentary lines. This renders $Self->{Customer} useless for the rest of the application, thus resulting in the methods of module the LDAP module not being found. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
Herbert Stocker
-
Robert Kehl