nss-pam-ldapd commit: r1763 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1763 - nss-pam-ldapd/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1763 - nss-pam-ldapd/nslcd
- Date: Fri, 14 Sep 2012 14:25:09 +0200 (CEST)
Author: arthur
Date: Fri Sep 14 14:25:09 2012
New Revision: 1763
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1763&view=revision
Log:
grow all search filter buffers to 4096 bytes (thanks flavio)
Modified:
nss-pam-ldapd/nslcd/alias.c
nss-pam-ldapd/nslcd/ether.c
nss-pam-ldapd/nslcd/group.c
nss-pam-ldapd/nslcd/host.c
nss-pam-ldapd/nslcd/netgroup.c
nss-pam-ldapd/nslcd/network.c
nss-pam-ldapd/nslcd/passwd.c
nss-pam-ldapd/nslcd/protocol.c
nss-pam-ldapd/nslcd/rpc.c
nss-pam-ldapd/nslcd/service.c
nss-pam-ldapd/nslcd/shadow.c
Modified: nss-pam-ldapd/nslcd/alias.c
==============================================================================
--- nss-pam-ldapd/nslcd/alias.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/alias.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -122,7 +122,7 @@
NSLCD_HANDLE(
alias,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("alias=\"%s\"",name);,
NSLCD_ACTION_ALIAS_BYNAME,
Modified: nss-pam-ldapd/nslcd/ether.c
==============================================================================
--- nss-pam-ldapd/nslcd/ether.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/ether.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -160,7 +160,7 @@
NSLCD_HANDLE(
ether,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("ether=\"%s\"",name);,
NSLCD_ACTION_ETHER_BYNAME,
@@ -172,7 +172,7 @@
ether,byether,
struct ether_addr addr;
char addrstr[20];
- char filter[1024];
+ char filter[4096];
READ_TYPE(fp,addr,uint8_t[6]);
if (ether_ntoa_r(&addr,addrstr)==NULL)
return -1;
Modified: nss-pam-ldapd/nslcd/group.c
==============================================================================
--- nss-pam-ldapd/nslcd/group.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/group.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -318,7 +318,7 @@
NSLCD_HANDLE(
group,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("group=\"%s\"",name);
if (!isvalidname(name)) {
@@ -333,7 +333,7 @@
NSLCD_HANDLE(
group,bygid,
gid_t gid;
- char filter[1024];
+ char filter[4096];
READ_TYPE(fp,gid,gid_t);
log_setrequest("group=%d",(int)gid);,
NSLCD_ACTION_GROUP_BYGID,
@@ -344,7 +344,7 @@
NSLCD_HANDLE(
group,bymember,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("group/member=\"%s\"",name);
if (!isvalidname(name))
Modified: nss-pam-ldapd/nslcd/host.c
==============================================================================
--- nss-pam-ldapd/nslcd/host.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/host.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -154,7 +154,7 @@
NSLCD_HANDLE(
host,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("host=\"%s\"",name);,
NSLCD_ACTION_HOST_BYNAME,
@@ -168,7 +168,7 @@
char addr[64];
int len=sizeof(addr);
char addrstr[64];
- char filter[1024];
+ char filter[4096];
READ_ADDRESS(fp,addr,len,af);
/* translate the address to a string */
if (inet_ntop(af,addr,addrstr,sizeof(addrstr))==NULL)
Modified: nss-pam-ldapd/nslcd/netgroup.c
==============================================================================
--- nss-pam-ldapd/nslcd/netgroup.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/netgroup.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -251,7 +251,7 @@
NSLCD_HANDLE(
netgroup,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("netgroup=\"%s\"",name);,
NSLCD_ACTION_NETGROUP_BYNAME,
Modified: nss-pam-ldapd/nslcd/network.c
==============================================================================
--- nss-pam-ldapd/nslcd/network.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/network.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -152,7 +152,7 @@
NSLCD_HANDLE(
network,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("network=\"%s\"",name);,
NSLCD_ACTION_NETWORK_BYNAME,
@@ -166,7 +166,7 @@
char addr[64];
int len=sizeof(addr);
char addrstr[64];
- char filter[1024];
+ char filter[4096];
READ_ADDRESS(fp,addr,len,af);
/* translate the address to a string */
if (inet_ntop(af,addr,addrstr,sizeof(addrstr))==NULL)
Modified: nss-pam-ldapd/nslcd/passwd.c
==============================================================================
--- nss-pam-ldapd/nslcd/passwd.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/passwd.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -342,7 +342,7 @@
const char *base;
int i;
static const char *attrs[3];
- char filter[1024];
+ char filter[4096];
/* 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[1024];
+ char filter[4096];
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[1024];
+ char filter[4096];
READ_TYPE(fp,uid,uid_t);
log_setrequest("passwd=%d",(int)uid);
if (uid<nslcd_cfg->ldc_nss_min_uid)
Modified: nss-pam-ldapd/nslcd/protocol.c
==============================================================================
--- nss-pam-ldapd/nslcd/protocol.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/protocol.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -172,7 +172,7 @@
NSLCD_HANDLE(
protocol,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("protocol=\"%s\"",name);,
NSLCD_ACTION_PROTOCOL_BYNAME,
@@ -183,7 +183,7 @@
NSLCD_HANDLE(
protocol,bynumber,
int protocol;
- char filter[1024];
+ char filter[4096];
READ_INT32(fp,protocol);
log_setrequest("protocol=%d",protocol);,
NSLCD_ACTION_PROTOCOL_BYNUMBER,
Modified: nss-pam-ldapd/nslcd/rpc.c
==============================================================================
--- nss-pam-ldapd/nslcd/rpc.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/rpc.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -172,7 +172,7 @@
NSLCD_HANDLE(
rpc,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("rpc=\"%s\"",name);,
NSLCD_ACTION_RPC_BYNAME,
@@ -183,7 +183,7 @@
NSLCD_HANDLE(
rpc,bynumber,
int number;
- char filter[1024];
+ char filter[4096];
READ_INT32(fp,number);
log_setrequest("rpc=%d",number);,
NSLCD_ACTION_RPC_BYNUMBER,
Modified: nss-pam-ldapd/nslcd/service.c
==============================================================================
--- nss-pam-ldapd/nslcd/service.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/service.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -215,7 +215,7 @@
service,byname,
char name[256];
char protocol[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
READ_STRING(fp,protocol);
log_setrequest("service=\"%s\"/%s",name,protocol);,
@@ -228,7 +228,7 @@
service,bynumber,
int number;
char protocol[256];
- char filter[1024];
+ char filter[4096];
READ_INT32(fp,number);
READ_STRING(fp,protocol);
log_setrequest("service=%d/%s",number,protocol);,
Modified: nss-pam-ldapd/nslcd/shadow.c
==============================================================================
--- nss-pam-ldapd/nslcd/shadow.c Fri Sep 14 14:23:56 2012 (r1762)
+++ nss-pam-ldapd/nslcd/shadow.c Fri Sep 14 14:25:09 2012 (r1763)
@@ -328,7 +328,7 @@
MYLDAP_SEARCH *search=NULL;
MYLDAP_ENTRY *entry=NULL;
const char *base;
- char filter[1024];
+ char filter[4096];
int i;
/* if it isn't a valid username, just bail out now */
if (!isvalidname(username))
@@ -360,7 +360,7 @@
NSLCD_HANDLE(
shadow,byname,
char name[256];
- char filter[1024];
+ char filter[4096];
READ_STRING(fp,name);
log_setrequest("shadow=\"%s\"",name);,
NSLCD_ACTION_SHADOW_BYNAME,
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1763 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project