📄 trustsrv.script
字号:
level will be used.:li.If multiple trust specifications match the same system,STAF will rank the matching specifications as documented insection :hdref refid=machineTrustMatching. and use the match withthe highest (i.e. lowest numbered) rank. If multiple trustspecifications match within the same rank, the lowest matching trustlevel will be used.:li.User trust specifications override machine trust specifications.:eol.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from GET are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain the effective trust level of the givenmachine.:h4.Examples:p.For the following examples, assume the trust entries for machines andusers are as follows with tcp as the default network interface and SampleAuth asthe default authenticator::xmp.Type Entry Trust Level------- ----------------------------- -----------Default <None> 1Machine *&colon.//*.austin.ibm.com 2Machine *&colon.//client1.austin.ibm.com 5Machine *&colon.//client3.austin.ibm.com 3Machine local&colon.//local 5Machine tcp&colon.//client2.austin.ibm.com 0User SampleAuth&colon.//*@company.com 3User SampleAuth&colon.//Jane@company.com 4User SampleAuth&colon.//John@company.com 5:exmp.:p.Here are some :xph.GET:exph. requests and their results::xmp.Request: GET MACHINE client1.austin.ibm.comResult : 5:exmp.:p.:xmp.Request: GET MACHINE tcp&colon.//client2.austin.ibm.comResult : 0:exmp.:p.:xmp.Request: GET MACHINE client3.austin.ibm.comResult : 3:exmp.:p.:xmp.Request: GET MACHINE client4.austin.ibm.comResult 2:exmp.:p.:xmp.Request: GET MACHINE server1.raleigh.ibm.comResult: 1:exmp.:p.:xmp.Request: GET USER John@company.com MACHINE client3.austin.ibm.comResult : 5:exmp.:p.:xmp.Request: GET USER SampleAuth&colon.//Jane@company.com MACHINE client1.austin.ibm.comResult : 4:exmp.:p.:xmp.Request: GET USER Henry@company.com MACHINE client1.austin.ibm.comResult : 3:exmp.:p.:xmp.Request: GET USER Sally@mybusiness.com MACHINE client1.austin.ibm.comResult : 5:exmp.:p.:xmp.Request: GET USER Sally@mybusiness.com MACHINE server1.raleigh.ibm.comResult : 1:exmp..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.LIST:i3.trust service:h3.LIST:p.LIST will return the default trust level and a list of the trust entriesfor machines and users.:h4.Syntax:xmp.LIST:exmp.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from LIST are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain a marshalled:xph.<List> of <Map&colon.STAF/Service/Trust/Entry>:exph., representingall the trust entries. The first trust entry in the list will be forthe default trust entry, followed by trust entries for machines,and then followed by trust entries for users.The map is defined as follows::table cols='* * * 3*'.:tcap.Definition of map class STAF/Service/Trust/Entry:tnote text='Description'.This map class represents a trust entry.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.type:c.Type:c.&stringObj.:c.:xph.'Default' | 'Machine' | 'User':exph.:row.:c.entry:c.Entry:c.&stringObj. | &noneObj.:c.:xph.<Machine Spec> | <User Spec):exph.:row.:c.trustLevel:c.Trust Level:c.&stringObj.:c.:xph.'0' - '5':exph.:tnote text='Notes'.:ol compact.:li.The value for "Entry" will be &noneObj. for the default trust entry.:li.Each trust entry for a machine, aka :xph.<Machine Spec>:exph., hasthe following format:.br:xph.<Interface>&colon.//<System Identifier>:exph.:li.Each trust entry for a user, aka :xph.<User Spec>:exph., has thefollowing format:.br:xph.<Authenticator>&colon.//<User Identifier>:exph.:eol.:etnote.:etable.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. Retrieve the list of all trust entries.:p.:hp2.Syntax::ehp2. :xph.LIST:exph.:p.:hp2.Result::ehp2. If the request is submitted from the command line,the result, in table format, could look like::xmp.Type Entry Trust Level------- ----------------------------- -----------Default <None> 1Machine *&colon.//*.austin.ibm.com 2Machine *&colon.//9.31.73.14* 3Machine *&colon.//9.31.73.147 5Machine *&colon.//client1.austin.ibm.com 5Machine *&colon.//client3.austin.ibm.com 3Machine local&colon.//local 5Machine tcp&colon.//client2.austin.ibm.com 0User SampleAuth&colon.//*@company.com 3User SampleAuth&colon.//Jane@company.com 4User SampleAuth&colon.//John@company.com 5:exmp.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.DELETE:i3.trust service:h3.DELETE:p.DELETE will remove the explicit trust entry for the specified machineor user.:h4.Syntax:xmp.DELETE MACHINE <Machine> | USER <User>:exmp.:p.:xph.MACHINE:exph. specifies the machine for which you wish to delete thespecific trust entry.The format for <Machine> is::xmp. &lbrk.<Interface>&colon.//&rbrk.<System Identifier>:exmp.where::ul compact.:li.:xph.<Interface>:exph. is the name of the network interface.It is case-insensitive.If the name of a network interface is not specified, wildcard '*' issubstituted.:li.:xph.<System Identifier>:exph. is a valid network identifier for the networkinterface. It is case-insensitive.:eul.:p.If a port is included (e.g. @6500) at the end of the machinevalue, it will be removed.:p.:xph.USER:exph. specifies the user for which you wish to delete thespecific trust entry.The format for <User> is::xmp. &lbrk.<Authenticator>&colon.//&rbrk.<User Identifier>:exmp.where::ul compact.:li.:xph.<Authenticator>:exph. is the name of the authenticator.It is case-insensitive. If an authenticator is not specified, the defaultauthenticator is used.:li.:xph.<User Identifier>:exph. is a valid user identifier for the authenticator.It is case sensitive.:eul.:h4.Security:p.&seclvl. 5.:h4.Return Codes:p.All return codes from DELETE are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain no data on return from a DELETE command.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. Delete the trust entry for machine *&colon.//client1.austin.ibm.com:p.:hp2.Syntax::ehp2. :xph.DELETE MACHINE client1.austin.ibm.com:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for machine tcp&colon.//mysystem.site.com.:p.:hp2.Syntax::ehp2. :xph.DELETE MACHINE tcp&colon.//mysystem.site.com:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for machine *&colon.//9.3.224.82:p.:hp2.Syntax::ehp2. :xph.DELETE MACHINE 9.3.224.82:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for machine *&colon.//*.austin.ibm.com:p.:hp2.Syntax::ehp2. :xph.DELETE MACHINE *.austin.ibm.com:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for user SampleAuth&colon.//John@company.com(assuming SampleAuth is the default authenticator).:p.:hp2.Syntax::ehp2. :xph.DELETE USER John@company.com:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for user "SampleAuth&colon.//*@company.com"(assuming SampleAuth is the default autenticator).:p.:hp2.Syntax::ehp2. :xph.DELETE USER *@company.com:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for user "Auth2&colon.//Mary":p.:hp2.Syntax::ehp2. :xph.DELETE USER Auth2&colon.//Mary:exph.:p.:li.:hp2.Goal::ehp2. Delete the trust entry for user "*&colon.//*":p.:hp2.Syntax::ehp2. :xph.DELETE USER *&colon.//*:exph.:eul.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -