]> err.no Git - dak/commitdiff
Fix case sensitivity for modern slapd.
authorJames Troup <james@nocrew.org>
Sat, 20 May 2006 23:53:30 +0000 (18:53 -0500)
committerJames Troup <james@nocrew.org>
Sat, 20 May 2006 23:53:30 +0000 (18:53 -0500)
dak/find_null_maintainers.py

index 3c85cc86f59f3f022435a2de03f506185538f5fc..295c95d94eb3de97c2efc8cace7ebcf587fde0cc 100755 (executable)
@@ -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: