--- passdb/pdb_ldap.c.orig 2006-09-08 11:59:52.000000000 -0400 +++ passdb/pdb_ldap.c 2006-09-08 11:53:40.000000000 -0400 @@ -455,7 +455,11 @@ temp)) return (time_t) 0; - strptime(temp, "%Y%m%d%H%M%SZ", &tm); + if ( !strptime(temp, "%Y%m%d%H%M%SZ", &tm)) { + DEBUG(0,("ldapsam_get_entry_timestamp: strptime failed on: %s\n", + (char*)temp)); + return (time_t) 0; + } tzset(); return timegm(&tm); }