New submission from bjorn lofdahl <bjorn.lofd...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to