This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nis/15553] limits on xdr_ requests are too restrictive


http://sourceware.org/bugzilla/show_bug.cgi?id=15553

--- Comment #1 from Patsy Franklin <pfrankli at redhat dot com> ---
A recent patch to set reasonable limits on xdr requests proved to be too
restictive for some users, potentially causing ypcat to give rpc errors.

How reproducible:
Always

Steps to reproduce:

1. add a very long group record into /etc/group (longer than 1024B), e.g.:
foo:x:10000:bar1,bar2,bar3, ... ,bar999

2. add --no-limit-check option to makedbm command in /var/yp/Makefile, since
otherwise lines longer than 1024B are ignored, but we need to add them to map
file:

-DBLOAD = $(YPBINDIR)/makedbm -c -m `$(YPBINDIR)/yphelper --hostname`
+DBLOAD = $(YPBINDIR)/makedbm --no-limit-check -c -m `$(YPBINDIR)/yphelper
--hostname`

3. rebuild maps:
# cd /var/yp
# make

4. # systemctl restart ypserv ypbind (while ypbind is configured to use ypserv
running on localhost)

5. # ypcat group.byname

Actual results:
...
yp_all: clnt_call: RPC: Can't decode result
No such map group.byname. Reason: RPC failure on NIS operation

Some groups are returned but the list is cut short with the error message above

Expected results:
All groups are returned.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]