From f9878913604c197a214b78f26782efd245237dda Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 4 May 2014 12:57:10 +0200 Subject: Grow DN buffer size The buffer size seems to be a problem in environments with long names or environments with non-ASCII characters. --- nslcd/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nslcd/common.h b/nslcd/common.h index b6fcd72..e8b6924 100644 --- a/nslcd/common.h +++ b/nslcd/common.h @@ -3,7 +3,7 @@ This file is part of the nss-pam-ldapd library. Copyright (C) 2006 West Consulting - Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Arthur de Jong + Copyright (C) 2006-2014 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -164,8 +164,8 @@ void invalidator_do(enum ldap_map_selector map); #define BUFLEN_SAFENAME 300 /* escaped name */ #define BUFLEN_PASSWORD 128 /* passwords */ #define BUFLEN_PASSWORDHASH 256 /* passwords hashes */ -#define BUFLEN_DN 256 /* distinguished names */ -#define BUFLEN_SAFEDN 300 /* escapedd dn */ +#define BUFLEN_DN 512 /* distinguished names */ +#define BUFLEN_SAFEDN 600 /* escapedd dn */ #define BUFLEN_FILTER 4096 /* search filters */ #define BUFLEN_HOSTNAME (HOST_NAME_MAX + 1) /* host names (+ escaped) */ #define BUFLEN_MESSAGE 1024 /* message strings */ -- cgit v1.2.3