[lsc-changes] [Ldap Synchronization Connector (LSC)] page changed: documentation:tutorials:openldaptoactivedirectory

webmaster at lsc-project.org webmaster at lsc-project.org
Tue Jul 21 19:43:37 CEST 2009


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2009/07/21 19:43
Browser     : Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11
IP-Address  : 82.67.204.30
Hostname    : tru75-2-82-67-204-30.fbx.proxad.net
Old Revision: http://lsc-project.org/wiki/documentation/tutorials/openldaptoactivedirectory?rev=1244795528
New Revision: http://lsc-project.org/wiki/documentation/tutorials/openldaptoactivedirectory
Edit Summary: 
User        : jclarke

@@ -17,45 +17,8 @@
  As described in [[documentation:requirements]], you need Java developers' tools to create a new connector. Here are those used in this tutorial:
    * SUN JDK 1.5.0_16
    * Maven 2.0.9
    * Ant 1.7.1
-   * AntInstaller 0.8beta
- 
- **As said in [[documentation:requirements]], Ubuntu ant package is buggy. Following notes only concerns Ubuntu distribution.**
- 
- === Ant ===
- 
- You have to install the official release from [[http://ant.apache.org/]].
- 
- Untar and install it in /usr/local/apache-ant-1.7.1:
- <code>
- $ tar zxvf apache-ant-1.7.1-bin.tar.gz
- $ sudo mv apache-ant-1.7.1 /usr/local
- </code>
- 
- Then configure environment variables, for example in ~/.bashrc:
- <file>
- # LSC
- ANT_HOME=/usr/local/apache-ant-1.7.1
- PATH="$ANT_HOME/bin":$PATH
- 
- export ANT_HOME PATH
- </file>
- 
- Reload:
- <code>
- $ source ~/.bashrc
- </code>
- 
- === AntInstaller ===
- 
- 
- Another known bug concerns the ant.jar shipped with AntInstaller. It has to be replaced:
- <code>
- $ cd /usr/local/AntInstaller-beta0.8/antlib/
- $ sudo mv ant.jar ant.jar.old
- $ sudo ln -s /usr/share/ant/lib/ant.jar .
- </code>
  
  ==== Connector directory ====
  
  To start a new connector, you have to download the LSC sample, as a starting point. Get the latest LSC-sample snapshot from [[http://tools.lsc-project.org/files|here]] or use:
@@ -75,13 +38,8 @@
  $ mvn package
  </code>
  
  This should have downloaded some files, and created lsc-sample-1.1-SNAPSHOT.jar in the target/ directory.
- 
- Declare AntInstaller home:
- <code>
- $ echo "AntInstaller.home=/usr/local/AntInstaller-beta0.8/" >> build.properties
- </code>
  
  ==== Start LDAP directories ====
  
  To build the connector, LSC will parse source and destination schemas through LDAP connections, so you have to start OpenLDAP and Active Directory, and be sure to have LDAP access to them.
@@ -93,12 +51,12 @@
  ==== Launch the wizard ====
  
  The LSC generation wizard will guide you through main configuration settings and will parse source and destination schemas to create java objects corresponding to LDAP objectClasses.
  
- You can choose to bypass the graphical wizard by editing directory properties in src/test/resources/lsc.properties, and launch this command:
+ You can choose to bypass the graphical wizard by editing directory properties in //etc/lsc.properties//, and launch this command:
  <code>
  ant lsc::_generator \
- -Dgenerator.parameters="-dir ../../src/impl/java -doc 'dstObjectClass' \
+ -Dgenerator.parameters="-f '$PWD/etc' -dir ../../src/impl/java -doc 'dstObjectClass' \
  -name taskName -ldap2ldap -soc 'srcObjectClass'" 
  </code>
  
  If you choose the graphical method, launch the wizard from your connector directory:
@@ -229,9 +187,9 @@
  ==== Set up configuration ====
  
  Some connector configuration was already done by the wizard, you can see it here:
  <code>
- $ vi src/test/resources/lsc.properties
+ $ vi etc/lsc.properties
  </code>
  
  All configuration parameters are described in [[documentation:configuration:start]].
  
@@ -331,9 +289,9 @@
  **Note**: There should be no line breaks after "=" signs. Any you see here are due to the formatting of this web page, and are marked with a "\" character you should remove.
  
  You can test your synchronization in "dry-run" mode (-n), which means no modification is done on the target directory:
  <code>
- $ ant lsc::synchronize -Dsynchronize.parameters="-c all -s all -n"
+ $ ant lsc::synchronize -Dsynchronize.parameters="-f $PWD/etc -c all -s all -n"
  </code>
  
  ===== Package your application =====
  



-- 
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/



More information about the lsc-changes mailing list