
I want to get the LDAP CustomerUser backend working, but am not having any success so far. I've copied the # CustomerUser # (customer user ldap backend and settings) # $Self->{CustomerUser} = { # Module => 'Kernel::System::CustomerUser::LDAP', [...] # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], # ], # }; section from Defaults.pm into Config.pm, removed the comments, and made what I reckon are other necessary changes. However, I've not even got as far as testing LDAP as I get Internal Server Error when accessing OTRS. The server error log contains the following: [Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.pl [Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" (perhaps you forgot to load "Kernel::System::CustomerUser::LDAP"?) at <otrs>/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 47. What does it indicate is wrong? I'm not using mod_perl. Jim

Hi Jim, On Fri, May 16, 2003 at 04:44:56PM +0100, Jim Wight wrote:
I want to get the LDAP CustomerUser backend working, but am not having any success so far.
I've copied the
# CustomerUser # (customer user ldap backend and settings) # $Self->{CustomerUser} = { # Module => 'Kernel::System::CustomerUser::LDAP', [...] # [ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ], # [ 'UserComment', 'Comment', 'description', 1, 0, 'var' ], # ], # };
section from Defaults.pm into Config.pm, removed the comments, and made what I reckon are other necessary changes. However, I've not even got as far as testing LDAP as I get Internal Server Error when accessing OTRS. The server error log contains the following:
[Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.pl [Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" (perhaps you forgot to load "Kernel::System::CustomerUser::LDAP"?) at <otrs>/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 47.
What does it indicate is wrong? I'm not using mod_perl.
Try the syntax check: perl -cw /opt/otrs/Kernel/System/CustomerUser/LDAP.pm -=> Maybe you need it install the ldap module (Net::LDAP) to access to a ldap server. PS: mod_perl is really powerful! .-)
Jim
-Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ --

Martin Edenhofer writes:
On Fri, May 16, 2003 at 04:44:56PM +0100, Jim Wight wrote:
[Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.pl [Fri May 16 16:30:18 2003] [error] [client xxx.xxx.xxx.xxx] Can't locate object method "new" via package "Kernel::System::CustomerUser::LDAP" (perhaps you forgot to load "Kernel::System::CustomerUser::LDAP"?) at <otrs>/bin/cgi-bin/../../Kernel/System/CustomerUser.pm line 47.
What does it indicate is wrong? I'm not using mod_perl.
Try the syntax check: perl -cw /opt/otrs/Kernel/System/CustomerUser/LDAP.pm
Thanks. That highlighted that I hadn't paid enough attention to the Net::LDAP README/INSTALL files. I didn't have the dependency Convert::ASN1 installed. Now I'm getting: Sizelimit exceeded at ../..//Kernel/System/CustomerUser/LDAP.pm line 178 (the last line in this section) # -- # perform user search # FIXME: check for valid customers # -- my $Result = $Self->{LDAP}->search ( base => $Self->{BaseDN}, scope => $Self->{SScope}, filter => "($Self->{CustomerKey}=*)", ); $Result->code && die $Result->error; We are using OTRS for our internal support system, and I've constructed my LDAP database of potential customers from the list of users in our Unix password file. There are over 800 of them.
PS: mod_perl is really powerful! .-)
I was using it at one point, but no-one noticed any great difference. Maybe we weren't working Perl hard enough at the time. I then modified Kernel/System/CustomerAuth/DB.pm to hook up customer authentication to our campus Windows 2000 authentication service, and mod_perl stopped working. I left investigation of that problem to another day. Jim

Hi Jim, On Tue, May 20, 2003 at 10:02:50AM +0100, Jim Wight wrote:
[...] Try the syntax check: perl -cw /opt/otrs/Kernel/System/CustomerUser/LDAP.pm
Thanks. That highlighted that I hadn't paid enough attention to the Net::LDAP README/INSTALL files. I didn't have the dependency Convert::ASN1 installed.
Now I'm getting:
Sizelimit exceeded at ../..//Kernel/System/CustomerUser/LDAP.pm line 178 (the last line in this section)
# -- # perform user search # FIXME: check for valid customers # -- my $Result = $Self->{LDAP}->search ( base => $Self->{BaseDN}, scope => $Self->{SScope}, filter => "($Self->{CustomerKey}=*)", ); $Result->code && die $Result->error;
We are using OTRS for our internal support system, and I've constructed my LDAP database of potential customers from the list of users in our Unix password file. There are over 800 of them.
It seems that the max. count of ldap-query-result is under 800. *) increase your max. ldap size count to 1000 - with OpenLDAP -=> sizelimit 1000 (in slapd.conf default is 500) - or *) add a limit to the ldap search in Kernel/System/CustomerUser/LDAP.pm [...] my $Result = $Self->{LDAP}->search ( base => $Self->{BaseDN}, scope => $Self->{SScope}, filter => "($Self->{CustomerKey}=*)", sizelimit => $Self->{UserSearchListLimit}, ); [...] And, ist it working? Thanks for feedback!
Jim
-Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ --

Martin Edenhofer writes:
On Tue, May 20, 2003 at 10:02:50AM +0100, Jim Wight wrote:
We are using OTRS for our internal support system, and I've constructed my LDAP database of potential customers from the list of users in our Unix password file. There are over 800 of them.
It seems that the max. count of ldap-query-result is under 800.
*) increase your max. ldap size count to 1000 - with OpenLDAP -=> sizelimit 1000 (in slapd.conf default is 500) -
And, ist it working? Thanks for feedback!
I've made that change, and things are working fine now. Thanks for your help. This is my first taste of LDAP. Jim

1. if an agent want to receive notification about a queue (ticket open, close, update), he needs select his custom queue(one and only?). My question is, what if the agent gets assigned to multiple queues, and he would like to get notifications? 2. If queue1 is associated with group1 queue2 is associated with group2 queue3 is asscoaited with group3 queue2 and queue3 are subqueues of queue1 user 1 belongs to group1. Now I want user1 to receive all notifications about queue1, 2 & 3. Is this possible? (I think this might be a problem, because you can only choose one custom queue)

Hi Alex, On Tue, May 20, 2003 at 10:10:10AM -0700, Alex Zheng wrote:
1. if an agent want to receive notification about a queue (ticket open, close, update), he needs select his custom queue(one and only?). My question is, what if the agent gets assigned to multiple queues, and he would like to get notifications?
2. If queue1 is associated with group1 queue2 is associated with group2 queue3 is asscoaited with group3
queue2 and queue3 are subqueues of queue1
user 1 belongs to group1.
Now I want user1 to receive all notifications about queue1, 2 & 3. Is this possible? (I think this might be a problem, because you can only choose one custom queue)
It's possible. Select more custom queues (perferences screen) with STRG+click+click+click...! -=> So you can select more the one queue. (Of course the agent needs to be in group1, group2 and group3 to get queue1, queue2 and queue3 as selection in perferences screen). -Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ --
participants (3)
-
Alex Zheng
-
Jim Wight
-
Martin Edenhofer