return None;
# lines can now be prepended with "allowed_hosts=machine1,machine2 "
+ machines = []
if Str.startswith("allowed_hosts="):
Str = Str.split("=", 1)[1]
if ' ' not in Str:
if (result != 0):
raise UDExecuteError, "ssh-keygen -l invocation failed!\n%s\n" % (output)
+ # format the string again for ldap:
+ if machines:
+ Str = "allowed_hosts=%s %s" % (",".join(machines), Str)
+
# Head
Date = time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime(time.time()))