SMS generally relies on other technologies to enforce security. For example, SMS sets security on file shares and then relies on the operating system to authenticate accounts and allow only correct accounts to access the shares. SMS itself enforces security only when you access an SMS object through the SMS Provider. The SMS Provider enforces SMS object security when you access SMS objects through the SMS Administrator console or through a program that accesses SMS through WMI. The SMS Provider compares the user who is attempting to access the SMS object to the SMS security permissions on that SMS object, to determine whether the user has the right to access or change the object.
You can use SMS scripting to grant permissions on an SMS object to a single user or to user groups within a domain. For example, you can specify that all members of the Domain Users group can edit packages. You can specify that specific users can edit only the packages that they create. You can allow an administrator to manage all collections or just one. For each security object or object type, you can grant a number of different permissions. This granularity gives you great control over who can access SMS object types and who can access specific information in the SMS site database.
The following example demonstrates how to grant read rights and how to modify rights to a user group for all collections at the instance level.
For more information, see the security topics in the <linktext xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></linktext>SMS 2003 SDK.
To set security rights for an SMS object
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Connect to an SMS Provider, and get the SWbemServices object.
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Retrieve all available collections, and set for Junior Administrators' access rights to read and modify:
SMSJuniorAdmins="DOMAIN\SMS Junior Admins"
Set colCollections = objSWbemServices.ExecQuery("Select * From SMS_Collection")
For Each objCollection In colCollections
'Ignore this special collection.
If (objCollection.CollectionID <> "COLLROOT") AND objCollection.OwnedByThisSite Then
WScript.Echo vblf & objCollection.Name & " " & objCollection.CollectionID
AlreadySet = False
Set colRights = objSWbemServices.ExecQuery("Select * From SMS_UserInstancePermissionNames WHERE ObjectKey=1 AND InstanceKey='" & objCollection.CollectionID & "'")
For Each objRight in colRights
WScript.Echo " " & objRight.Username + " " & objRight.PermissionName
If objRight.Username = SMSJuniorAdmins Then AlreadySet=True
Next
If Not AlreadySet Then
Set objNewRight = objSWbemServices.Get("SMS_UserInstancePermissions").SpawnInstance_()
objNewRight.UserName = SMSJuniorAdmins
objNewRight.ObjectKey = 1 'collections
objNewRight.InstanceKey = objCollection.CollectionID
objNewRight.InstancePermissions = 1+2 'just Read and Modify
objNewRight.Put_
WScript.Echo " The junior administrators now have read and modify access to this collection."
End If
End If
Next
|
Compiling the Code // 编译代码的注意事项
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Security
分享到:
相关推荐
smsapi-pl 针对node.js的SMSAPI.pl的实现使用此程序包,您可以轻松地通过波兰提供程序发送SMS 0.2.0版消息: 添加发送承诺用法: $npm install smsapi-pl然后: var sms = require ( 'smsapi-pl' ) ; 您可以放入sms...
Microsoft SMS 2003 客户能够借助面向 SMS 的英特尔 AMT 插件,充分利用采用英特尔:registered: 博锐:trade_mark: 技术的个人电脑中强大的可管理特性。凭借这些硬件功能,即使电脑关机或操作系统无法使用,IT 管理员...
function Sms_Send(Sms_TelNum:string;Sms_Text:string):integer;stdcall;external 'sms.dll'; Function Sms_Receive(Sms_Type:string;var Sms_Text:PChar):integer;stdcall;external 'sms.dll'; function Sms_...
VC++:SMS短信测试: 实现短信的收发,
微软 SMS2003 教程 SMS 教程 PDF SMS内部资料 SMS部署详解 SMS部署方法 sms手册
开启企业管理新篇章系列之五:配置SMS 2003及部署客户端
开启企业管理新篇章系列之十五:SMS 2003 站点备份和恢复
赠送jar包:aliyun-sms-spring-boot-starter-2.0.2.jar 赠送原API文档:aliyun-sms-spring-boot-starter-2.0.2-javadoc.jar 赠送源代码:aliyun-sms-spring-boot-starter-2.0.2-sources.jar 包含翻译后的API文档...
Easy SMS: 发送短信最简单的方法
亿美短信发送SDK
SMS安全管理体系.pdf
Nexmo SMS动作 使用从发送短信。 用法 name : Push to master on : [push] jobs : send - sms : name : Send SMS runs - on : ubuntu - latest steps : - name : Send SMS uses : nexmo - community / nexmo -...
Laravel 包提供 SMS API 集成。 可以使用任何提供 REST API 的 SMS 供应商。 回购以显示支持 :smiling_face_with_smiling_eyes: 安装 安装包 需要 Composer 这个包: composer require gr8shivam/laravel-sms-api...
Maven坐标:io.springboot.sms:aliyun-sms-spring-boot-starter:2.0.2; 标签:spring、starter、sms、boot、aliyun、springboot、jar包、java、中英对照文档; 使用方法:解压翻译后的API文档,用浏览器打开“index...
2、Sms_Send(Sms_TelNum As String, Sms_Text As String) As Integer Sms_Send函数说明如下: 功能描述:发送短信 Sms_TelNum:发送给的终端号码 Sms_Text:发送的短信内容 Sms_Send:返回值(0:发送短信失败...
中国网建提供的SMS短信平台http://sms.webchinese.cn 需要的可以看一下
ShareSDK分享和SMS的使用 http://www.cnblogs.com/wangfengdange/p/7800146.html
java开发sms的资料大全:包含源码和sms、短信猫的相关资料,很全。
SMSAPI通知程序 为Symfony Notifier提供集成。 DSN示例 SMSAPI_DSN=smsapi://TOKEN@default?from=FROM 在哪里: TOKEN是您的API令牌(OAuth) FROM是发件人名称 在查看您的帐户信息 资源 并在
一个Perl模块,用于通过各种协议(SOAP,XML,HTTP和FTP)访问Clickatell批量SMS服务(http://www.Clickatell.com)。