X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-ldapshow;fp=ud-ldapshow;h=6447283dfea96413a4276ca4bf6a4cce392f5f76;hp=2b815490d4b446ea1552e753c02b6550ed53a6f8;hb=b006d85551df4a7116824f6430b67e563ebac587;hpb=fa73c960b402b9fdf77b8d7db5653231dbf8a887 diff --git a/ud-ldapshow b/ud-ldapshow index 2b81549..6447283 100755 --- a/ud-ldapshow +++ b/ud-ldapshow @@ -95,6 +95,14 @@ if arguments[0] == "echelon": PGPCount = PGPCount + 1; print "Echelon has seen",Count,"developers, with",PGPCount,"PGP confirms as of",time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime(time.time())); +if arguments[0] == "missing": + Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,\ + "(&(!(|(activity-pgp=*)(activity-from=*)))(&(keyfingerprint=*)(gidnumber=800)))",\ + ["uid","cn","sn","mn"]); + Attrs.sort(); + for x in Attrs: + print EmailAddress(x); + if arguments[0] == "keystat": Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"keyfingerprint=*",\ ["keyfingerprint"]);