From: joey <> Date: Sun, 23 Jan 2005 11:47:13 +0000 (+0000) Subject: Added optional support for -h host in connection with -f X-Git-Tag: debian_userdir-ldap_0-3-8~9 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=196d2a28e817e1b349799f393c46ca1d5c351a8b Added optional support for -h host in connection with -f --- 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])