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

test_spwd fails on solaris using NIS users #73454

Closed
phantal mannequin opened this issue Jan 13, 2017 · 3 comments
Closed

test_spwd fails on solaris using NIS users #73454

phantal mannequin opened this issue Jan 13, 2017 · 3 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@phantal
Copy link
Mannequin

phantal mannequin commented Jan 13, 2017

BPO 29268

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 = None
created_at = <Date 2017-01-13.19:43:48.647>
labels = ['type-bug', 'tests']
title = 'test_spwd fails on solaris using NIS users'
updated_at = <Date 2017-01-13.19:43:48.647>
user = 'https://bugs.python.org/phantal'

bugs.python.org fields:

activity = <Date 2017-01-13.19:43:48.647>
actor = 'phantal'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2017-01-13.19:43:48.647>
creator = 'phantal'
dependencies = []
files = []
hgrepos = []
issue_num = 29268
keywords = []
message_count = 1.0
messages = ['285439']
nosy_count = 1.0
nosy_names = ['phantal']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue29268'
versions = ['Python 3.6']

@phantal
Copy link
Mannequin Author

phantal mannequin commented Jan 13, 2017

On all our solaris 10 machines when I run a simple test program it never reports a failure when calling getspnam:

   #include <shadow.h>
   #include <stdio.h>
   int main( int, char** ) {
     spwd *asdf = getspnam( "some_user" );
     if( NULL == sdf ) {
       perror( "getspnam" );
     }
     return 0;
   }

If I run the above program on our linux boxes it fails as expected, but on our solaris machines it produces the same information you'd see running "ypcat passwd | grep some_user".

I suspect either there's a bug in the solaris implementation of getpwnam() or perhaps there's a configuration issue on our solaris machines, though it's also possible this is just how it behaves in Solaris (at least with NIS).

As to whether anything should change for test_spwd -- I suspect this will get closed as "won't fix" but at least this report may help anyone else running into this failure.

@phantal phantal mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jan 13, 2017
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@hugovk
Copy link
Member

hugovk commented Apr 12, 2022

Note the spwd module is deprecated in 3.11 and set for removal in 3.13.

See PEP 594 – Removing dead batteries from the standard library and #91217.

@hugovk hugovk closed this as completed Apr 12, 2022
@AlexWaygood
Copy link
Member

Note the spwd module is deprecated in 3.11 and set for removal in 3.13.

See PEP 594 – Removing dead batteries from the standard library and #91217.

Cc. @Phantal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants