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 not supporting group aliases #46401

Closed
ernstp mannequin opened this issue Feb 20, 2008 · 6 comments
Closed

nis module not supporting group aliases #46401

ernstp mannequin opened this issue Feb 20, 2008 · 6 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ernstp
Copy link
Mannequin

ernstp mannequin commented Feb 20, 2008

BPO 2148
Nosy @loewis, @terryjreedy, @jcea, @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 = 'https://github.com/loewis'
closed_at = <Date 2022-03-13.19:02:26.259>
created_at = <Date 2008-02-20.12:30:31.053>
labels = ['type-feature', 'library']
title = 'nis module not supporting group aliases'
updated_at = <Date 2022-03-13.19:02:26.259>
user = 'https://bugs.python.org/ernstp'

bugs.python.org fields:

activity = <Date 2022-03-13.19:02:26.259>
actor = 'iritkatriel'
assignee = 'loewis'
closed = True
closed_date = <Date 2022-03-13.19:02:26.259>
closer = 'iritkatriel'
components = ['Library (Lib)']
creation = <Date 2008-02-20.12:30:31.053>
creator = 'ernstp'
dependencies = []
files = []
hgrepos = []
issue_num = 2148
keywords = []
message_count = 6.0
messages = ['62591', '62598', '62599', '107424', '227769', '415079']
nosy_count = 5.0
nosy_names = ['loewis', 'terry.reedy', 'jcea', 'ernstp', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue2148'
versions = ['Python 3.5']

@ernstp
Copy link
Mannequin Author

ernstp mannequin commented Feb 20, 2008

Nis (applications?) has a line limit in the "group" entry, so you can't
have very long lines (=many users)
The way to solve this is to put aliases in the group map, like this:
MY_GROUP::123:user1,user2
MY_GROUP::123:user3,user4

This is supported by the OS, grp.getgrall(), etc, but
nis.cat("group")
only puts the last entry into the dict it returns.

I guess the best thing if you want to return a dict is to merge the
members if both the name and gid matches.

@ernstp ernstp mannequin added the type-bug An unexpected behavior, bug, or error label Feb 20, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Feb 20, 2008

Can you dig up some specification for that behaviour? The more official,
the better.

Otherwise, I'd rather add an option to return a list instead of a dict;
people wanting that semantics could then do their own processing.

@ernstp
Copy link
Mannequin Author

ernstp mannequin commented Feb 20, 2008

Here's another description of the issue:
http://www.tldp.org/HOWTO/NIS-HOWTO/maps.html#AEN548
There's a suggestion to have different group-names but same gids, but
automatic splitters of nis-groups doesn't allways do this.

Right, grp.getgrall() returns a list, that's why it works.

@jafo jafo mannequin assigned loewis Mar 19, 2008
@terryjreedy
Copy link
Member

Is this really a bug (discrepancy between nis.cat doc and behavior) or a feature request?

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Sep 28, 2014

I think this should be an enhancement request.

@BreamoreBoy BreamoreBoy mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement and removed type-bug An unexpected behavior, bug, or error labels Sep 28, 2014
@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
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants