| Summary: | [libc] [patch] nscd(8): nscache.c/nscachedcli.c - return error if string of /etc/group is long | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Andrey Zonov <andrey.zonov> |
| Component: | kern | Assignee: | Alan Somers <asomers> |
| Status: | Closed DUPLICATE | ||
| Severity: | Affects Only Me | CC: | asomers, trasz, vladimir.pushkar |
| Priority: | Normal | ||
| Version: | 7.1-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Andrey Zonov
2009-01-19 16:00:09 UTC
Responsible Changed From-To: freebsd-bugs->des nscd is mine for now For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped The similar error is with 11.1-RELEASE and groups from LDAP via nslcd.
# cat /etc/nsswitch.conf | grep ^group
group: cache files ldap
Without nscd:
# getent group | wc -l
1857
With nscd (1st run):
# getent group | wc -l
1857
With nscd (2nd run):
# getent group | wc -l
1891
nscd output:
# nscd -t -n -s
M1 from main: request agents registered successfully
M2 from cache: cache was successfully initialized
M2 from runtime environment: using socket /var/run/nscd
M2 from runtime environment: successfully initialized
M1 from main: working in single-threaded mode
E3 from on_mp_read_session_read_response_write1: write failed
E3 from on_mp_read_session_read_response_write1: write failed
Local groups appears twice in output after nscd errors:
# diff -u /tmp/nscd.off /tmp/nscd.on
--- /tmp/nscd.off 2018-02-13 20:48:31.812740000 +0200
+++ /tmp/nscd.on 2018-02-13 20:46:11.192560000 +0200
@@ -32,6 +32,40 @@
nogroup:*:65533
nobody:*:65534
nslcd:*:928
+wheel:*:0:root
+daemon:*:1
+kmem:*:2
+sys:*:3
+tty:*:4
+operator:*:5:root
+mail:*:6
+bin:*:7
+news:*:8
+man:*:9
+games:*:13
+ftp:*:14
+staff:*:20
+sshd:*:22
+smmsp:*:25
+mailnull:*:26
+guest:*:31
+video:*:44
+bind:*:53
+unbound:*:59
+proxy:*:62
+authpf:*:63
+_pflogd:*:64
+_dhcp:*:65
+uucp:*:66
+dialer:*:68
+network:*:69
+audit:*:77
+www:*:80
+_ypldap:*:160
+hast:*:845
+nogroup:*:65533
+nobody:*:65534
+nslcd:*:928
recovery:*:2868
I'm seeing this too, on 11.4-RELEASE, with this in nswitch.conf: group: files cache ldap Is this still an issue on current releases? I can't reproduce it on 14.0-CURRENT or 13.0-RELEASE. Looks like it was fixed somehow as I can't reproduce it anymore in my environment:
root@fbsd13:/etc # /etc/rc.d/nscd stop
Stopping nscd.
Waiting for PIDS: 52168.
root@fbsd13:/etc # getent group | wc -l
1872
root@fbsd13:/etc # /etc/rc.d/nscd start
Starting nscd.
root@fbsd13:/etc # getent group | wc -l
1872
root@fbsd13:/etc # getent group | wc -l
1872
root@fbsd13:/etc # uname -a
FreeBSD fbsd13 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Since neither of us can reproduce this bug, I'm going to tentatively declare it a duplicate of 248932 and close it. Anybody please feel free to reopen if you can reproduce on 13.1, 12.3, or a later release. *** This bug has been marked as a duplicate of bug 248932 *** |