Checkad is Nagios plugin. It checks for status of user account. It can also check accounts status of all members of given group.
Compile and install go binary.
go install checkadcheckad -h
checkad [command] -hcheckad disabled -u username
checkad disabled -u username1,username2
checkad expired -g GROUP-NAME -c 7 -w 14 -e "OU=Service Accounts"
checkad locked -g GROUP-NAME -n -v
Checkad is looking for a checkad.yaml file in several locations:
- Local directory
- Home directory
- /etc/checkad/checkad.yaml
- $GOPATH/checkad
host: ldap.example.com:389
insecureSkipVerify: true
startTLS: true
bindDN: user@domain
bindPW: password
userSearch:
baseDN: DC=example,DC=com
filter: (objectClass=person)
nameAttr: sAMAccountName
groupSearch:
baseDN: DC=example,DC=com
filter: (objectClass=group)
userAttr: member
nameAttr: name