resources/freerad-site-patcher.sed
author Dan Fuhry <dan@fuhry.us>
Sat, 16 Feb 2013 19:02:51 -0500
changeset 6 3ac4e03f28b2
parent 0 3906ca745819
permissions -rw-r--r--
Fixed kerberos path again. Default Ubuntu installs do indeed use /var/lib/krb5kdc. Really should try to autodetect that.

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