
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/ --