From 196d2a28e817e1b349799f393c46ca1d5c351a8b Mon Sep 17 00:00:00 2001 From: joey <> Date: Sun, 23 Jan 2005 11:47:13 +0000 Subject: [PATCH] Added optional support for -h host in connection with -f --- ud-host | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ud-host b/ud-host index 956c046..c90b8e6 100755 --- a/ud-host +++ b/ud-host @@ -254,7 +254,10 @@ if ListMode == 1: Overview(hAttrs) sys.exit(0) elif FingerPrints == 1: - Attrs = l.search_s(HBaseDn,ldap.SCOPE_ONELEVEL,"host=*") + if Host is not None: + Attrs = l.search_s(HBaseDn,ldap.SCOPE_ONELEVEL,"host=" + Host) + else: + Attrs = l.search_s(HBaseDn,ldap.SCOPE_ONELEVEL,"host=*") hosts = [] for hAttrs in Attrs: hosts.append(hAttrs[1]['host'][0]) -- 2.20.1