Searching users
Shawn O'Connor <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.user |
|---|---|
| Organization | Perceptyx, Inc. |
| Message-ID | <[email protected]> |
Hi Guys,
I have a fairly weird problem. I have an ispman installation, that has
been running for a while, and has been upgraded a few times (now running
1.3).
I have the following issue when using the web interface, after selecting
a domain (with about 400 users in it), and then clicking "search users,"
and then looking for a first name that should exist: Nothing shows up.
Looking for my name, Shawn, lists this in the slapd logs:
Nov 22 14:46:59 auth1 ispman:
ISPMan::LDAP /usr/local/ispman/htdocs/admin/../../lib/ISPMan/LDAP.pm 126
Connected to LDAP Server localhost
Nov 22 14:46:59 auth1 ispman:
ISPMan::Utils /usr/local/ispman/htdocs/admin/../../lib/ISPMan/Utils.pm
94 opening /usr/local/ispman/cgi-bin/tmpl/headers.tmpl as template
Nov 22 14:46:59 auth1 ispman:
ISPMan::Utils /usr/local/ispman/htdocs/admin/../../lib/ISPMan/Utils.pm
94 opening /usr/local/ispman/cgi-bin/tmpl/users/search.tmpl as templ
ate
Nov 22 14:46:59 auth1 slapd[165]: connection_get(36)
Nov 22 14:46:59 auth1 slapd[165]: SRCH "" 2 2
Nov 22 14:46:59 auth1 slapd[165]: 0 0 0
Nov 22 14:46:59 auth1 slapd[165]: filter:
(&(objectClass=ispmanDomainUser)(givenName=*shawn*))
Nov 22 14:46:59 auth1 slapd[165]: attrs:
Nov 22 14:46:59 auth1 slapd[165]:
Nov 22 14:46:59 auth1 slapd[165]: send_ldap_result: err=10 matched=""
text=""
Nov 22 14:46:59 auth1 slapd[165]: connection_get(36)
Which, is different than a normal search, where the SRCH string looks
like this:
Nov 22 14:46:59 auth1 slapd[165]: SRCH "o=ispman" 2 0
So, I see that o=ispman isn't being passed for some reason. Because of
this, I attempted to apply a quick kludge by
modifying /usr/local/ispman/cgi-bin/tmpl/users/search.tmpl (On my
freebsd server, ispman's prefix is in /usr/local):
*** search.tmpl Thu Nov 4 09:49:03 2004
--- /usr/local/src/ispman/ispman-web/cgi-bin/tmpl/users/search.tmpl
Sun Jan 4 10:56:14 2004
***************
*** 58,65 ****
}
$filter="&(objectclass=ispmanDomainUser)$filter";
! #$users=$ispman->getEntriesAsHashRef($r->param("dn"), $filter);
! $users=$ispman->getEntriesAsHashRef("o=ispman", $filter);
--- 58,64 ----
}
$filter="&(objectclass=ispmanDomainUser)$filter";
! $users=$ispman->getEntriesAsHashRef($r->param("dn"), $filter);
So, my question is: How and where is that $r->param("dn") variable
supposed to be actually set that it isn't right now?
Thanks,
-Shawn
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/