From: joey <> Date: Sat, 11 Aug 2007 09:36:42 +0000 (+0000) Subject: Patch by aba: Import the host base dn from the configuration file, X-Git-Tag: debian_userdir-ldap_0-3-14~7 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=b16d5723e935432b9a26699a1c73618e1c35acf4 Patch by aba: Import the host base dn from the configuration file, thus make ud-host useable outside of .debian.org as well --- diff --git a/ud-host b/ud-host index 5ab2617..1183aa5 100755 --- a/ud-host +++ b/ud-host @@ -242,7 +242,7 @@ else: l = ldap.open(LDAPServer); l.simple_bind_s("","") -HBaseDn = "ou=hosts,dc=debian,dc=org"; +HBaseDn = HostBaseDn if ListMode == 1: Attrs = l.search_s(HBaseDn,ldap.SCOPE_ONELEVEL,"host=*")