Skip to content

Watch an LDAP directory and notify when user records are added or removed

Notifications You must be signed in to change notification settings

firebus/InactiveDirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InactiveDirectory

InactiveDirectory is a script plus a datastore that watches an LDAP directory and sends notifications when user records are added or removed.

Requirements

You'll need PHP and sqlite3. On ubuntu 12.04 I found I needed to install php5-ldap, php5-sqlite, php5-curl

Installation

  • Copy config.ini.example to config.ini
  • Edit config.ini. Most of the options are self-explanatory (I hope), but some maybe not:
    • ldap.ldap_filter: an ldap filter that should return a list of users. It can be as simple as an OU or objectCategory, or can be a complicated filter designed to exclude invalid records
    • ldap.ldap_skip_ou_list: A comma-separated (sorry) list of OUs that should be excluded from the records returned by the filter. Don't include "OU=". We'll search DNs returned for OUs with these names, and will ignore any that match.

Notification

  • To stdout
  • Optionally to a hipchat room

About

Watch an LDAP directory and notify when user records are added or removed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages