projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the build dependency to WML since the WML part has been split off
[mirror/userdir-ldap.git]
/
ud-host
diff --git
a/ud-host
b/ud-host
index
956c046
..
c90b8e6
100755
(executable)
--- a/
ud-host
+++ b/
ud-host
@@
-254,7
+254,10
@@
if ListMode == 1:
Overview(hAttrs)
sys.exit(0)
elif FingerPrints == 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])
hosts = []
for hAttrs in Attrs:
hosts.append(hAttrs[1]['host'][0])