This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: NIS module cant handle multiple NIS map entries for the same GID
Type: behavior Stage: resolved
Components: Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: bjorn.lofdahl, iritkatriel
Priority: normal Keywords:

Created on 2011-07-06 12:48 by bjorn.lofdahl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg139934 - (view) Author: bjorn lofdahl (bjorn.lofdahl) Date: 2011-07-06 12:48
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.
msg221462 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-24 14:50
@bjorn terribly sorry for the delay here :-(  Would you be able to supply a patch for this, including doc and unittest changes as appropriate?
msg415080 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-03-13 19:04
nis is deprecated as per PEP 594, so there won't be further enhancements to it.
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56715
2022-03-13 19:04:45iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg415080

resolution: wont fix
stage: resolved
2019-03-15 23:42:49BreamoreBoysetnosy: - BreamoreBoy
2014-06-24 14:50:47BreamoreBoysetnosy: + BreamoreBoy

messages: + msg221462
versions: + Python 3.5, - Python 2.6, Python 3.1, Python 3.2, Python 3.3
2011-07-07 13:29:14bjorn.lofdahlsetversions: + Python 2.6, Python 2.7
2011-07-07 13:28:56bjorn.lofdahlsetversions: + Python 3.1, Python 3.2, Python 3.3, Python 3.4, - Python 2.6, Python 2.7
2011-07-06 12:48:57bjorn.lofdahlcreate