forked from Combodo/itop-data-collector-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.distrib.xml
68 lines (67 loc) · 3.08 KB
/
params.distrib.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<!-- Default values for parameters. Do NOT alter this file, use params.local.xml instead -->
<parameters>
<!-- NOTE: ldaphost and ldapport are deprecated in favor of ldapuri -->
<ldapuri></ldapuri>
<ldapdn>DC=company,DC=com</ldapdn>
<ldaplogin>CN=ITOP-LDAP,DC=company,DC=com</ldaplogin>
<ldappassword>password</ldappassword>
<!-- Parameters for Person synchronization -->
<ldappersonfilter>(objectClass=person)</ldappersonfilter>
<itop_group_pattern>/^CN=itop-(.*),OU=.*/</itop_group_pattern>
<person_fields>
<!-- Mapping between LDAP fields and iTop Person's object fields -->
<primary_key>samaccountname</primary_key>
<name>sn</name>
<first_name>givenname</first_name>
<email>mail</email>
<phone>telephonenumber</phone>
<mobile_phone>mobile</mobile_phone>
<function>title</function>
<employee_number>employeenumber</employee_number>
</person_fields>
<person_defaults>
<!-- Default values for iTop Person's object fields -->
<org_id>Demo</org_id>
<status>active</status>
</person_defaults>
<!-- Parameters for User synchronization -->
<collect_person_only>no</collect_person_only>
<ldapuserfilter>(&(objectClass=person)(mail=*))</ldapuserfilter>
<synchronize_profiles>no</synchronize_profiles>
<user_fields>
<!-- Mapping between LDAP fields and iTop UserLDAP's object fields -->
<primary_key>samaccountname</primary_key>
<login>samaccountname</login>
<contactid>mail</contactid>
</user_fields>
<user_defaults>
<!-- Default values for iTop UserLDAP's object fields -->
<profile>Portal user</profile>
<language>EN US</language>
</user_defaults>
<!--
Set a non empty (and unique) prefix if you run several instances of the collector against the same iTop Server
This is the recommended method to collect data from several LDAP servers. (assign a unique prefix to each "source" LDAP server)
Note: prefix is defined here since json_placeholders (below) can only reference global parameters
-->
<prefix></prefix>
<json_placeholders>
<!-- For compatibility with the version 1.1.x of the collector, define the data table names as following:
<prefix></prefix>
<persons_data_table>synchro_data_PersonAD</persons_data_table>
<users_data_table></users_data_table>
-->
<prefix>$prefix$</prefix>
<persons_data_table>synchro_data_$prefix$ldap_persons</persons_data_table>
<users_target_class>UserLDAP</users_target_class>
<users_data_table>synchro_data_$prefix$ldap_users</users_data_table>
<full_load_interval>604800</full_load_interval><!-- 7 days (in seconds): 7*24*60*60 -->
<synchro_status>production</synchro_status>
<!-- How to import the profiles in iTop. Possible values: write_if_empty | master_locked
Use write_if_empty if you want the collector to initialize the profiles for each account but let you edit them in iTop after the initial creation of the user
Use master_locked if you manage the profiles directly in LDAP and let the collector synchronize them in iTop
-->
<profile_list_update_policy>write_if_empty</profile_list_update_policy>
</json_placeholders>
</parameters>