[issue12506] NIS module cant handle multiple NIS map entries for the same GID

bjorn lofdahl report at bugs.python.org
Wed Jul 6 14:48:57 CEST 2011


New submission from bjorn lofdahl <bjorn.lofdahl at gmail.com>:

I think i have found an issue with the module that is only visible on larger sites that are using multiple group entries for the same group in the NIS maps. This comes from the bug that NIS can only handle 1024 chars per line, so if a group has more members that exceeds 1024 chars, a new line is added with the same GID and NAME. yp tools handles this fine, it simply reports several "lines" for the same group. For ex:

> ypcat group | grep FOO | cut -d ':' -f 1-3
FOO:x:17776
FOO:x:17776
FOO:x:17776
FOO:x:17776
FOO:x:17776

when i do the same using the python NIS module it only gives me the users for one of the maps for this group. I guess the "correct" behavior from the module should be to concatenate/append all users from all the maps for each specific group.

----------
messages: 139934
nosy: bjorn.lofdahl
priority: normal
severity: normal
status: open
title: NIS module cant handle multiple NIS map entries for the same GID
type: behavior
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12506>
_______________________________________


More information about the Python-bugs-list mailing list