--- passdb/pdb_ldap.c.orig 2007-03-15 14:27:25.000000000 -0400 +++ passdb/pdb_ldap.c 2007-03-15 14:28:53.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(2,("ldapsam_get_entry_timestamp: strptime failed on: %s\n", + (char*)temp)); + return (time_t) 0; + } tzset(); return timegm(&tm); }