summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-10-18 14:52:34 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-10-18 14:52:34 +0000
commit035785705967ca55e9392c31c01b7bce0a92ae82 (patch)
tree1f11697c46e22a198cf76912baa7e5d1c2581bcd /bin
parentc7437b7a31cb238fc46e42933a5ac246f270f8f2 (diff)
Create stats. in magic dns
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@218 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ldap2bind10
1 files changed, 10 insertions, 0 deletions
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])