Advertisement
okelet

LSC Config

Oct 10th, 2012
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.90 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.0.xsd" revision="0">
  3.  
  4.   <connections>
  5.  
  6.     <ldapConnection>
  7.       <name>ldappruebas-connection</name>
  8.       <url>ldaps://ldappruebas.mycompany.es/ou=People,o=myorg,dc=mycompany,dc=es</url>
  9.       <username>cn=Directory Manager</username>
  10.       <password>XXXXXXXX</password>
  11.       <authentication>SIMPLE</authentication>
  12.       <referral>IGNORE</referral>
  13.       <derefAliases>NEVER</derefAliases>
  14.       <version>VERSION_3</version>
  15.       <pageSize>-1</pageSize>
  16.       <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
  17.       <tlsActivated>false</tlsActivated>
  18.     </ldapConnection>
  19.  
  20.     <ldapConnection>
  21.       <name>apacheds-connection</name>
  22.       <url>ldap://XXXXXXXXXXXXXXX/ou=People,o=myorg,dc=mycompany,dc=es</url>
  23.       <username>cn=Directory Manager</username>
  24.       <password>XXXXXXXX</password>
  25.       <authentication>SIMPLE</authentication>
  26.       <referral>IGNORE</referral>
  27.       <derefAliases>NEVER</derefAliases>
  28.       <version>VERSION_3</version>
  29.       <pageSize>-1</pageSize>
  30.       <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
  31.       <tlsActivated>false</tlsActivated>
  32.     </ldapConnection>
  33.  
  34.   </connections>
  35.  
  36.   <tasks>
  37.  
  38.     <task>
  39.  
  40.       <name>MySyncTask</name>
  41.       <bean>org.lsc.beans.SimpleBean</bean>
  42.  
  43.       <ldapSourceService>
  44.         <name>ldappruebas-source-service</name>
  45.         <connection reference="ldappruebas-connection" />
  46.         <baseDn>ou=People,o=myorg,dc=mycompany,dc=es</baseDn>
  47.         <pivotAttributes>
  48.           <string>uid</string>
  49.         </pivotAttributes>
  50.         <fetchedAttributes>
  51.           <string>objectClass</string>
  52.           <string>uid</string>
  53.           <string>cn</string>
  54.           <string>givenName</string>
  55.           <string>sn</string>
  56.           <string>mail</string>
  57.         </fetchedAttributes>
  58.         <getAllFilter>(&amp;(ou:dn:=People)(objectClass=posixAccount))</getAllFilter>
  59.         <getOneFilter>(&amp;(ou:dn:=People)(objectClass=posixAccount)(uid={uid}))</getOneFilter>
  60.         <cleanFilter>(&amp;(ou:dn:=People)(objectClass=posixAccount)(uid={uid}))</cleanFilter>
  61.       </ldapSourceService>
  62.  
  63.       <ldapDestinationService>
  64.         <name>apacheds-destination-service</name>
  65.         <connection reference="apacheds-connection" />
  66.         <baseDn>ou=People,o=myorg,dc=mycompany,dc=es</baseDn>
  67.         <pivotAttributes>
  68.           <string>uid</string>
  69.         </pivotAttributes>
  70.         <fetchedAttributes>
  71.           <string>objectClass</string>
  72.           <string>uid</string>
  73.           <string>cn</string>
  74.           <string>givenName</string>
  75.           <string>sn</string>
  76.           <string>mail</string>
  77.         </fetchedAttributes>
  78.         <getAllFilter>(objectClass=organizationalPerson)</getAllFilter>
  79.         <getOneFilter>(&amp;(objectClass=organizationalPerson)(uid={uid}))</getOneFilter>
  80.       </ldapDestinationService>
  81.  
  82.       <propertiesBasedSyncOptions>
  83.    
  84.         <mainIdentifier>"uid=" + srcBean.getDatasetFirstValueById("uid")</mainIdentifier>
  85.         <defaultDelimiter>;</defaultDelimiter>
  86.         <defaultPolicy>FORCE</defaultPolicy>
  87.    
  88.         <conditions>
  89.             <changeId>false</changeId>
  90.         </conditions>
  91.    
  92.         <dataset>
  93.           <name>objectClass</name>
  94.           <forceValues>
  95.             <string>"account"</string>
  96.             <string>"organizationalPerson"</string>
  97.             <string>"top"</string>
  98.           </forceValues>
  99.         </dataset>
  100.  
  101.       </propertiesBasedSyncOptions>
  102.      
  103.     </task>
  104.    
  105.   </tasks>
  106.  
  107.   <audits>
  108.     <ldifAudit>
  109.       <name>ldif-audit</name>
  110.       <append>true</append>
  111.       <operations>create, delete</operations>
  112.       <file>/tmp/audit.ldif</file>
  113.     </ldifAudit>
  114.   </audits>
  115.  
  116.   <security>
  117.     <encryption>
  118.       <keyfile>etc/lsc.key</keyfile>
  119.       <algorithm>AES</algorithm>
  120.       <strength>128</strength>
  121.     </encryption>
  122.   </security>
  123.  
  124. </lsc>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement