Can unlang do this?



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.




This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.