<aside>

Sommaire

Dans cette page

L’import LDAP permet d’importer des éléments à partit d’un serveur LDAP (Lightweight Directory Access Protocol)

Il permet en outre de compléter les fiches utilisateur à partir de données de l’annuaire LDAP

Connexion externe

Une connexion externe est nécessaire pour atteindre le serveur LDAP

<aside> <img src="/icons/report_purple.svg" alt="/icons/report_purple.svg" width="40px" />

Pour accéder aux connexions externes, il sera nécessaire d’être administrateur système

Il est possible qu’il vous faille configurer un tunnel réseau pour que le serveur Process puisse atteindre le serveur LDAP, en fonction de l’infrastructure

</aside>

Pour créer la connexions externe :

Untitled

image.png

image.png

image.png

image.png

Agent de synchronisation

L’agent de synchronisation est planifié régulièrement pour interroger le serveur LDAP. Il contient aussi sa configuration

Créer l’agent

Cet agent n’est pas présent par défaut, vous devrez le créer

Pour créer l’agent :

image.png

image.png

Gérer l’agent

Pour gérer l’agent:

image.png

Paramétrage

Navigateur LDAP

Avant de paramétrer les informations de votre serveur LDAP, il est fortement conseillé d’utiliser un “navigateur LDAP” qui vous permet d’étudier en détail la structure de l’annuaire LDAP.

Par exemple https://www.ldapadministrator.com/softerra-ldap-browser.htm

Format

Le paramétrage est fait au format XML

Exemple :

<configuration>
<synchros>
    <synchro deletion="false" deletionActiveUserFilter="(objectclass=*)" externalConnexion="LDAPConnection" simulation="true">
      <organization basedn="OU=yourco.com" createOrganization="false" createSubOrganizations="false" directoryParentUri="DefaultOrganization" ldapFilter="(objectclass=organizationalUnit)" matchTree="true" searchSubLevels="true">
        <mapping source="OU" target="Label" type="String" />
        <users ldapFilter="(objectclass=person)">
          <mapping mandatory="true" source="sAMAccountName" target="Login" type="String" />
          <mapping mandatory="true" source="givenname" target="FirstName" type="String" />
          <mapping mandatory="true" source="sn" target="LastName" type="String" />
          <mapping mandatory="false" source="mail" target="Email" type="String" />
        </users>
        <group basedn="CN=Group base DN" ldapFilter="(objectclass=group)" memberAttribute="member">
          <mapping mandatory="true" source="CN" target="Name" type="String" />
        </group>
      </organization>
    </synchro>
    <synchro deletion="false" deletionActiveUserFilter="(objectclass=*)" host="" login="" password="" port="389" provider="com.sun.jndi.ldap.LdapCtxFactory" simulation="true">
      <organization basedn="O=YourCo" createOrganization="false" createSubOrganizations="false" directoryParentUri="DefaultOrganization" ldapFilter="(objectclass=organization)" matchTree="true" searchSubLevels="true">
        <mapping source="O" target="Label" type="String" />
        <users ldapFilter="(objectclass=person)">
          <mapping mandatory="true" source="uid" target="Login" type="String" />
          <mapping mandatory="true" source="givenname" target="FirstName" type="String" />
          <mapping mandatory="true" source="sn" target="LastName" type="String" />
          <mapping mandatory="false" source="mail" target="Email" type="String" />
        </users>
        <group basedn="/" ldapFilter="(objectclass=groupOfNames)" memberAttribute="member">
          <mapping source="cn" target="Name" type="String" />
        </group>
      </organization>
    </synchro>
</synchros>
</configuration>

Élément <synchro>