Microsoft Active Directory connector

Microsoft Active Directory connector gathers information about users, computers, and groups from Active Directory in the current domain. At the connector settings, it is possible to configure what objects are imported from Microsoft Active Directory to Miradore Management Suite.

User objects that are removed from the Active Directory, will be set to Retired status in Miradore, seven days after they were removed from the AD.

This connector can be installed to any computer that belongs to domain,like to a Domain Controller, if required by firewall restrictions or such. Installer can be found from <Miradore server installation directory>\Connectors\Active Directory directory.

Requirements

Network architecture

Step-by-step guide for setting up AD connector

  1. Install AD connector to target computer. See Installation using Windows Installer below.

  2. Run AD connector. See Running AD connector below.

  3. Configure AD connector.

  4. Test AD connector (optional).

  5. Run AD connector (optional).

Installation using Windows installer

  1. Run ”AD_Connector_x64.msi” or ”AD_Connector_x86.msi” installer file.

  2. Set connector configurations. All fields must be filled before Next button can be pressed.

Installer configuration

    1. Miradore server name: Host name or IP-address of Miradore server. Collected data is sent to this server.

    2. Miradore instance name: Many Miradore servers can run on same host. Instance name specifies the server. By default, server is installed with instance name "Miradore".

    3. Miradore server port: TCP/IP port that Miradore server uses for HTTP(S) traffic. By default it is 80.

    4. Use HTTPS: If checked, HTTPS protocol is used instead of HTTP. Miradore server must be configured to use HTTPS.

    5. Ignore SSL errors: If checked, all SSL certificate errors are ignored.

    6. Use proxy: If checked, connector uses proxy server to connect with Miradore server.

    7. Proxy server: Host name or IP-address of proxy server.

    8. Proxy port: Proxy server’s port

    9. Proxy authentication method: Authentication method that proxy server uses. Available methods: none, basic, digest and NTLM

    10. Proxy user name: User name for proxy server

    11. Proxy password: Password for proxy server

  1. Set Windows Task Scheduler configurations.

Task Scheduler configurations

    1. Add to Scheduled Tasks checkbox: if checked, Miradore AD Connector task is added to Windows Scheduled Task and all fields must be filled before Next button can be pressed.

    2. Start time: AD Connector is run daily at this time.

    3. User account: Select to use SYSTEM account or give username and password that is used to run task.

    4. [Domain\] User Name: Scheduler will run task as it was started by this user. Add domain if needed.

    5. Password and Retype password: User’s password. Passwords must match.

  1. Start and complete installation.

Microsoft Active Directory connector configurator utility

Miradore Active Directory connector configurator can be used to add multiple Active Directory connector configurations on one computer. One connector configuration per each Active Directory domain.

Miradore Active Directory connector configurator utility ("ad_connector_configurator.exe") was added to the connector installer in connector version 2.8.0. After the connector installation, the connector configurator utility can be found from the connector's installation directory.

Adding connector configurations with the connector configurator

Installation of the first Miradore Active Directory connector is performed using the Windows installer as instructed in "Installation using Windows installer". After that, it is possible to use the connector configurator utility to add additional connector configurations to the same computer as described below.

  1. Connector configurator requires .NET 4.5 framework.

  2. Run connector configurator ("ad_connector_configurator.exe") as administrator.

  3. Click "Add configuration" in the conenctor configurator's user interface.

  4. Enter the configuration settings for the new connector configuration. You need to give a unique identifier for each connector configuration item. Notice that you can use the "Miradore instance template" drop down menu to auto-fill previously configured Miradore server settings for the new connector configuration.

  5. Run the added connector configuration using the "Run connector" button at the bottom of the connector configurator's user interface. After running, the connector item(s) should appear to "Administration > System settings > Connectors > Connectors" table in Miradore Management Suite.

  6.  Activate the added connector configuration(s) in Miradore Management Suite.

Running AD connector

  1. Open Scheduled Tasks

  2. Right click Miradore AD connector and click Run.

Logging

AD connector writes log every time it is run. It creates two files for log: ad_connector.log and ad_connector.old. Ad_connector.log has information about last run and ad_connector.old archives old log files. Size of ad_connector.old is limited to 2MB. Location of those files is defined in registry (see Windows Registry settings below). Logs can also be viewed in System settings > Connectors in the Miradore management console.

  1. Open AD connector log file.

  2. Check that there are no errors or warnings in the log.

Windows Registry settings

AD connector specific registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Miradore\Server\Connectors\AD_Connector and rest of values use this.

Value name

Description

Type

Default value

LogFilePath

Path of directory where log file is written.

String

C:\Program Files\Miradore\Connectors\AD\Logs

FileLogSeverity

Can have four different values: Debug, Info, Warning and Error. Those values mean severity level of information that is written to the log file. At Debug level it writes all log events and at Error level only error messages.

String

Info

SkipFileSending

AD connector removes output files after they have been sent to server. If SkipFileSending is set to 1, files are not sent and will not be removed.

DWORD

0

StoreFilesLocally

It is possible to keep the output files for e.g. problem solving purposes. If StoreFilesLocally is set to 1, files are stored to disk.

