resources/freerad-site-patcher.sed
author Dan Fuhry <dan@fuhry.us>
Tue, 08 Jan 2013 23:21:25 -0500
changeset 2 700d61d93b1b
parent 0 3906ca745819
permissions -rw-r--r--
Fix accidentally hardcoded ldap basedn

#!/bin/sed -rf
/^#\tldap/ {
	s/^#\tldap$/\tldap/
}

/Auth-Type LDAP/ {
	N
	N
	s/^#?(\s*)Auth-Type LDAP \{\
#?(\s*)ldap\
#?(\s*)\}/\1Auth-Type LDAP \{\
\2ldap\
\3\}/
}