Skip to content

Instantly share code, notes, and snippets.

@nkabir
Created February 28, 2012 16:59
Show Gist options
  • Select an option

  • Save nkabir/1933648 to your computer and use it in GitHub Desktop.

Select an option

Save nkabir/1933648 to your computer and use it in GitHub Desktop.
Google Apps Dir Sync
<?xml version="1.0" encoding="UTF-8"?>
<config version="0.2" id="c35dc4ae357543098a3a0b3a251447ea" rev="f7649dc81f234603bc9ce8fbf66a6ad7">
<version>2.0.1</version>
<features>
<optional>GROUP_DESCRIPTION</optional>
<optional>GROUPS</optional>
<optional>SKIP_ORGUNITS</optional>
<optional>MULTIDOMAIN</optional>
<optional>GOOGLE_ORGUNITS</optional>
<optional>ALIAS_SYNCHRONIZATION</optional>
<optional>MD5_PASSWORD</optional>
<optional>SHA1_PASSWORD</optional>
<optional>GIVEN_NAME</optional>
<optional>SUSPEND_USERS</optional>
<optional>USER_PROFILES</optional>
<optional>FAMILY_NAME</optional>
<optional>SKIP_CALENDAR_RESOURCES</optional>
<optional>CALENDAR_RESOURCES</optional>
<optional>SKIP_GROUPS</optional>
<optional>SHARED_CONTACTS</optional>
<optional>GOOGLE_QUOTA</optional>
<optional>GROUP_OWNER</optional>
</features>
<logging>
<defaultLogLevel>INFO</defaultLogLevel>
<format>[%d{ISO8601}] [%t] [%p] [%C{3}] %m%n</format>
<logFile>sync.log</logFile>
<maximumLogBytes>4294967296</maximumLogBytes>
<logFileCount>1</logFileCount>
</logging>
<notification>
<smtpRelay>${smtpRelay}</smtpRelay>
<fromAddress>${fromAddress}</fromAddress>
<toAddress>${toAddress}</toAddress>
<ignoreRetrievalInfo>false</ignoreRetrievalInfo>
<ignoreRetrievalWarnings>false</ignoreRetrievalWarnings>
<ignoreRetrievalErrors>false</ignoreRetrievalErrors>
</notification>
<eventLimits>
<deleteUserLimitCount>0</deleteUserLimitCount>
</eventLimits>
<maxCacheLifetime>691200</maxCacheLifetime>
<plugins>
<remote>
<plugin class="com.postini.usersyncapp.plugin.google.GooglePlugin">
<config version="0.2">
<adminEmail>${adminEmail}</adminEmail>
<encryptedAdminPassword>CHANGE_ME</encryptedAdminPassword>
<domain>${domain}</domain>
<loginMethod>CLIENTLOGIN</loginMethod>
<googleUsersSyncThreads>30</googleUsersSyncThreads>
</config>
</plugin>
</remote>
<local>
<plugin class="com.postini.usersyncapp.plugin.ldap.LDAPPlugin">
<config version="0.2">
<serverType>GENERIC</serverType>
<connectMethod>STANDARD</connectMethod>
<hostname>${hostname}</hostname>
<port>${port}</port>
<basedn>${baseDn}</basedn>
<authType>SIMPLE</authType>
<authUser>${authUserDn}</authUser>
<authCredentialsEncrypted>CHANGE_ME</authCredentialsEncrypted>
<emailAttrName>mail</emailAttrName>
<dominoWhiteSpaceReplaceChar>.</dominoWhiteSpaceReplaceChar>
<givenNameAttrName>givenname</givenNameAttrName>
<familyNameAttrName>sn</familyNameAttrName>
<sha1PasswordAttrName>userpassword</sha1PasswordAttrName>
<orgunits />
<users>
<search>
<priority>1</priority>
<basedn>${usersBaseDn}</basedn>
<suspended>false</suspended>
<scope>SUBTREE</scope>
<orgMappingAttribute />
<filter>(objectClass=account)</filter>
</search>
</users>
<groups>
<search>
<priority>1</priority>
<basedn>${groupsBaseDn}</basedn>
<scope>SUBTREE</scope>
<filter>(objectClass=mailGroup)</filter>
<userIdentifierAttr>mgrpRFC822MailMember</userIdentifierAttr>
<groupIdentifierAttr>mail</groupIdentifierAttr>
<groupDisplayNameAttribute>cn</groupDisplayNameAttribute>
<groupDescriptionAttribute>description</groupDescriptionAttribute>
<ownerDnAttribute>owner</ownerDnAttribute>
</search>
</groups>
<sharedContacts>
<search>
<priority>1</priority>
<basedn>${contactsBaseDn}</basedn>
<scope>SUBTREE</scope>
<syncKeyAttrName>dn</syncKeyAttrName>
<workAddressPostalCodeAttrName>postalCode</workAddressPostalCodeAttrName>
<companyNameAttrName>o</companyNameAttrName>
<mobilePhonesAttrName>mobile</mobilePhonesAttrName>
<workAddressPoboxAttrName>postOfficeBox</workAddressPoboxAttrName>
<workAddressCityAttrName>l</workAddressCityAttrName>
<fullNameAttrName>cn</fullNameAttrName>
<workAddressStateAttrName>st</workAddressStateAttrName>
<workPhonesAttrName>telephoneNumber</workPhonesAttrName>
<workEmailAddressesAttrName>mail</workEmailAddressesAttrName>
<workAddressStreetAttrName>street</workAddressStreetAttrName>
<filter>(objectClass=inetOrgPerson)</filter>
</search>
</sharedContacts>
<userProfiles>
<search>
<priority>1</priority>
<basedn>${usersBaseDn}</basedn>
<scope>SUBTREE</scope>
<notesAttrName>description</notesAttrName>
<employeeIdsAttrName>uid</employeeIdsAttrName>
<primaryEmailAddressAttrName>mail</primaryEmailAddressAttrName>
<filter>(objectClass=posixAccount)</filter>
</search>
</userProfiles>
<calendarResources />
<mailingLists />
</config>
</plugin>
</local>
</plugins>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment