[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::ultrix

Title:Volume 4, Take a RISC with ULTRIX
Notice:Read 1.*!!!! No OSF/1 questions allowed!
Moderator:SSDEVO::ROLLOW
Created:Wed Jun 05 1991
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5478
Total number of notes:14927

5477.0. "netgroups on v4.4 and v4.5 " by GIDDAY::SCHWARZ () Mon Jun 02 1997 01:58

    G'day,
    
    I have a customer who is having a problem with using netgroups across
    v4.4 and v4.5. He is compling some code on v4.5 and v4.4 then running
    it on both versions and he is getting different results.
    
    Did the functionality of netgroups or innetgr change from v4.4 to v4.5?
    
    Any suggestions could be appreciated.
    
    Regards
    
    Kym Schwarz
    Unix support 
    CSC sydney
    
    ****************** example **************************************
    
    ---------------------------- fubar.c 
    -------------------------------------------
    #include <stdio.h>
    
    main()
    {
            char *machinep, *userp, *domainp;
    
            printf("balrog:\n");
            check("supp_hosts", "balrog.supp.cpr.itg.telecom.com.au",
                NULL, "supp.cpr.itg.telecom.com.au");
            printf("sequoia:\n");
            check("melb_hosts", "sequoia.melb.cpr.itg.telecom.com.au",
                NULL, "melb.cpr.itg.telecom.com.au");
    }
    
    check(netgroup, machine, user, domain)
            char *netgroup, *machine, *user, *domain;
    {
            printf("checking %s(%s,%s,%s) = %d\n",
                netgroup,
                machine ? machine : "-",
                user ? user : "-",
                domain ? domain : "-",
                innetgr(netgroup, machine, user, domain));
    }
    
             ******************************************
            cc -o fubar-4.4 fubar.c
    
    on the Ultrix 4.4 system and 
    
            cc -o fubar-4.5 fubar.c
    
    on the Ultrix 4.5 system.
    
              *******************************************
    
    sequoia:~ 103> uname -a
    ULTRIX sequoia 4.4 0 RISC
    sequoia:~ 104> ./fubar-4.4
    balrog:
    checking supp_hosts(balrog.supp.cpr.itg.telecom,-,supp.cpr.itg.telecom)
    = 0
    sequoia:
    checking
    melb_hosts(sequoia.melb.cpr.itg.telecom,-,melb.cpr.itg.telecom) = 1
    sequoia:~ 105> ./fubar-4.5
    balrog:
    checking supp_hosts(balrog.supp.cpr.itg.telecom,-,supp.cpr.itg.telecom)
    = 0
    sequoia:
    checking
    melb_hosts(sequoia.melb.cpr.itg.telecom,-,melb.cpr.itg.telecom) = 0
    
    balrog:~ 19> uname -a
    ULTRIX balrog 4.5 0 RISC
    balrog:~ 20> ./fubar-4.4
    balrog:                 <<<< 60 second delay before next line >>>>
    checking supp_hosts(balrog.supp.cpr.itg.telecom,-,supp.cpr.itg.telecom)
    = 0
    sequoia:                <<<< 60 second delay before next line >>>>
    checking
    melb_hosts(sequoia.melb.cpr.itg.telecom,-,melb.cpr.itg.telecom) = 0
    balrog:~ 21> ./fubar-4.5
    balrog:
    checking supp_hosts(balrog.supp.cpr.itg.telecom,-,supp.cpr.itg.telecom)
    = 1
    sequoia:
    checking
    melb_hosts(sequoia.melb.cpr.itg.telecom,-,melb.cpr.itg.telecom) = 0
    
    
    ********************************************************************
    
T.RTitleUserPersonal
Name
DateLines