X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-emailmatcher;h=4d42d7782de1bb8b0e6ca4e163a35d58519f8910;hp=bae8fd9d6feeb1dcc3bb830cb1257d454a769957;hb=595923978a9ad55f4ec55b1aabef44683b111911;hpb=1aaf024407a8ac653bf10c28a043aff0a967e5df diff --git a/ud-emailmatcher b/ud-emailmatcher index bae8fd9..4d42d77 100755 --- a/ud-emailmatcher +++ b/ud-emailmatcher @@ -52,8 +52,7 @@ for x in arguments: Args = Args + GPGSearchOptions + [" 2> /dev/null"] Keys = os.popen(" ".join(Args),"r") -l = ldap.open(LDAPServer); -l.simple_bind_s("",""); +l = connectLDAP() # Fetch the key list and map to email address PasswdAttrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"keyfingerprint=*",\