Friday , July 19 2024
Home - Tag Archives: Ldap

Tag Archives: Ldap

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. [crayon-6699cf07e6c39206017969/] Changing DominoSrv01, Organisation Name, Username and Password for the environment. [crayon-6699cf07e6c42310466849/] Make a connection …

Read More »

Updating Active Directory User Objects from CSV files

Sometimes it’s better to get updates for Active Directory objects supplied in the form of a Excel spreadsheet.  Using the information you can then run the following script to update objects with information contain the rows/columns of a spreadsheet (CSV file).  What makes this a little simplier the column headers are the AD properties to be udpated. Another issue covered in …

Read More »

Active Directory Password Last Changed Export Tool

VBScript program to output all users in the domain with the date and time that each last changed their password. If passwords expire for all users, this program can be used to identify old unused accounts that can be disabled and eventually deleted. This program uses the pwdLastSet attribute to determine when the password was last set. Because this attribute …

Read More »

Checking LDAP uSNChanged (integer8 value) in VB .net

Having problems finding a way to use integer8 values from Active Directory ldap in a Application, I thought i’ll show a simple function written to check the AD uSNChanged. Just call the function with the DN of the object to check. Must include: [vb] Imports System.Reflection [/vb] Function code: [vbnet]Private Function _ADObjectUsn(ByVal xDN As String) Dim xLdapConnection As New …

Read More »

PHP LDAPS Not Bind/Connecting

Had a few problems with coding a simple Activie Directory password reset web form.  It appears when coding in PHP the OpenLdap doesn’t trust the connecting Domain Controller’s SSL Certificate issuing CA. This can be fixed with PHP on either Apache or IIS with a simple file: Create a file named ‘ldap.conf’ in the directory ‘c:\openldap\sysconf’.  In the file the first line …

Read More »