Ñò ¸sWc@s@dZddklZddklZdefd„ƒYZdS(s*Name Service Switch classes used by nscfg.iÿÿÿÿ(tprint_functioni(tNssbasetNsswitchcBsUeZdZdZdZdZdZdZdZdZ dZ dgZ hd d6d d 6d d 6d d 6d d 6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6d d6dd 6dd!6Z d7Z d.Zd Zd/Zd Zd0Zd!Zd8d9fZd2Zd3„Zd4„Zd5„Zd6„ZRS(:s}Name Service Switch class. Represents the configuration of the name service switch. See nsswitch.conf(4) for details.ssvc:/system/name-service/switchs nsswitch.confs/etctconfigtdefaultit1991s$# See nsswitch.conf(4) for details. tastringthosttpasswordtgrouptnetworktprotocoltrpctethertnetmaskt bootparamt publickeytnetgroupt automounttaliastservicetprintertprojectt auth_attrt prof_attrttnrhtpttnrhdbtsudoertbooleantenable_passwd_compattenable_group_compattpasswdthoststipnodestnetworkst protocolstetherstnetmaskst bootparamstaliasestservicestprinterstsudoerstfilest passwd_compatt group_compats user filess%solaris.smf.value.name-service.switchcCsti|ƒdS(N(Rt__init__(tself((s../common/nsswitch.pyR._sc CsÍ|idƒh}t}|iddƒ}t|ƒtdƒjo|djo t}nt}|iddƒ}t|ƒtdƒjo|djo t}n|iƒ}|djp |djo d}n|id|ƒx–|iiƒD]…}|id |ƒ|||<|id|i|ƒ}|id |ƒ|djo|djo|||R;R?tno_writetSUCCESSt delcust_pgtDEFPGRBtcommittDEFPVALt add_prop_valtvalidate(R/RERFtpwd_valRHtgrp_valtlinestltidxtvalstkeytmapterrR0tptypetval((s../common/nsswitch.pyt import_to_smf“s¸                 % !!         cCs^|idƒ|idƒ|i|iƒp|iS|iƒp|iS|idƒ|iS(sUnconfigure SMF. Reset DEFPG.sunconfiguring nsswitch...sDelete customizations.ssuccessful unconfigure.(R4R^R_RBR`R](R/((s../common/nsswitch.pyt unconfig_smføs    (spasswdsgroupR sipnodesR"R#R R$R%R&RRRsaliasesR(R)RRRRRR*(sdefaultRsfiles(RRs user files(t__name__t __module__t__doc__tSERVICEtLEGACYt LEGACYDIRR_tDEFPROPtGROUPtCOPY_YRtDOCtALLPGSRZR=RatDEFPTYPER>RYR?R[tUNCPROPt VALUE_AUTHR.RMRoRp(((s../common/nsswitch.pyRsh      1 eN(Rst __future__RtnssbaseRR(((s../common/nsswitch.pyts