Skip to content

Instantly share code, notes, and snippets.

View jiscfoo's full-sized avatar

Matthew Slowe jiscfoo

View GitHub Profile
@jiscfoo
jiscfoo / ldap-search-freeradius.sh
Last active March 27, 2019 11:23 — forked from jagland/ldap-search-freeradius.sh
ldapsearch based on FreeRADIUS configuration
#!/bin/bash
#
# ldapsearch based on FreeRADIUS configuration
# Known issue(s) - Checks only the first LDAP server, doesn't read the configuration file properly, i.e. it's just greping for what might work...
if [ -z "$1" ]; then
FILE=/etc/freeradius/mods-enabled/ldap
else
FILE=$1
fi