Category Archives: Guides

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 »

LDAP Search Filters

By | 2018-07-15

LDAP Search filters are fairly simple to learn and use. I am going to explain the filters in just enough depth so you can effectively use them. This guide is not going to be an exhaustive reference. If that is what you are looking for, then you want RFC 4515. LDAP Search filters start with… 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 Delete a Directory in Linux

By | 2018-06-28

There are a few ways you can delete a directory on Linux and UNIX systems. If you are using a desktop environment, you can probably right click on it in your file manager and select the appropriate option. If you are using the command line, you can use either the rm command, or the rmdir… Read More »

How To Find Broken Symbolic Links

By | 2018-06-27

Sometimes you may want to find and remove broken symbolic links from your systems. For example, OSSEC will complain if it finds broken symbolic links in directories it monitors. This guide should work on almost any Linux or UNIX like operating system. The following command will list broken symbolic links in the directory you specify.… Read More »