for x in PasswdAttrs:
if x[1].has_key("dnsZoneEntry") == 0:
continue;
+
+ # If the account has no PGP key, do not write it
+ if x[1].has_key("keyFingerPrint") == 0:
+ continue;
try:
F.write("; %s\n"%(EmailAddress(x)));
for z in x[1]["dnsZoneEntry"]:
for x in PasswdAttrs:
if x[1].has_key("dnsZoneEntry") == 0:
continue;
+
+ # If the account has no PGP key, do not write it
+ if x[1].has_key("keyFingerPrint") == 0:
+ continue;
try:
for z in x[1]["dnsZoneEntry"]:
Split = string.split(string.lower(z));
if x[1].has_key("hostname") == 0:
continue;
Host = GetAttr(x,"hostname");
- Addr = socket.gethostbyname(Host);
- F.write(Addr + "\n");
+ try:
+ Addr = socket.gethostbyname(Host);
+ F.write(Addr + "\n");
+ except:
+ pass
# Oops, something unspeakable happened.
except:
Die(File,F,None);