DWORD

0

 

Registry key for network settings is HKEY_LOCAL_MACHINE\SOFTWARE\Miradore\Server\Connectors\AD_Connector\Network. See Network settings for connectors.

Support for multiple Miradore instances

AD connector versions 2.6.1 and newer support multiple Miradore instances.

Configuration requires adding a registry key for each connection to Miradore instance. The default connection is created by AD connector Windows installer and its registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Miradore\Server\Connectors\AD_Connector\Network\0.

New connections to other Miradore instances are configured by adding new registry keys under Network key (1, 2, etc.). For setting values under the created key, see Network settings for connectors.

SkipFileSending setting can be overridden connection specifically by defining SkipFileSending values in the registry key for network settings.

Support for customizable AD attributes

AD connector versions 2.7.0 and newer support customizable attributes fetched in an LDAP query.

The customizable attributes are: description, employeeID, givenName, initials, sn, displayName, department, mail, and telephoneNumber.

For example, if user's telephone number is stored in mobile attribute, you can define a custom attribute "telephoneNumber=mobile".

For more information about the customizable attributes and filtering options, check out the documentation for system settings of AD connector: AD connector item attributes.

Automatically generated configuration items

Miradore can be configured to automatically generate Cost center items to Miradore for such cost centers that exist in Microsoft Active Directory, but which doesn't yet have a configuration item in Miradore. The setting for the auto-generation of cost center items can be found from:

Notice!

If collected data contains ';' characters, they are replaced by ':'.

Technical description

Miradore connector for Microsoft Active Directory

Additional info

MSI Installer parameters

 

Following AD Connector specific parameters can be given to installer from command line.

Value name

Description

Format

Default value

INSTALLDIR

Installation directory

Path

 

SERVER_HOST_NAME

Host name or IP-address of Miradore Server

String

-

SERVER_INSTANCE

Miradore Server’s instance name

String

-

IGNORE_SSL

Determines whether the connector ignores SSL certificate errors. 0 = No, 1 = Yes

Numeric

0

PROXY_AUTH_METHOD

Authentication method that the proxy server uses. Available methods:

None, Basic, Digest, and NTLM

String

None

PROXY_SERVER

Host name or IP-address of the proxy server.

String

 

PROXY_PASSWORD

Password for the proxy server.

String

 

PROXY_PORT

Proxy server's port.

Numeric

 

PROXY_USER

Username for proxy server.

String

 

SERVER_PORT

Miradore server's HTTP(S) port

Numeric

80

USE_PROXY

Determines whether the connector uses proxy server to connect with Miradore server. 0 = No, 1 = Yes

Numeric

0

USE_HTTPS

Determines if HTTPS is used instead of HTTP. You must set some value for this. Possible values: 0 = false, 1 = true.

Numeric

 

LOG_SEVERITY

Severity level of information that is written to the log file. (Debug, Info, Warning)

String

Info

LOG_PATH

Directory of log files

Path

C:\ProgramFiles\Miradore\Connectors\AD\Logs

ADD_TO_SCHED

If 1, connector will be added to Windows Scheduled tasks. Then also four following parameters must be given. (1, 0)

Numeric

1

START_HOUR

Starting hour of Scheduled task. Must contain two digits

Numeric

00

START_MIN

Starting minute of Scheduled task. Must contain two digits

Numeric

00

SCHED_USER

Scheduler will run task as it was started by this user. Add domain if needed

String

-

SCHED_PW

Scheduler user’s password

String

-

 

How to create Windows Scheduled Task manually in Windows Server

 

AD Connector should be added to Windows Scheduled tasks. This can be done in Scheduled Tasks menu.

  1. Open Scheduled Tasks menu (Start Menu -> All Programs -> Accessories -> System Tool -> Scheduled Tasks)

  2. Double click Add Scheduled Task icon

  3. Click Next button

  4. Click Browse button to find ad_connector.exe

  5. Browse ad_connector.exe (by default, it is in C:\Miradore\Connectors\AD directory)

  6. Select ”r;Perform this task: Daily” radio button

  7. Click Next

  8. Set Start Time, for example 1:00. This is the time when AD Connector is run

  9. Check that ”r;Perform this task: Every Day” is selected

  10. Click Next

  11. Set user name and password of a user which will run AD Connector

  12. Click Next

  13. If you want to give configurations as startup parameters, check ”r;Open advanced properties for this task when I click Finish” checkbox

  14. Click Finish

  15. If you opened advanced properties and want to set configurations as startup parameters, add following to the end of Run text field: -s server_host_name -i server_instance name, where server_host_name is name of your Miradore HTTP server and server_instance_name is name of your Miradore server instance. If your Miradore HTTP server uses different port than default (80), you have to add also -p server_port parameter. So, Run text field could look like the following: ”r;C:\Miradore\Connectors\AD\ad_connector.exe -s dcm00010 -i Miradore -p 80”. Check that all text is between quotation marks if they are on the text field

  16. Click OK

 

See also

Mapping user's department from Microsoft AD to corresponding organization in Miradore

Network settings for connectors

Connector authorization

System settings for connectors

AD connector item

AD connector item attributes