Blob Blame History Raw
From 4c7656e6d140f199546347e87849a2d11cef4b60 Mon Sep 17 00:00:00 2001
From: Arthur de Jong <arthur@arthurdejong.org>
Date: Sat, 7 Dec 2013 22:04:30 +0000
Subject: increase password buffer size (thanks Bersl) (7140d21 from 0.9)

git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@2056 ef36b2f9-881f-0410-afb5-c4e39611909c
---
 AUTHORS        | 1 +
 nslcd/group.c  | 2 +-
 nslcd/passwd.c | 2 +-
 nslcd/shadow.c | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 65ee078..418c1a4 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -120,3 +120,4 @@ Matthew L. Dailey <matthew.l.dailey@dartmouth.edu>
 Chris Hiestand <chiestand@salk.edu>
 Jon Severinsson <jon@severinsson.net>
 John Sullivan <jsrhbz@kanargh.force9.co.uk>
+Bersl <bersl2@bersl2.info>
diff --git a/nslcd/group.c b/nslcd/group.c
index ebf52dd..dd72d8a 100644
--- a/nslcd/group.c
+++ b/nslcd/group.c
@@ -254,7 +254,7 @@ static int write_group(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname,
   gid_t gids[MAXGIDS_PER_ENTRY];
   int numgids;
   char *tmp;
-  char passbuffer[64];
+  char passbuffer[256];
   int rc;
   /* get group name (cn) */
   names=myldap_get_values(entry,attmap_group_cn);
diff --git a/nslcd/passwd.c b/nslcd/passwd.c
index bf05fac..e940268 100644
--- a/nslcd/passwd.c
+++ b/nslcd/passwd.c
@@ -464,7 +464,7 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser,
   char gecos[1024];
   char homedir[256];
   char shell[64];
-  char passbuffer[64];
+  char passbuffer[256];
   int i,j;
   /* get the usernames for this entry */
   usernames=myldap_get_values(entry,attmap_passwd_uid);
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
index f7dee7d..87ef1f2 100644
--- a/nslcd/shadow.c
+++ b/nslcd/shadow.c
@@ -294,7 +294,7 @@ static int write_shadow(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser)
   long expiredate;
   unsigned long flag;
   int i;
-  char passbuffer[64];
+  char passbuffer[256];
   /* get username */
   usernames=myldap_get_values(entry,attmap_shadow_uid);
   if ((usernames==NULL)||(usernames[0]==NULL))
-- 
cgit v1.2.1