resources/freerad-site-patcher.sed
author Dan Fuhry <dan@fuhry.us>
Fri, 11 Jan 2013 05:41:41 -0500
changeset 4 2212b2ded8bf
parent 0 3906ca745819
permissions -rw-r--r--
Added OpenSSH public key support in LDAP

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