nss-pam-ldapd branch master updated. 0.9.2-29-g2181cca
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.2-29-g2181cca
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.2-29-g2181cca
- Date: Sat, 25 Jan 2014 17:47:07 +0100 (CET)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via 2181ccadc22f3e670b34bc531e7e8a7d33731a95 (commit)
from c6c317ec9efb8190bdc1834091c4761b60637e7f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=2181ccadc22f3e670b34bc531e7e8a7d33731a95
commit 2181ccadc22f3e670b34bc531e7e8a7d33731a95
Author: joshuashire <joshuashire@hotmail.com>
Date: Fri Jan 24 12:29:21 2014 -0700
Update shadow.c to resolve pwdLastSet issue
We read the date into the buffer to the specified length to get it to
the Unix time (i.e. seconds) from its AD value of nanoseconds, then
convert it to days for shadow. If we use date rather than buffer we end
up trying to convert the original nanosecond value.
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
index a70efdc..b5cf021 100644
--- a/nslcd/shadow.c
+++ b/nslcd/shadow.c
@@ -132,7 +132,7 @@ static long to_date(const char *dn, const char *date, const
char *attr)
strncpy(buffer, date, l);
buffer[l] = '\0';
errno = 0;
- value = strtol(date, &tmp, 10);
+ value = strtol(buffer, &tmp, 10);
if ((*date == '\0') || (*tmp != '\0'))
{
log_log(LOG_WARNING, "%s: %s: non-numeric", dn, attr);
-----------------------------------------------------------------------
Summary of changes:
nslcd/shadow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.9.2-29-g2181cca,
Commits of the nss-pam-ldapd project