diff --git a/conditional_ldap.c b/conditional_ldap.c
index 730ff7a4d278b4152750f8a85149d3691e1adcc6..0bdcd969c93e48b1156ff2c967bc604b6cb23fe2 100644
--- a/conditional_ldap.c
+++ b/conditional_ldap.c
@@ -82,6 +82,7 @@ static int active()
       LOADSYM(getspent_r);
       LOADSYM(getspnam_r);
 #undef LOADSYM
+      ldap.mtime = st.st_mtime;
       result = 1;
     }