1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

s3/ldap: use monotonic clock for timeouts in smbldap

tevent would need monotonic clock features to make also smbldap's idle handling
aware of backward clock jumps. Other areas in smbldap are clock jump save now.
This commit is contained in:
Björn Jacke
2010-09-07 01:04:10 +02:00
parent 3c58fb27b0
commit 1b5cdd76b7
2 changed files with 26 additions and 20 deletions

View File

@ -153,7 +153,7 @@ int smbldap_modify(struct smbldap_state *ldap_state,
struct smbldap_state {
LDAP *ldap_struct;
pid_t pid;
time_t last_ping;
time_t last_ping; /* monotonic */
/* retrive-once info */
const char *uri;
@ -166,11 +166,11 @@ struct smbldap_state {
unsigned int num_failures;
time_t last_use;
time_t last_use; /* monotonic */
struct event_context *event_context;
struct timed_event *idle_event;
struct timeval last_rebind;
struct timeval last_rebind; /* monotonic */
};
/* struct used by both pdb_ldap.c and pdb_nds.c */