|
|
602a75 |
From 4c7656e6d140f199546347e87849a2d11cef4b60 Mon Sep 17 00:00:00 2001
|
|
|
602a75 |
From: Arthur de Jong <arthur@arthurdejong.org>
|
|
|
602a75 |
Date: Sat, 7 Dec 2013 22:04:30 +0000
|
|
|
602a75 |
Subject: increase password buffer size (thanks Bersl) (7140d21 from 0.9)
|
|
|
602a75 |
|
|
|
602a75 |
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@2056 ef36b2f9-881f-0410-afb5-c4e39611909c
|
|
|
602a75 |
---
|
|
|
602a75 |
AUTHORS | 1 +
|
|
|
602a75 |
nslcd/group.c | 2 +-
|
|
|
602a75 |
nslcd/passwd.c | 2 +-
|
|
|
602a75 |
nslcd/shadow.c | 2 +-
|
|
|
602a75 |
4 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
602a75 |
|
|
|
602a75 |
diff --git a/AUTHORS b/AUTHORS
|
|
|
602a75 |
index 65ee078..418c1a4 100644
|
|
|
602a75 |
--- a/AUTHORS
|
|
|
602a75 |
+++ b/AUTHORS
|
|
|
602a75 |
@@ -120,3 +120,4 @@ Matthew L. Dailey <matthew.l.dailey@dartmouth.edu>
|
|
|
602a75 |
Chris Hiestand <chiestand@salk.edu>
|
|
|
602a75 |
Jon Severinsson <jon@severinsson.net>
|
|
|
602a75 |
John Sullivan <jsrhbz@kanargh.force9.co.uk>
|
|
|
602a75 |
+Bersl <bersl2@bersl2.info>
|
|
|
602a75 |
diff --git a/nslcd/group.c b/nslcd/group.c
|
|
|
602a75 |
index ebf52dd..dd72d8a 100644
|
|
|
602a75 |
--- a/nslcd/group.c
|
|
|
602a75 |
+++ b/nslcd/group.c
|
|
|
602a75 |
@@ -254,7 +254,7 @@ static int write_group(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname,
|
|
|
602a75 |
gid_t gids[MAXGIDS_PER_ENTRY];
|
|
|
602a75 |
int numgids;
|
|
|
602a75 |
char *tmp;
|
|
|
602a75 |
- char passbuffer[64];
|
|
|
602a75 |
+ char passbuffer[256];
|
|
|
602a75 |
int rc;
|
|
|
602a75 |
/* get group name (cn) */
|
|
|
602a75 |
names=myldap_get_values(entry,attmap_group_cn);
|
|
|
602a75 |
diff --git a/nslcd/passwd.c b/nslcd/passwd.c
|
|
|
602a75 |
index bf05fac..e940268 100644
|
|
|
602a75 |
--- a/nslcd/passwd.c
|
|
|
602a75 |
+++ b/nslcd/passwd.c
|
|
|
602a75 |
@@ -464,7 +464,7 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser,
|
|
|
602a75 |
char gecos[1024];
|
|
|
602a75 |
char homedir[256];
|
|
|
602a75 |
char shell[64];
|
|
|
602a75 |
- char passbuffer[64];
|
|
|
602a75 |
+ char passbuffer[256];
|
|
|
602a75 |
int i,j;
|
|
|
602a75 |
/* get the usernames for this entry */
|
|
|
602a75 |
usernames=myldap_get_values(entry,attmap_passwd_uid);
|
|
|
602a75 |
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
|
|
|
602a75 |
index f7dee7d..87ef1f2 100644
|
|
|
602a75 |
--- a/nslcd/shadow.c
|
|
|
602a75 |
+++ b/nslcd/shadow.c
|
|
|
602a75 |
@@ -294,7 +294,7 @@ static int write_shadow(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser)
|
|
|
602a75 |
long expiredate;
|
|
|
602a75 |
unsigned long flag;
|
|
|
602a75 |
int i;
|
|
|
602a75 |
- char passbuffer[64];
|
|
|
602a75 |
+ char passbuffer[256];
|
|
|
602a75 |
/* get username */
|
|
|
602a75 |
usernames=myldap_get_values(entry,attmap_shadow_uid);
|
|
|
602a75 |
if ((usernames==NULL)||(usernames[0]==NULL))
|
|
|
602a75 |
--
|
|
|
602a75 |
cgit v1.2.1
|
|
|
602a75 |
|