From: Jim H. <ha...@us...> - 2003-02-27 14:58:42
|
Try replacing the constants one at a time with variables. They should work with or without quotes. It is possible that one value in a variable is getting messed up. --Jim Harle On Wed, 26 Feb 2003, Takis Skagos wrote: > > Hi, > > I was doing a bit more research on this, and I can actually get the > query to work if I hard-code my values into the search command. > However, if I use variables ... the search fails. Here is the line with > and without hard-coding: > > Hardcoded: > my $search = $ldap->search(base => "o=qlo", scope => "sub", > filter => > "(&(|(givenname=*takis*)(uid=*skagos*))(objectclass=inetOrgPerson))") > > > Not Hardcoded: > my $search = $ldap->search(base => "$basedn", scope => > "$config{searchscope}", > filter => "$filter") > > I've checked the values of those variables, and they are correct. > I've also tried using them with and without quotes. I'm really stumped. > Any information/assistance would be appreciated. > > Thanks. > > -- > Takis > -- > |o| P. Takis Skagos SaskTel - MIS |o| > |o| w: 306.777.4671 e-mail: tak...@sa... |o| > |o|-----------------------------------------------------------------|o| > |o| Two wrongs don't make a right, but three rights do make a left. |o| > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > |