`
lovnet
  • 浏览: 6966046 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

SMS脚本节选五:为SMS对象设置安全权限

阅读更多

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

  1. <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>

    Connect to an SMS Provider, and get the SWbemServices object.

  2. <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>
  • 要求SMS 2003 站点服务器.

Security

<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>

Adding the same rights at the class level is easier but increases the security risk because it allows administrators to perform tasks that are not intended for them.

如果本页上的SMS 2003的SDK连接不可用,则前往下面地址进行查阅(在线):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smssdk03/hh/sms/usingsms_secSecurity.asp

分享到:
评论

相关推荐

    微软 SMS2003 教程 SMS 教程 PDF SMS内部资料 SMS部署详解 SMS部署方法 sms手册

    5. **合规性和设置管理**:SMS2003可以定义策略来检查客户端是否符合特定的安全或配置标准,并可以自动修复不合规状态。 **SMS部署详解:步骤与注意事项** 1. **规划阶段**:确定站点结构,考虑网络拓扑、带宽需求...

    开启企业管理新篇章系列之五:配置SMS 2003及部署客户端

    【标题】:“开启企业管理新篇章系列之五:配置SMS 2003及部署客户端”指出的是一个关于系统管理解决方案的专题教程,主要聚焦在配置System Management Server (SMS) 2003 和客户端的部署。SMS是微软提供的一款企业...

    sms.rar_T3_sms_sms 接收_短信接收

    9. `sms.rc`:资源脚本文件,定义了程序的资源,如菜单、对话框和字符串等。 综合以上分析,这个项目是一个使用C++编程语言,基于T35i设备,利用VC6开发的短信接收及转发程序。它通过实现UDP套接字通信,能够接收...

    SMS 和 CRM:演变过程中的相似之处和相反之处.pdf

    - **目标一致性**:SMS与CRM都旨在提高航空安全。 - **持续改进**:两者都强调持续改进的重要性,以应对不断变化的环境和技术进步。 - **文化转变**:SMS与CRM都需要组织文化的转变,鼓励开放沟通、共享责任以及积极...

    EasySMS发送短信最简单的方法

    最后,根据项目需求,调用 `$easySms` 对象的 `send` 方法发送短信。 总的来说,EasySMS 是一个非常实用的 PHP 短信发送工具,它通过抽象各种服务商的接口,降低了开发者的使用门槛,提高了开发效率。如果你的项目...

    开启企业管理新篇章系列之十五:SMS 2003 站点备份和恢复

    【标题】:“开启企业管理新篇章系列之十五:SMS 2003 站点备份和恢复” 【描述】:这个主题聚焦于微软的系统管理服务器(SMS)2003,一个广泛使用的IT管理工具,它为企业提供了一种集中化的设备和应用管理方式。在...

    eucp-sms-sdk.zip

    1. SDK集成:首先,开发者需要下载并解压"eucp-sms-sdk.zip"文件,将包含的库文件导入项目中。根据开发语言(如Java、Python、iOS、Android等),参照官方文档进行集成。 2. API调用:初始化SDK,设置必要的参数如...

    SMS安全管理体系.pdf

    安全政策是SMS的基石,为组织提供安全目标和方针;风险管理确保对潜在危险进行识别和控制;安全保证确保安全措施得到适当执行;安全促进致力于持续提升安全文化。 - SMS要求组织不断进行自我评估和持续改进,例如...

    SMS 2003 教程全集

    为了使SMS服务器能在Active Directory中System容器中创建对象,需要赋予其写入权限。这一步骤通过修改System容器的权限设置来实现,推荐使用图形界面工具adsiedit进行。 **三、SMS 2003的安装与使用** #### SMS ...

    Sms.rar_MMS_android sms_android 短信_sms_sms android

    这个名为"Sms.rar"的压缩包包含了一个关于Android SMS(Short Message Service)功能的源码实现,特别提到了MMS(Multimedia Messaging Service)的支持,这允许发送和接收包含多媒体内容的消息。下面将详细解释这些...

    smsapi-pl:用于node.js的SMSAPI.pl的实现

    smsapi-pl 针对node.js的SMSAPI.pl的实现使用此程序包,您可以轻松地通过波兰提供程序发送SMS 0.2.0版消息: 添加发送承诺用法: $npm install smsapi-pl然后: var sms = require ( 'smsapi-pl' ) ; 您可以放入sms...

    Laravel开发-laravel-sms-api

    然后,在同一文件的`aliases`数组中,添加' SMS' =&gt; LaravelTooma\SMS\Facades\SMS::class,以便我们可以使用方便的Facade进行调用。 laravel-sms-api支持多种短信服务提供商,如Twilio、Nexmo等。要配置特定的提供...

    SMS部署操作手册及相关文档

    2. **设置服务器角色**:在SMS控制台中配置站点服务器的角色,设置站点系统权限。 3. **设置站点边界**:根据Active Directory站点设置边界,确保一致。 4. **配置客户端代理**:包括硬件和软件库存清单、远程工具...

    android开发短信的sms信息

    - **READ_SMS和WRITE_SMS权限**:除了发送短信需要`SEND_SMS`权限,读取和写入短信还需要`READ_SMS`和`WRITE_SMS`权限。同样,这些权限在Android 6.0及以上版本需要动态申请。 - **用户提示**:在请求权限时,需要...

    SMS.rar_android_android sms.zip_sms_sms android_sms java

    在Android平台上,短信服务(SMS)是移动应用开发中的一个重要组成部分。这个压缩包"SMS.rar"和"android_android sms.zip"包含的可能是一系列与在Android系统上编程短信功能相关的资源和代码示例。让我们深入探讨...

    短信猫多种语言通用开发程序

    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_...

    SMS开发指南.pdf

    7. SMS安全:SMS安全主要包括短消息的加密、短消息的认证和短消息的完整性验证。短消息的加密可以防止短消息的泄露,短消息的认证可以确保短消息的真实性,短消息的完整性验证可以确保短消息的完整性。 8. SMS发展...

    Android send SMS and save SMS

    在Android平台上,发送短信和保存短信记录是两个重要的功能,它们涉及到系统级别的权限以及与SMS相关的API交互。本文将深入探讨这两个主题,并提供相应的代码示例。 ### 1. Android发送短信 在Android中,发送短信...

    Sms.rar_PDU编码_pdu_sms c_sms pdu_sms 解码

    在IT行业中,PDU(Protocol Data Unit)编码是与GSM网络中的短消息服务(SMS)相关的技术。PDU模式是SMS的一种传输格式,用于在移动设备之间传递短信。在这个主题中,"Sms.rar_PDU编码_pdu_sms c_sms pdu_sms 解码...

Global site tag (gtag.js) - Google Analytics