[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ispman-users
Subject:    Re: [Ispman-users] Searching users
From:       Atif Ghaffar <atif.ghaffar () gmail ! com>
Date:       2005-04-12 12:05:29
Message-ID: f240b6405041205056678c518 () mail ! gmail ! com
[Download RAW message or body]

Hi, 

I have fixed this bug in CVS (HEAD/1.3?)
Please update 
cgi-bin/tmpl/menu.tmpl 
cgi-bin/tmpl/users/search.tmpl

best regards


On Nov 23, 2004 12:56 AM, Shawn O'Connor <soconnor@perceptyx.com> wrote:
> 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/
> _______________________________________________
> Ispman-users mailing list
> Ispman-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ispman-users
>


-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ispman-users mailing list
Ispman-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ispman-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic