Can unlang do this?

Chris cjl at viptalk.net
Thu Apr 24 04:22:56 CEST 2008


Should I expect something like this to do the right thing?


ldap-localhost {
	server = "127.0.0.1"
	basedn = switch "%{Huntgroup-Name}" {
		case dsl {
			"ou=dsl,ou=radius,dc=viptalk,dc=net"
		}
		case {
			"ou=accounts,ou=viptalk,ou=net"
		}
	}
}

etc....

Basically, I want to set certain ldap variables based on the Huntgroup- 
Name.  Without defining a bunch of different ldap servers, that is.

Thanks.



More information about the Freeradius-Users mailing list