Gary Winiger wrote:
>       Hummm, looking at the architecture of passwd(1), it only
>       supports 2 repositories.  

Being pedantic:

Are you referring to lines 1402 and following in
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/passwd/passwd.c

In particular:

    1402 /*
    1403  * get_namelist_nisplus
    1404  *
    1405  */
    1406
    1407 /*
    1408  * Our private version of the switch frontend for getspent.  We want to
    1409  * search just the nisplus sp file, so we want to bypass normal 
nsswitch.conf
    1410  * based processing.  This implementation compatible with version 2 of 
the
    1411  * name service switch.
    1412  */

in particular (@ line 1510):

    1510 int
    1511 get_namelist(pwu_repository_t repository, char ***namelist, int 
*num_user)
    1512 {
    1513        if (IS_NISPLUS(repository))
    1514                return (get_namelist_nisplus(namelist, num_user));
    1515        else if (IS_FILES(repository))
    1516                return (get_namelist_files(namelist, num_user));
    1517
    1518        rusage();
    1519        return (BADSYN);
    1520 }

   -John

Reply via email to