Title: nis module not supporting group aliases
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: loewis Nosy List: ernstp, jcea, loewis, terry.reedy
Priority: normal Keywords:

Created on 2008-02-20 12:30 by ernstp, last changed 2019-04-26 20:34 by BreamoreBoy.

Messages (5)
msg62591 - (view) Author: Ernst Persson (ernstp) Date: 2008-02-20 12:30
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:

This is supported by the OS, grp.getgrall(), etc, but"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.
msg62598 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-02-20 20:19
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.
msg62599 - (view) Author: Ernst Persson (ernstp) Date: 2008-02-20 20:28
Here's another description of the issue:
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.
msg107424 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-06-09 21:57
Is this really a bug (discrepancy between doc and behavior) or a feature request?
msg227769 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-09-28 17:15
I think this should be an enhancement request.
Date User Action Args
2019-04-26 20:34:57BreamoreBoysetnosy: - BreamoreBoy
2014-09-28 17:15:39BreamoreBoysetversions: + Python 3.5, - Python 3.1, Python 2.7, Python 3.2
nosy: + BreamoreBoy, jcea

messages: + msg227769

components: + Library (Lib), - None
type: behavior -> enhancement
2010-06-09 21:57:03terry.reedysetnosy: + terry.reedy

messages: + msg107424
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5
2008-03-19 23:49:20jafosetpriority: normal
assignee: loewis
2008-02-20 20:28:01ernstpsetmessages: + msg62599
2008-02-20 20:19:08loewissetnosy: + loewis
messages: + msg62598
2008-02-20 12:30:31ernstpcreate