diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2014-05-04 12:57:10 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-05-04 12:57:31 +0200 |
commit | f9878913604c197a214b78f26782efd245237dda (patch) | |
tree | 9f031ceb6f64530b6babb6025b7c95de69ac21f2 | |
parent | 119cebf22916caacf31d8a3756740da682de7d6a (diff) |
Grow DN buffer size
The buffer size seems to be a problem in environments with long names or
environments with non-ASCII characters.
-rw-r--r-- | nslcd/common.h | 6 |
1 files 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 */ |