resources/freerad-site-patcher.sed
author Dan Fuhry <dan@fuhry.us>
Sat, 16 Feb 2013 20:47:45 -0500
changeset 7 faf6f7941e8f
parent 0 3906ca745819
permissions -rw-r--r--
Enhancements to User CP - handle attribute deletion/mod more gracefully

#!/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\}/
}