Issue 12506: NIS module cant handle multiple NIS map entries for the same GID (original) (raw)
Issue12506
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) * ![]() |
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:19 | admin | set | github: 56715 |
2022-03-13 19:04:45 | iritkatriel | set | status: open -> closednosy: + iritkatrielmessages: + resolution: wont fixstage: resolved |
2019-03-15 23:42:49 | BreamoreBoy | set | nosy: - BreamoreBoy |
2014-06-24 14:50:47 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + versions: + Python 3.5, - Python 2.6, Python 3.1, Python 3.2, Python 3.3 |
2011-07-07 13:29:14 | bjorn.lofdahl | set | versions: + Python 2.6, Python 2.7 |
2011-07-07 13:28:56 | bjorn.lofdahl | set | versions: + Python 3.1, Python 3.2, Python 3.3, Python 3.4, - Python 2.6, Python 2.7 |
2011-07-06 12:48:57 | bjorn.lofdahl | create |