From: Jim H. <ha...@us...> - 2002-08-26 15:52:26
|
Raffaele, To just read a specific DN, do : $ldap->search(base=>$dnIwant, scope=>'base', filter=>'objectClass=*'); --Jim Harle On Mon, 26 Aug 2002 ra...@gm... wrote: > Hi > > A part of a script i made should search for the value of an Attribute in an > Entry and when the > attribute does not exist or is empty it should search for the same one level > below. > > So far no problems... but to get the Entry wich is one level below the > starting entry i need to > search fot a DN: > > original Entry eg: > > cn=item,cn=group,dc=host,dc=com => Here i cant find the value i need so... > > i search one level below: > > cn=group,dc=host,dc=com > > So i need to search for "cn=group,dc=host,dc=com". I recognized that i could > not use a DN in a filer > argument ( "(dn=cn=group,dc=host,dc=com)" ) does not return any results. > > So how can i search for an DN or better: How can i get an Entry on wich i > know the DN? > > cheers, > Raffaele > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > |