CustomerUser info from external LDAP server

We are running OTRS 1.2.3 on SUSE 9 Professional. We are trying to get OTRS to obtain CustomerUser data from our NetWare 6.5 LDAP server. We can use the ldapsearch command from the console on the OTRS machine to pull down information from our users OU via an anonymous read: ldapsearch -h 192.168.3.179 -b "ou=users,o=MRL" -x "(objectclass=*)" It returns # search result search: 2 result: 0 success # numResponses: 330 # numEntries: 329 Net::LDAP is installed. Here is the CustomerUser section of our Config.pm: $Self->{CustomerUser} = { Module => 'Kernel::System::CustomerUser::LDAP', Name => 'LDAP Source', Params => { # ldap host Host => '192.168.3.179', # ldap base dn BaseDN => 'ou=users,o=MRL', # search scope (one|sub) SSCOPE => 'sub', AlwaysFilter => '', # Net::LDAP }, # customer uniq id CustomerKey => 'uid', # customer # CustomerID => 'mail', CustomerUserListFields => ['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 [ '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' ], ], }; When we go to the OTRS index web page we are seeing this error: Software 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. My sense is that are we are close to having it correctly configured but not quite there. What should we be doing differently? Andrew Ferris Network Support Analyst MRL/iCAPTURE Centre/ASL

On Wednesday, April 21, 2004 8:19 PM
Andrew Ferris
Software 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.
What does OTRS' log say? Try playing with the options in scripts/apache*-perl-startup.pl. regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Robert Kehl wrote:
On Wednesday, April 21, 2004 8:19 PM Andrew Ferris
wrote: Software 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.
What does OTRS' log say?
Try playing with the options in scripts/apache*-perl-startup.pl.
Thank you for the reply Robert. It turned out that I made the n00bish mistake of not installing Convert::ASN1 and as soon as I did that we could see that LDAP info. Now that we see it, we still only see about half of our users (around 100 or so) in the CustomerUser section of the Admin area. The OTRS log has sizelimit exceeded errors. Is there a setting in one of the LDAP pm files to allow more information to be displayed, in terms of the number of users? thanks, Andrew

On Monday, May 10, 2004 6:41 PM
Andrew Ferris
Thank you for the reply Robert.
Sorry for the delay, though.
It turned out that I made the n00bish mistake of not installing Convert::ASN1 and as soon as I did that we could see that LDAP info.
Glad to hear that.
Now that we see it, we still only see about half of our users (around 100 or so) in the CustomerUser section of the Admin area. The OTRS log has sizelimit exceeded errors. Is there a setting in one of the LDAP pm files to allow more information to be displayed, in terms of the number of users?
So, you've got about 200 users in your CustomerUser LDAP? This shouldn't pose a problem at all. Try this setting: $Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ...more options here!... sizelimit => 0, # disabling it }, # ...more options here!... }; Remember, it may well and in most cases be the LDAP server limits the returned answers. Check this. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

We're still not having all the users show up in the Customer User or Customer User <-> Groups areas. I've gone and counted the numbers and there are about 200 users shown with the full number being 355. Using this config snippet hasn't worked in terms of showing any more users: $Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => '192.168.3.179', # ldap base dn BaseDN => 'ou=users,o=MRL', # search scope (one|sub) SSCOPE => 'sub', sizelimit => 0, }, I don't think it is the LDAP server (Novell eDirectory on NW 6.5) as we have devices like Xerox photocopiers that pull all LDAP user info. Once again, any help you could provide is deeply appreciated . Andrew Robert Kehl wrote:
On Monday, May 10, 2004 6:41 PM Andrew Ferris
wrote: Thank you for the reply Robert.
Sorry for the delay, though.
It turned out that I made the n00bish mistake of not installing Convert::ASN1 and as soon as I did that we could see that LDAP info.
Glad to hear that.
Now that we see it, we still only see about half of our users (around 100 or so) in the CustomerUser section of the Admin area. The OTRS log has sizelimit exceeded errors. Is there a setting in one of the LDAP pm files to allow more information to be displayed, in terms of the number of users?
So, you've got about 200 users in your CustomerUser LDAP? This shouldn't pose a problem at all. Try this setting:
$Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ...more options here!... sizelimit => 0, # disabling it }, # ...more options here!... };
Remember, it may well and in most cases be the LDAP server limits the returned answers. Check this.
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

On Wednesday, May 12, 2004 12:35 AM
Andrew Ferris
We're still not having all the users show up in the Customer User or Customer User <-> Groups areas. I've gone and counted the numbers and there are about 200 users shown with the full number being 355. Using this config snippet hasn't worked in terms of showing any more users:
You have to tweak Kernel/System/CustomerUser/LDAP.pm and increase the (hardcoded) value of $Self->{UserSearchListLimit} = 200; to a value suiting your needs - probably 500 would fit on the long run, or 700? We will shift that value to Config.pm in future, I suppose. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

On Tue, 2004-05-11 at 23:35, Andrew Ferris wrote:
We're still not having all the users show up in the Customer User or Customer User <-> Groups areas. I've gone and counted the numbers and there are about 200 users shown with the full number being 355.
I believe what you could be seeing is the effect of the setting $Self->{UserSearchListLimit} = 200; in .../Kernel/System/CustomerUser/LDAP.pm If you perform a search without entering a pattern to search for then all you get is 200 (if you have more than 200). Jim

Jim Wight wrote:
On Tue, 2004-05-11 at 23:35, Andrew Ferris wrote:
We're still not having all the users show up in the Customer User or Customer User <-> Groups areas. I've gone and counted the numbers and there are about 200 users shown with the full number being 355.
I believe what you could be seeing is the effect of the setting
$Self->{UserSearchListLimit} = 200;
in .../Kernel/System/CustomerUser/LDAP.pm
If you perform a search without entering a pattern to search for then all you get is 200 (if you have more than 200).
Jim
Yes that's it. Bumping up the sizelimit brings up our all users. Thanks for the response Jim and thanks again Robert for your help. Andrew
participants (3)
-
Andrew Ferris
-
Jim Wight
-
Robert Kehl