This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_spwd fails on solaris using NIS users
Type: behavior Stage:
Components: Tests Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: phantal
Priority: normal Keywords:

Created on 2017-01-13 19:43 by phantal, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg285439 - (view) Author: Brian Vandenberg (phantal) Date: 2017-01-13 19:43
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.
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73454
2017-01-13 19:43:48phantalcreate