diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-03-08 20:19:48 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-09 15:29:37 -0400 |
commit | 5ea221d5325a2b60ec872a3864953178c8b593a0 (patch) | |
tree | 5a67d8702ec6921b8a390c69e3235a949ec6900a /server/responder/pam | |
parent | 10038e62d8ea6ee570346f98819e1994e70d47a5 (diff) | |
download | sssd-5ea221d5325a2b60ec872a3864953178c8b593a0.tar.gz sssd-5ea221d5325a2b60ec872a3864953178c8b593a0.tar.bz2 sssd-5ea221d5325a2b60ec872a3864953178c8b593a0.zip |
Do not duplicate attribute names macros.
Also shorten names oh other user attributes.
Diffstat (limited to 'server/responder/pam')
-rw-r--r-- | server/responder/pam/pam_LOCAL_domain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/responder/pam/pam_LOCAL_domain.c b/server/responder/pam/pam_LOCAL_domain.c index b1a459b9..90abf63e 100644 --- a/server/responder/pam/pam_LOCAL_domain.c +++ b/server/responder/pam/pam_LOCAL_domain.c @@ -150,7 +150,7 @@ static void do_successful_login(struct LOCAL_request *lreq) lreq->error, ENOMEM, done); ret = sysdb_attrs_add_long(lreq->mod_attrs, - SYSDB_USER_ATTR_LAST_LOGIN, (long)time(NULL)); + SYSDB_LAST_LOGIN, (long)time(NULL)); NEQ_CHECK_OR_JUMP(ret, EOK, ("sysdb_attrs_add_long failed.\n"), lreq->error, ret, done); @@ -388,7 +388,7 @@ int LOCAL_pam_handler(struct cli_ctx *cctx, pam_dp_callback_t callback, static const char *attrs[] = {SYSDB_NAME, SYSDB_PWD, SYSDB_DISABLED, - SYSDB_USER_ATTR_LAST_LOGIN, + SYSDB_LAST_LOGIN, "lastPasswordChange", "accountExpires", "failedLoginAttempts", |