lists.arthurdejong.org
RSS feed

filter search limit

[Date Prev][Date Next] [Thread Prev][Thread Next]

filter search limit



On a configuration of nslcd where filter passwd exceed 1024 char I got the error :

Sep  7 10:58:11 mxclbo35ft nslcd[10782]: [ID 787371 daemon.warning] [002c0c] <passwd="sshd"> nslcd_passwd_byname(): filter buffer too small


After a day of trouble I can get to extend this limit by increase filter buffer from 1024 to a more comfortable 4096 :)

--- nss-pam-ldapd-0.8.10/nslcd/passwd.c Fri Sep  7 15:57:25 2012
+++ nss-pam-ldapd-0.8.9/nslcd/passwd.c  Sun May 20 21:39:35 2012
@@ -342,7 +342,7 @@
   const char *base;
   int i;
   static const char *attrs[3];
-  char filter[4096];
+  char filter[1024];
   /* if it isn't a valid username, just bail out now */
   if (!isvalidname(uid))
   {
@@ -587,7 +587,7 @@
 NSLCD_HANDLE_UID(
   passwd,byname,
   char name[256];
-  char filter[4096];
+  char filter[1024];
   READ_STRING(fp,name);
   log_setrequest("passwd=\"%s\"",name);
   if (!isvalidname(name)) {
@@ -603,7 +603,7 @@
 NSLCD_HANDLE_UID(
   passwd,byuid,
   uid_t uid;
-  char filter[4096];
+  char filter[1024];
   READ_TYPE(fp,uid,uid_t);
   log_setrequest("passwd=%d",(int)uid);
   if (uid<nslcd_cfg->ldc_nss_min_uid)

-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/