[Date Prev][Date Next] [Chronological] [Thread] [Top]

A LDAP how to?



I have an entry like this for example:

 

O=companyName,c=US

Name:ABC

Owner:ANC

Member:123

Member:345

Member:676

City:NewHeavean

State:Heavenopolis

 

 

Is there a way to write a filter to get only the 'member' in the above
entry? The number of occurrences of this attribute in this entry is ad-hoc.

 

Thanks  


Jeeva Venkataraman,
Software Engineer,MediaOcean.
Everything is permanent, till it changes and after it changes, its permanent
again.

-----Original Message-----
From: Adam Williams6 [mailto:awilliam@whitemice.org] 
Sent: Monday, April 01, 2002 2:45 PM
To: Johann Botha
Cc: openldap-software@OpenLDAP.org
Subject: Re: PHP and LDAPv3

>
>if i config my OpenLDAP2 v. 2.0.23 server with,
>- ------------< snip <------< snip <------< snip <------------
>require bind authc LDAPv3
>- ------------< snip <------< snip <------< snip <------------
>php4.1.1 cannot connect
>if i set it to
>- ------------< snip <------< snip <------< snip <------------
>require bind authc
>- ------------< snip <------< snip <------< snip <------------
>it works fine.
>...so does this mean PHP does not support LDAPv3 ?

It defaults to version 2.

Try something like  -

if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3))
    echo "Using LDAPv3";
else
    echo "Failed to set protocol version to 3";

The ldap_set_option() call has to be after ldap_connect() and before 
ldap_bind()

-- 
-----------------------------------------------------------
Ximian GNOME, Evolution, LTSP, and RedHat Linux + LVM & XFS
-----------------------------------------------------------