s3-pdb_ads: set correct pdb field with the value from 'accountExpires' attribute.
authorGünther Deschner <gd@samba.org>
Mon, 13 Jul 2009 19:56:31 +0000 (21:56 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 13 Jul 2009 19:56:31 +0000 (21:56 +0200)
Guenther

source3/passdb/pdb_ads.c

index 4f7c21091578a09086cf93d408db8c903b5d4c1b..66fdff181f6a19cbeb71bbe0cbcbaf1e33679b6f 100644 (file)
@@ -203,7 +203,7 @@ static NTSTATUS pdb_ads_init_sam_from_priv(struct pdb_methods *m,
                pdb_set_pass_last_set_time(sam, tmp_time, PDB_SET);
        }
        if (pdb_ads_pull_time(entry, "accountExpires", &tmp_time)) {
-               pdb_set_pass_last_set_time(sam, tmp_time, PDB_SET);
+               pdb_set_kickoff_time(sam, tmp_time, PDB_SET);
        }
 
        str = tldap_talloc_single_attribute(entry, "displayName",