From: James Troup Date: Sat, 20 May 2006 23:53:30 +0000 (-0500) Subject: Fix case sensitivity for modern slapd. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94702d46b0f60328dc3efa06e514b1c05c433b27;p=dak Fix case sensitivity for modern slapd. --- diff --git a/dak/find_null_maintainers.py b/dak/find_null_maintainers.py index 3c85cc86..295c95d9 100755 --- a/dak/find_null_maintainers.py +++ b/dak/find_null_maintainers.py @@ -72,7 +72,7 @@ def main(): l.simple_bind_s("","") Attrs = l.search_s(LDAPDn, ldap.SCOPE_ONELEVEL, "(&(keyfingerprint=*)(gidnumber=%s))" % (Cnf["Import-Users-From-Passwd::ValidGID"]), - ["uid", "cn", "mn", "sn", "createtimestamp"]) + ["uid", "cn", "mn", "sn", "createTimestamp"]) sys.stderr.write("done. (%d seconds)]\n" % (int(time.time()-before))) @@ -105,7 +105,7 @@ SELECT DISTINCT u.uid FROM suite su, bin_associations ba, binaries b, fingerprin for i in Attrs: entry = i[1] uid = entry["uid"][0] - created = time.mktime(time.strptime(entry["createtimestamp"][0][:8], '%Y%m%d')) + created = time.mktime(time.strptime(entry["createTimestamp"][0][:8], '%Y%m%d')) diff = now - created # 31536000 is 1 year in seconds, i.e. 60 * 60 * 24 * 365 if diff < 31536000 / 2: