Customers
User information
 Loading ...
Show article in Knowledge Base

 How to convert the old LDAP Import job after upgrade to 14.4.8 or later Export knowledge base Export     SubscribeSubscribe      Show article info

This article describes how the old ldap import job configured in jobs-installed.xml must be configured to work in installed version 14.4.8 or later.

 

Please note! We recommend that you use the latest LDAP integration that can be configured from the settings page instead. Read more about the new ldap integration here

 

You can use the following parameters in the job:

 

companyId

The companyId for your company in the database. This should be 1 unless you have changed this manually or moved from the cloud version of VisionProject
username This is the same username as for your normal LDAP Configuration
password This is the same password as for your normal LDAP Configuration
url The server location
baseDN The location where to start importing users
searchFilter

The search filter used to find the users to import. This will be combined with the baseDN.

 

For example:

 

(&(memberOf=CN=visionflow-user-group,OU=Roles,OU=IT-Department,DC=ad,DC=mycompany,DC=se))

 

Use (&(objectClass=*)) if you don't want to filter

objectAttributeMapping What Attributes you want to map into VisionProject

 

 

See below for a sample job configuration section that you need to add into the jobs_installed.xml file to work.

 

 

 

<schedule>
	<job>    
      <name>LDAPUserDataImporter</name>
      <group>LDAPJobs</group>
      <job-class>se.visionera.visionproject.jobscheduler.LDAPUserDataImporterJob</job-class>
      <durability>false</durability>
      <recover>false</recover>
      <job-data-map>
         <entry>
            <key>companyId</key>
            <value>1</value>
         </entry>
         <entry>
            <key>username</key>
            <value></value>
         </entry>
         <entry>
            <key>password</key>
            <value></value>
         </entry>
         <entry>
            <key>url</key>
            <value></value>
         </entry>
         <entry>
            <key>baseDN</key>
            <value></value>
         </entry>
         <entry>
            <key>searchFilter</key>
            <value></value>
         </entry>
         <entry>
            <key>objectAttributeMapping</key>
            <value>
               name=displayName
               emailAddress=mail
               userName=sAMAccountName
            </value>
         </entry>
         <entry>
            <key>userGroupId</key>
            <value>6</value>
         </entry>
         <entry>
            <key>projectIds</key>
            <value>1</value>
         </entry>
   </job-data-map>
   </job>
   <trigger>
      <cron>
         <name>LDAPUserDataTrigger</name>
         <group>LDAPJobs</group>
         <job-name>LDAPUserDataImporter</job-name>
         <job-group>LDAPJobs</job-group>
         <cron-expression>0 0/20 * * * ?	</cron-expression>
      </cron>
   </trigger>
</schedule>
 

User comments
 Loading ...