#
Configuring LDAP Collector
The Open iT LDAPCollector collects Active Directory information and sends them over to the server. This allows the server installation in the cloud to integrate the Active Directory to their reports.
#
Activating LDAP Data Collection
Go to the scheduler directory, which is by default in
C:\Program Files\OpeniT\Core\Configuration\scheduler
, and opencollect_ldap.oconf
.Locate and set
collect_ldap.active
to true to activate the collection of LDAP data.collect_ldap.oconf1|root 2|{ 3| scheduler 4| { 5| jobs 6| { 7| collect_ldap 8| { ... 16| active 17| { 18| type=bool 19| value=true 20| } ...
Save the changes.
Go to the scheduler directory, which is by default in
/var/opt/openit/etc/scheduler
, and opencollect_ldap.oconf
.Locate and set
collect_ldap.active
to true to activate the collection of LDAP data.collect_ldap.oconf1|root 2|{ 3| scheduler 4| { 5| jobs 6| { 7| collect_ldap 8| { ... 16| active 17| { 18| type=bool 19| value=true 20| } ...
Save the changes.
#
Verifying LDAP Collector Configuration
Follow these steps to manually check if the configuration works:
Open a command prompt with Administrator level privileges.
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin
, run the command:Command Syntaxcd $BIN_DIR
Examplecd C:\Program Files\OpeniT\Core\bin
Once in the directory, run the command:
Command Syntaxopenit_confbuilder --client
Run the LDAP collector binary:
Command Syntaxopenit_ldapcollector
Ensure that there is no error encountered upon running the command.
Verify that there is an
ldap_data.tsv
file created in the server's LdapCollector directory, which is by default inC:\Program Files\OpeniT\Core\Log\temp\LdapCollector
.
Go to the bin directory, which is by default in
/opt/openit/bin
, run the command:Command Syntaxcd $BIN_DIR
Examplecd /opt/openit/bin
Once in the directory, run the command:
Command Syntax./openit_confbuilder --client
Run the LDAP collector binary:
Command Syntax./ldapcollector
Ensure that there is no error encountered upon running the command.
Verify that there is an
ldap_data.tsv
file created in the server's LdapCollector directory, which is by default in/var/opt/openit/temp/LdapCollector
.
#
Configuring LDAP Settings
Go to the Components directory, which is by default in
C:\Program Files\OpeniT\Core\Configuration\Components
, and openldapcollector.xml
.Locate the object node
url
and specify the LDAP Server URL to connect to.ldapcollector.xml27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP:</Value> 33| </Object>
Accepted url values
# Examplesldapcollector.xml | Format: LDAP://[HostName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]:[PortNumber]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01:390</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]:[PortNumber]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01:390/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]:[PortNumber]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47:390</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]:[PortNumber]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47:390/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
Locate the object node
filter
and set the filter to use for searching data.ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">objectClass=User</Value> 39| </Object>
The default value is objectClass=User. Update the value by following either of the following format:
([attribute][operator][value])
or
([operator][filter1][filter2])
# ExamplesThe sample filter value below processes all objects.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(objectClass=\*) </Value> 39| </Object>
The sample filter value below filters all user objects but not andy.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(&(objectClass=User)(!(CN=andy)))</Value> 39| </Object>
The sample filter value below filters all user objects with a surname that starts with sm.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(sn=sm\*)</Value> 39| </Object>
The sample filter value below filters all contacts with a surname equal to Smith or Johnson.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(&(objectClass=contact)(\|(sn=Smith)(sn=Johnson)))</Value> 39| </Object>
Locate the object node
attribute
and set the attribute values to retrieve.ldapcollector.xml47| <Object> 48| <Name>attribute</Name> 49| <Description>Required. The attributes to retrieve</Description> 50| <Value type="String">sAMAccountName,displayName,department,division,employeeType,l,mail,physicalDeliveryOfficeName,title</Value> 51| </Object>
The default value is sAMAccountName,displayName,department,division,employeeType,l, mail,physicalDeliveryOfficeName,title. Update the attribute separated by comma.
attrib1,attrib2,...attribN
Sample attribute Values
The default value of
page-size
, 1000, is the recommended value not to overload the Active Directory server.Save the changes.
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin
, run the command:Command Syntaxcd $BIN_DIR
Examplecd C:\Program Files\OpeniT\Core\bin
Update the configuration file, run the command:
Command Syntaxopenit_confbuilder --client
Make sure that there are no errors encountered.
Go to the Components directory, which is by default in
/var/opt/openit/etc/Components
, and openldapcollector.xml
.Locate the object node
url
and set the LDAP Server URL to connect to.ldapcollector.xml27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP:</Value> 33| </Object>
Accepted url Values
# Examplesldapcollector.xml | Format: LDAP://[HostName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]:[PortNumber]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01:390</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[HostName]:[PortNumber]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://server01:390/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]:[PortNumber]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47:390</Value> 33| </Object>
ldapcollector.xml | Format: LDAP://[IPAddress]:[PortNumber]/[DistiguishedName]27| <Object> 28| <Name>url</Name> 29| <Description>Optional in windows. Required in UNIX. The ldap server url to connect to. If none are specified, it will find the default domain controller and port of the machine where the application is running on. 30| It will also use the RootDSE's DN as starting point for search. 31| </Description> 32| <Value type="String">LDAP://17.172.224.47:390/CN=Jeff Smith,CN=Users,DC=fabrikam,DC=com</Value> 33| </Object>
Locate the object node
filter
and set the filter to use for searching data.ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">objectClass=User</Value> 39| </Object>
The default value is objectClass=User. Update the value by following either of the following format:
([attribute][operator][value])
or
([operator][filter1][filter2])
# ExamplesThe sample filter value below processes all objects.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(objectClass=\*) </Value> 39| </Object>
The sample filter value below filters all user objects but not andy.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(&(objectClass=User)(!(CN=andy)))</Value> 39| </Object>
The sample filter value below filters all user objects with a surname that starts with sm.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(sn=sm\*)</Value> 39| </Object>
The sample filter value below filters all contacts with a surname equal to Smith or Johnson.
Example: ldapcollector.xml35| <Object> 36| <Name>filter</Name> 37| <Description>Optional. The filter use for searching data.</Description> 38| <Value type="String">(&(objectClass=contact)(\|(sn=Smith)(sn=Johnson)))</Value> 39| </Object>
Locate the object node
attribute
and set the attribute values to retrieve.ldapcollector.xml47| <Object> 48| <Name>attribute</Name> 49| <Description>Required. The attributes to retrieve</Description> 50| <Value type="String">sAMAccountName,displayName,department,division,employeeType,l,mail,physicalDeliveryOfficeName,title</Value> 51| </Object>
The default value is sAMAccountName,displayName,department,division,employeeType,l, mail,physicalDeliveryOfficeName,title. Update the attribute separated by comma.
attrib1,attrib2,...attribN
Sample attribute Values
The default value of
page-size
, 1000, is the recommended value not to overload the Active Directory server.Save the changes.
Go to the bin directory, which is by default in
/var/opt/openit/etc/Components
, run the command:Command Syntaxcd $BIN_DIR
Examplecd /opt/openit/bin
Update the configuration file, run the command:
Command Syntax./openit_confbuilder --client
Make sure that there are no errors encountered.
#
Next Steps?
After configuring the LDAP Collector, proceed with the mapping configurations in the Core Server web interface.