Tag Archives: OpenLDAP

Managing OpenLDAP

By | 2018-07-21

This guide explains how to use the OpenLDAP client tools to manage an OpenLDAP directory server. I am assuming you have root access to your directory server. Common Options There are some options common to all of the OpenLDAP tools used in this guide. I recommend creating shell aliases for the ldap commands with these… Read More »

Search Active Directory with Ldapsearch

By | 2018-07-04

It is fairly common to have Linux or UNIX machines on a network with a Microsoft Active Directory (AD) domain. There may be times when you want or need to search Active Directory with ldapsearch. Quick Example Using TLS ldapsearch -H ldaps://dc.example.com -x -W -D “user@example.com” \    -b “dc=example,dc=com” “(sAMAccountName=user)” Without TLS ldapsearch -H… Read More »

How To Backup and Restore OpenLDAP

By | 2016-10-04

This guide assumes familiarity with UNIX like operating systems, X.500, LDAP and OpenLDAP. The Directory Backups section of the OpenLDAP 2.4 Administrator’s Guide, as of September 28, 2016, doesn’t have any kind of restoration procedures. This guide will help you do it. Backup OpenLDAP There are two methods for backing up OpenLDAP. One is to… Read More »