From 94702d46b0f60328dc3efa06e514b1c05c433b27 Mon Sep 17 00:00:00 2001 From: James Troup Date: Sat, 20 May 2006 18:53:30 -0500 Subject: [PATCH] Fix case sensitivity for modern slapd. --- dak/find_null_maintainers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5