From 035785705967ca55e9392c31c01b7bce0a92ae82 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 18 Oct 2006 14:52:34 +0000 Subject: Create stats. in magic dns git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@218 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/ldap2bind | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') diff --git a/bin/ldap2bind b/bin/ldap2bind index 139a4b0..c055921 100755 --- a/bin/ldap2bind +++ b/bin/ldap2bind @@ -180,6 +180,16 @@ magicItems.each { |m| setAs(vhostalias, m['tnHost'], m['dn'][0]) } end + property = {} + if m['tnWebVHostProperties'] + m['tnWebVHostProperties'].each{ |prop| + (key, val) = prop.split('=', 2) + property[key] = val + } + end + unless property['stats'] == "no" + setAs("stats." + m['tnWebVHostServerName'], m['tnHost'], m['dn'][0]) + end when 'tnDNSrr' if m['tnDNSaRecord'] setAsDirect(m['tnDNSdomainname'], m['tnDNSaRecord'], m['dn'][0]) -- cgit v1.2.3