Skip to content

A simple way to query LDAP or Active Directory from Linux without all the hassle. Install ldap-tools from your repo, to provide the pre-requisites. ( Ubuntu: yum -y install ldap-tools or Centos: apt-get -y install ldap-tools )

Notifications You must be signed in to change notification settings

jonlocke/adsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

adsearch

This little script enables you to do a simple ldap (AD) search from linux without the faf of installing ldap-blah libs etc and openssl blah.\

How To Install:

$ git clone https://github.com/jonlocke/adsearch

$ cd adsearch

CENTOS/RHEL:

$ yum -y install ldap-tools

UBUNTU/Debian:

$ apt-get -y install ldap-tools

Examples:

$ ./adsearch.sh '(objectclass=group)' cn: |This returns the cn attribute of a group

$ ./adsearch.sh '(objectclass=user)' cn: |This returns the cn attribute of a user

$ ./adsearch.sh 'cn= jonathan locke' memberof |This returns the group membership for cn=jonathan locke

About

A simple way to query LDAP or Active Directory from Linux without all the hassle. Install ldap-tools from your repo, to provide the pre-requisites. ( Ubuntu: yum -y install ldap-tools or Centos: apt-get -y install ldap-tools )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages