# Call with nokey to generate a missing key report
# Call with noforward to generate a missing .forward report
-import string, re, time, ldap, getopt, sys;
+import re, time, ldap, getopt, sys;
from userdir_ldap import *;
def ShowDups(Attrs,Len):
print "Connecting to LDAP directory";
# Connect to the ldap server
-l = ldap.open(LDAPServer);
+l = connectLDAP()
l.simple_bind_s("","");
if arguments[0] == "nokey":