|
Posted by Richard Lynch on 04/29/05 03:39
On Thu, April 28, 2005 6:43 am, Vedanta Barooah said:
> resource ldap_search ( resource link_identifier, string base_dn,
> string filter [, array attributes [, int attrsonly [, int sizelimit [,
> int timelimit [, int deref]]]]])
>
> if you look at the 4th and the 6th arguments to the function
> attributes is an array while sizelimit is an int, i want to pass the
> sixth element without passing the 4th and the 5th ... how do i do
> that??
>
> i tried these options:
>
> # this does not work,
> $rs=ldap_search($con,"o=vodoo.com","(objectClass*)",array(),0,500);
>
> # this wont works :((
> $rs=ldap_search($con,"o=vodoo.com","(objectClass*)",' ',0,500);
>
> # this also goofs!
> $rs=ldap_search($con,"o=vodoo.com","(objectClass*)",NULL,0,500);
>
> here that 5th arg works if i pass a zero as ... 0 means the default
> behaviour!!
>
> any ideas ... clues ?
Idea 1:
Try using the DEFAULT values for those optional args.
Idea 2:
Perhaps LDAP itself has special characters that are "wildcard" and you can
use those for the arguments. I would try "*" myself...
Idea 3:
Are you sure the arguments are even meaninful if you pass nothing for 4th
and 5th and something for the 6th?... This may be a restriction of LDAP
rather htan PHP.
Idea 4:
Try NULL for both args.
Idea 5:
Put *NOTHING* between the commas for the 4th/5th args.
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|