📄 trustsrv.script
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2001.*.* This software is licensed under the Common Public License (CPL) V1.0..****************************************************************************.*************************-START-OF-PROLOG-****************************.*.* File Name : TrustSrv SCRIPT.* Descriptive Name : Software Test Automation Framework Trust Service.* Detail:.*.* This file describes the STAF Trust Service..*.**************************-END-OF-PROLOG-*****************************:i1.trust service:ih1.services:i2.trust service:h2 id=trustsrv.Trust Service:h3.Description:p.The TRUST Service is one of the internal STAF services. It allows you toquery and set the trust entries. It provides thefollowing commands.:ul compact.:li.SET - Sets the trust level for a specific machine or user or a default trust level:li.GET - Retrieves the effective trust level for a given machine or user:li.LIST - Retrieves the default trust level and a list of the explicittrust entries for machines and users:li.DELETE - Deletes a given trust entry for a machine or user:li.&help.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.SET:i3.trust service:h3.SET:p.SET will set the default trust level or the trust level for a specificmachine or user.:h4.Syntax:xmp.SET <MACHINE <Machine> | USER <User> | DEFAULT> LEVEL <Level>:exmp.:p.:xph.MACHINE:exph. indicates a machine for which to set a trust level.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 which will match any network interface name.:li.:xph.<System Identifier>:exph. is a valid network identifier for the networkinterface. It is case-insensitive.Logical or physical identifiers may be specified for the systemidentifier. Physical identifiers are the lowest-level identifieravailable via the specified network interface. Logical identifiers are morehuman readable identifiers tha ultimately map to physical identifiers.For example, for a TCP/IP interface, the physical identifier for amachine is the IP address, while the logical identifier for a machineis the hostname.:eul.:p.Note that you can specify match patterns (e.g. wild cards) in theinterface and the system identifier. These patterns recognize twospecial characters, '*' and '?', where '*' matches a string ofcharacters (including an empty string) and '?' matches any singlecharacter (the empty string does not match).:p.Note that if you specify the hostname in a trust specificationfor a TCP/IP interface, you must specify the long host name(and/or wildcards).:p.Note that if you specify a port (e.g. @6500) at the end of thesystem identifier, it will be removed.:p.Requests coming from the local system will now appear as thoughthey came from an interface named "local" and a system identifierof "local". This allows you to specify a trust level for localrequests. (In STAF V2.x, local requests were automatically granteda trust level of 5.):p.:xph.USER:exph. indicates a user for which to set a trust level.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.:p.Note that you can specify match patterns in the authenticator nameand the user identifier. These patterns recognize two special characters,'*' and '?', where '*' matches a string of characters (including anempty string) and '?' matches any single character (the empty stringdoes not match).:p.:xph.DEFAULT:exph. specifies that you want to set the default trust level.:p.:xph.LEVEL:exph. specifies the level of trust you wish to set.:h4.Notes::ol compact.:li.If multiple trust specifications match the same user,STAF will rank the matching specifications as documented insection :hdref refid=userTrustMatching. and use the match with the highest (i.e. lowest numbered) rank. If multiple trustspecifications match within the same rank, the lowest matching trustlevel 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. 5.:h4.Return Codes:p.All return codes from SET are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain no data on return from a SET command.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. Set the trust level for local requests to 5. :p.:hp2.Syntax::ehp2. :xph.SET MACHINE local&colon.//local LEVEL 5:exph.:p.:li.:hp2.Goal::ehp2. Set the default trust level to 1.:p.:hp2.Syntax::ehp2. :xph.SET DEFAULT LEVEL 1:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 5 for machine*&colon.//client1.austin.ibm.com (e.g. a machine with host nameclient1.austin.ibm.com using any network interface).:p.:hp2.Syntax::ehp2. :xph.SET MACHINE client1.austin.ibm.com LEVEL 5:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 5 for machine *&colon.//93.224.16(e.g. a machine with IP address 9.3.224.16 using any network interface).:p.:hp2.Syntax::ehp2. :xph.SET MACHINE 9.3.224.16 LEVEL 5:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 4 for machine tcp&colon.mysystem.site.com(e.g. a machine with host name mysystem.site.com using network interface tcp).:p.:hp2.Syntax::ehp2. :xph.SET MACHINE tcp&colon.//mysystem.site.com LEVEL 4:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 0 for machine*&colon.//badguy.austin.ibm.com (e.g. a machine with host namebadguy.austin.ibm.com using any network interface).:p.:hp2.Syntax::ehp2. :xph.SET MACHINE badguy.austin.ibm.com LEVEL 0:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 3 for a group of machinesusing network interface tcp2 and with IP addresses that beginwith "9.3.224.".:p.:hp2.Syntax::ehp2. :xph.SET MACHINE tcp2&colon.//9.3.224.* LEVEL 3:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 2 for a group of machineswith host names that end with ".austin.ibm.com" using any network interface.:p.:hp2.Syntax::ehp2. :xph.SET MACHINE *.austin.ibm.com LEVEL 2:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 2 for a group of machinesusing a network interface that begins with tcp and with host namesthat end with ".site.com".:p.:hp2.Syntax::ehp2. :xph.SET MACHINE tcp*&colon.//*.site.com LEVEL 2:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 5 for a user whoseuser identifier is John@company.com and uses the default authenticator.:p.:hp2.Syntax::ehp2. :xph.SET USER John@company.com LEVEL 5:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 0 for a user whoseuser identifier is badguy@company.com and uses the default authenticator.:p.:hp2.Syntax::ehp2. :xph.SET USER badguy@company.com LEVEL 0:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 3 for a group of userswhose user identifiers end with "@company.com" and which use thedefault authenticator.:p.:hp2.Syntax::ehp2. :xph.SET USER *@company.com LEVEL 3:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 4 for a group of usersusing an authenticator named SampleAuth and whose user identifiers endwith "@company.com".:p.:hp2.Syntax::ehp2. :xph.SET USER SampleAuth&colon.//*@company.com LEVEL 4:exph.:p.:li.:hp2.Goal::ehp2. Set the trust level to 1 for a group of usersusing any authenticator (indicated by wildcard *) and anyuser name (indicated by wildcard *).:p.:hp2.Syntax::ehp2. :xph.SET USER *&colon.//* LEVEL 1:exph.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.GET:i3.trust service:h3.GET:p.GET will return the effective trust level of a specific machineand, optionally, for a specific user.:h4.Syntax:xmp.GET MACHINE <Machine> &lbrk.USER <User>&rbrk.:exmp.:p.:xph.MACHINE:exph. specifies the machine for which to return theeffective trust level.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, the default interfaceis used.:li.:xph.<System Identifier>:exph. is a valid network identifier for the networkinterface. It is case-insensitive.Logical or physical identifiers may be specified for the systemidentifier. Physical identifiers are the lowest-level identifieravailable via the specified network interface. Logical identifiers are morehuman readable identifiers tha ultimately map to physical identifiers.For example, for a TCP/IP interface, the physical identifier for amachine is the IP address, while the logical identifier for a machineis the hostname.:eul.:p.Wildcard patterns, '*' and '?', should not be specified.If a port is included (e.g. @6500) at the end of the machinevalue, it will be removed.:p.If the machine has a matching :xph.MACHINE:exph. trust entry,the effective trust level is the level specified in the:xph.MACHINE:exph. trust entry. Otherwise, the effective trustlevel is the default trust level.:p.:xph.USER:exph. specifies the user for which to return the effectivetrust level.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.:p.Wildcard patterns, '*' and '?', cannot be specified.:p.If the user has a matching :xph.USER:exph. trust entry,the effective trust level is the level specified in the :xph.USER:exph. trust entry. Otherwise, if the machine has amatching :xph.MACHINE:exph. trust entry, the effective trustlevel is the level specified in the :xph.MACHINE:exph. trustentry. Otherwise, the effective trust level is the defaulttrust level.:h4.Notes::ol compact.:li.If multiple trust specifications match the same user,STAF will rank the matching specifications as documented insection :hdref refid=userTrustMatching. and use the match with the highest (i.e. lowest numbered) rank. If multiple trustspecifications match within the same rank, the lowest matching trust
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -