Hi Shannon,

Please find attached a sample that synchronize two directories. As you will
see the source and destination settings are almost the same.

Regards

-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2011/11/7 Shannon <[email protected]>

> Good day.
>
> Using the example lsc.xlm-sample, I see the necessary parameters below for
> destination ldap services, but the example uses a db for the source. I
> didn't see any updated documentation for the 2.0 branch (sorry if I missed
> it).
>
> Can you provide a same source ldap service config with some comments, or
> is the same, or??  For reference, this will be used to sync AD to
> OpenLDAP/389 Server.
>
> <destinationService class="ldapDestinationService"**>
>        <name>ldap-dst-service</name>
>        <connection reference="4" />
>        <baseDn>ou=People,dc=test,dc=**com</baseDn>
>        <pivotAttributes id="9">
>          <string>mail</string>
>        </pivotAttributes>
>        <fetchedAttributes id="10">
>          <string>cn</string>
>          <string>sn</string>
>          <string>givenname</string>
>          <string>objectClass</string>
>          <string>uid</string>
> <!--    For AD     <string>sAMAccountName</**string>     -->
>          <string>mail</string>
>        </fetchedAttributes>
>        <getAllFilter>(objectClass=**inetorgperson)</getAllFilter>
>        <getOneFilter>(&amp;(**objectClass=inetorgperson)(**
> mail={mail}))</getOneFilter>
>      </destinationService>
>
>
> Also, I see a doc that talks about the -a -l -s options, but was wondering
> if there was a 'pretend' or do-nothing option like on the 1.x branch.
>
> Thanks,
>
>
> Shannon
> ______________________________**______________________________**___
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected].**org <[email protected]>
> http://lists.lsc-project.org/**listinfo/lsc-users<http://lists.lsc-project.org/listinfo/lsc-users>
>
<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-1.0.xsd"; id="1" revision="0">
  <connections id="2">
    <connection class="ldapConnection" id="4">
      <id>ldap-dst-conn</id>
      <url>ldap://localhost:33389/dc=lsc-project,dc=org</url>
      <username>cn=Directory Manager</username>
      <password>secret</password>
      <authentication>SIMPLE</authentication>
      <referral>IGNORE</referral>
      <derefAliases>NEVER</derefAliases>
      <version>VERSION_3</version>
      <pageSize>-1</pageSize>
      <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
      <tlsActivated>false</tlsActivated>
    </connection>
    <connection class="ldapConnection" id="3">
      <id>ldap-src-conn</id>
      <url>ldap://127.0.0.1/dc=lsc-project,dc=org</url>
      <username>cn=Manager,dc=lsc-project,dc=org</username>
      <password>secret</password>
      <authentication>SIMPLE</authentication>
      <referral>IGNORE</referral>
      <derefAliases>NEVER</derefAliases>
      <version>VERSION_3</version>
      <pageSize>-1</pageSize>
      <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
      <tlsActivated>false</tlsActivated>
    </connection>
  </connections>
  <audits id="5">
	<audit class="csvAudit">
		<name>csv</name>
		<operations>create, delete</operations>
		<attributes>cn, dn</attributes>
		<separator>;</separator>
		<append>true</append>
	</audit>
	<audit class="ldifAudit">
		<name>ldif</name>
		<append>false</append>
	</audit>
  </audits>
  <tasks id="6">
    <task id="7">
      <name>People</name>
      <bean>org.lsc.beans.SimpleBean</bean>
      <destinationService class="ldapDestinationService" id="8">
        <name>opends-dst-service</name>
        <connection reference="4" />
        <baseDn>ou=People</baseDn>
        <pivotAttributes id="9">
          <string>mail</string>
        </pivotAttributes>
        <fetchedAttributes id="10">
          <string>description</string>
          <string>cn</string>
          <string>sn</string>
          <string>userPassword</string>
          <string>objectClass</string>
          <string>uid</string>
          <string>mail</string>
        </fetchedAttributes>
        <getAllFilter>(objectClass=inetorgperson)</getAllFilter>
        <getOneFilter>(&amp;(objectClass=inetorgperson)(mail={mail}))</getOneFilter>
      </destinationService>
      <sourceService class="org.lsc.plugins.connectors.syncrepl.SyncReplServiceConfiguration" id="11">
        <name>openldap-source-service</name>
        <serverType>OpenLDAP</serverType>
        <connection reference="3" />
        <baseDn>ou=People,dc=lsc-project,dc=org</baseDn>
        <pivotAttributes>
          <string>mail</string>
        </pivotAttributes>
        <fetchedAttributes>
          <string>description</string>
          <string>cn</string>
          <string>sn</string>
          <string>userPassword</string>
          <string>objectClass</string>
          <string>uid</string>
          <string>mail</string>
        </fetchedAttributes>
        <getAllFilter>(objectClass=inetorgperson)</getAllFilter>
        <getOneFilter>(&amp;(objectClass=inetorgperson)(mail={mail}))</getOneFilter>
      </sourceService>
      <syncOptions class="propertiesBasedSyncOptions" id="12">
        <conditions id="13"></conditions>
        <mainIdentifier>"mail=" + srcBean.getAttributeFirstValueById("mail") + ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
        <defaultDelimiter>;</defaultDelimiter>
        <defaultPolicy>FORCE</defaultPolicy>
      </syncOptions>
    </task>
  </tasks>
  <security id="28">
    <encryption id="29">
      <keyfile>c:\workspace_lsc\lsc-full\lsc\trunk\etc\lsc.key</keyfile>
      <algorithm>AES</algorithm>
      <strength>128</strength>
    </encryption>
  </security>
</lsc>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to