beautypg.com

Ldap queries, About ldap queries, Syntax – Google Apps Directory Sync Administration Guide User Manual

Page 41

background image

Chapter 4

LDAP Queries

41

LDAP Queries

Chapter 4

About LDAP Queries

GADS uses the LDAP query language to collect data from your directory server.
Before you can synchronize data from your directory server, you will need to
prepare LDAP queries.

The LDAP query language is a flexible standard that supports complex and
powerful logical queries, and is discussed in this section. Google Apps Directory
Sync strictly adheres to RFC 2254, which defines international standards on
LDAP filters.

To build your LDAP queries, you will need to know your LDAP structure. The best
way to collect directory server information is an LDAP browser. For more
information, see “Step One: Install LDAP Browser” on page 24.

Most of the search rules in GADS use LDAP queries for information. The only
exception to this are Exception Rules, which use substring or regular expressions
based on the text of email addresses, not LDAP fields.

Note:

This document lists many common queries, but every directory server is

different, and many store information in different fields or formats. To develop
these queries, consult standard LDAP documentation and review your LDAP
structure with an LDAP browser. Google support cannot write LDAP queries for
your environment or debug your LDAP queries.

Syntax

The following syntax is used in LDAP filters:

Name of
Operator

Character

Use

Equals

=

Creates a filter which requires a field to have a
given value.