Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIS module cant handle multiple NIS map entries for the same GID #56715

Closed
bjornlofdahl mannequin opened this issue Jul 6, 2011 · 3 comments
Closed

NIS module cant handle multiple NIS map entries for the same GID #56715

bjornlofdahl mannequin opened this issue Jul 6, 2011 · 3 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@bjornlofdahl
Copy link
Mannequin

bjornlofdahl mannequin commented Jul 6, 2011

BPO 12506
Nosy @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2022-03-13.19:04:45.369>
created_at = <Date 2011-07-06.12:48:57.417>
labels = ['type-bug']
title = 'NIS module cant handle multiple NIS map entries for the same GID'
updated_at = <Date 2022-03-13.19:04:45.368>
user = 'https://bugs.python.org/bjornlofdahl'

bugs.python.org fields:

activity = <Date 2022-03-13.19:04:45.368>
actor = 'iritkatriel'
assignee = 'none'
closed = True
closed_date = <Date 2022-03-13.19:04:45.369>
closer = 'iritkatriel'
components = []
creation = <Date 2011-07-06.12:48:57.417>
creator = 'bjorn.lofdahl'
dependencies = []
files = []
hgrepos = []
issue_num = 12506
keywords = []
message_count = 3.0
messages = ['139934', '221462', '415080']
nosy_count = 2.0
nosy_names = ['bjorn.lofdahl', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12506'
versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

@bjornlofdahl
Copy link
Mannequin Author

bjornlofdahl mannequin commented Jul 6, 2011

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.

@bjornlofdahl bjornlofdahl mannequin added the type-bug An unexpected behavior, bug, or error label Jul 6, 2011
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 24, 2014

@bjorn terribly sorry for the delay here :-( Would you be able to supply a patch for this, including doc and unittest changes as appropriate?

@iritkatriel
Copy link
Member

nis is deprecated as per PEP-594, so there won't be further enhancements to it.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant