Monday , May 27 2024
Home - Domino Migrations - Using PowerShell to Connect to Domino NAB

Using PowerShell to Connect to Domino NAB

There are times where I need to compare Domino Address Books (NAB) to Active Directory.  Using PowerShell to connect to Domino NAB solves this with ease, although we have to use logon details with no authentication method.  A little strange but Domino accepts the ‘[System.DirectoryServices.AuthenticationTypes]::None’ fromPowerShell.

Changing DominoSrv01, Organisation Name, Username and Password for the environment.

Make a connection to the DirectoryServices Object

Using LDAP filter, select which objects to be returned. This example selects all Domino Users.

Defines the normal PowerShell search scope of all objects in subtree.

Perform the action to find all objects matching the $query.Filter

Will show the count of the objects as an example.

Once connected $Col can be used in all manner of analysis. Need to change example items to match LAB/Production environments.

This supports write access if the LDAP Server Document allows it and also Directory Assistance is fully supported.

Using ‘SET CONFIG LDAPDEBUG=1’ on the Domino Server running the LDAP also shows which address book views are being searched, and how, which can be helpful in understanding performance and configuration problems.

LDAP> *** Searching in database C:\Lotus\Domino\Data\names.nsf …
LDAP> Type of search: View Search
LDAP> … Searching entries for a filter ‘sn = Davis’ in ($LDAPS)
LDAP> GetSearchEntry State

Make sure the NAB is fully indexed!!!  Without this you not see any results.

Check Also

Exchange Server 2013

How to remove the SMTP Service from Windows 2012 R2

How to remove the SMTP Service from Windows 2012 R2… Had to install a SMTP gateway on …

Leave a Reply

Your email address will not be published. Required fields are marked *