Re: Filter
Jonathan Clarke <[email protected]>
| Newsgroups | gmane.network.openldap.general |
|---|---|
| Message-ID | <[email protected]> |
On 13/11/2009 19:41, Gilberto Nunes wrote: > Hi all > > I want use ldapsearch to query a Active Directory Server. > I am use this : > > ldapsearch -LLL -x -b dc=selbetti,dc=local -H ldap://host -D proxy_user > '(|(objectClass=person)(objectClass=user))' -w password > > This command bring me all entries. > > I like filter only two attributes: cn and mail. > > Is there a way to do this??? To display only two attributes: just add them to the end of the command, like : > ldapsearch -LLL -x -b dc=selbetti,dc=local -H ldap://host -D proxy_user '(|(objectClass=person)(objectClass=user))' -w password cn mail By the way, "filter" refers to the search filter, '(|(objectClass=person)(objectClass=user))' in this case. Jonathan -- -------------------------------------------------------------- Jonathan Clarke - [email protected] -------------------------------------------------------------- Ldap Synchronization Connector (LSC) - http://lsc-project.org --------------------------------------------------------------