[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Search for email add via OU
In ldapsearch use the filter as
"(|(cn=Name1)(cn=Name2))"
Then request only the mail attribute to be displayed
For eXample,
# ldapsearch -D "<binddn> -b "ou=OU,dc=company,dc=com"
"(|(cn=Name1)(cn=Name2))" mail
- Jothiram S
On Thu, 3 Feb 2005 07:35:22 +0000 (GMT), Michael Villeza
<mvvilleza@yahoo.com> wrote:
> Hi list,
> Just wanna ask if it is possible to search email add
> via ou?
>
> I have an LDIF:
>
> dn: cn=OU,dc=company,dc=com
> objectClass: Top
> objectClass: organizationalUnit
> ou: OU
>
> dn: cn=Name1,ou=OU,dc=company,dc=com
> objectClass: inetOrgPerson
> cn: Name1
> mail: email add
>
> dn: cn=Name2,ou=OU,dc=company,dc=com
> objectClass: inetOrgPerson
> cn: Name2
> mail: email add
>
> If i query OU, it will display email adds of Name1 and
> Name2. Is that possible?
>
> Thanks.
>
>
> ________________________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
>