Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.0.xsd" revision="0">
- <connections>
- <ldapConnection>
- <name>ldappruebas-connection</name>
- <url>ldaps://ldappruebas.mycompany.es/ou=People,o=myorg,dc=mycompany,dc=es</url>
- <username>cn=Directory Manager</username>
- <password>XXXXXXXX</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>
- </ldapConnection>
- <ldapConnection>
- <name>apacheds-connection</name>
- <url>ldap://XXXXXXXXXXXXXXX/ou=People,o=myorg,dc=mycompany,dc=es</url>
- <username>cn=Directory Manager</username>
- <password>XXXXXXXX</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>
- </ldapConnection>
- </connections>
- <tasks>
- <task>
- <name>MySyncTask</name>
- <bean>org.lsc.beans.SimpleBean</bean>
- <ldapSourceService>
- <name>ldappruebas-source-service</name>
- <connection reference="ldappruebas-connection" />
- <baseDn>ou=People,o=myorg,dc=mycompany,dc=es</baseDn>
- <pivotAttributes>
- <string>uid</string>
- </pivotAttributes>
- <fetchedAttributes>
- <string>objectClass</string>
- <string>uid</string>
- <string>cn</string>
- <string>givenName</string>
- <string>sn</string>
- <string>mail</string>
- </fetchedAttributes>
- <getAllFilter>(&(ou:dn:=People)(objectClass=posixAccount))</getAllFilter>
- <getOneFilter>(&(ou:dn:=People)(objectClass=posixAccount)(uid={uid}))</getOneFilter>
- <cleanFilter>(&(ou:dn:=People)(objectClass=posixAccount)(uid={uid}))</cleanFilter>
- </ldapSourceService>
- <ldapDestinationService>
- <name>apacheds-destination-service</name>
- <connection reference="apacheds-connection" />
- <baseDn>ou=People,o=myorg,dc=mycompany,dc=es</baseDn>
- <pivotAttributes>
- <string>uid</string>
- </pivotAttributes>
- <fetchedAttributes>
- <string>objectClass</string>
- <string>uid</string>
- <string>cn</string>
- <string>givenName</string>
- <string>sn</string>
- <string>mail</string>
- </fetchedAttributes>
- <getAllFilter>(objectClass=organizationalPerson)</getAllFilter>
- <getOneFilter>(&(objectClass=organizationalPerson)(uid={uid}))</getOneFilter>
- </ldapDestinationService>
- <propertiesBasedSyncOptions>
- <mainIdentifier>"uid=" + srcBean.getDatasetFirstValueById("uid")</mainIdentifier>
- <defaultDelimiter>;</defaultDelimiter>
- <defaultPolicy>FORCE</defaultPolicy>
- <conditions>
- <changeId>false</changeId>
- </conditions>
- <dataset>
- <name>objectClass</name>
- <forceValues>
- <string>"account"</string>
- <string>"organizationalPerson"</string>
- <string>"top"</string>
- </forceValues>
- </dataset>
- </propertiesBasedSyncOptions>
- </task>
- </tasks>
- <audits>
- <ldifAudit>
- <name>ldif-audit</name>
- <append>true</append>
- <operations>create, delete</operations>
- <file>/tmp/audit.ldif</file>
- </ldifAudit>
- </audits>
- <security>
- <encryption>
- <keyfile>etc/lsc.key</keyfile>
- <algorithm>AES</algorithm>
- <strength>128</strength>
- </encryption>
- </security>
- </lsc>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement