邮件服务器-邮件系统-邮件技术论坛(BBS)

标题: exchange2003 弱口令中继如何解决? [打印本页]

作者: zwcfree    时间: 2011-2-22 16:44
标题: exchange2003 弱口令中继如何解决?
请问如何解决弱口令被中继的情况?
如果要更改用户的弱口令,如何最有效的批量完成?
作者: tarian    时间: 2011-2-22 17:08
windows 2003应该可以使用脚本来进行修改。我不会使用这脚本,找了一个,您瞧一下会不会使用:
这个转自:http://blog.sina.com.cn/s/blog_49972b9501000bhm.html


Enable Users to Change Their Passwords

http://www.microsoft.com/technet ... wvb04.mspx?mfr=true

Description

Disables the User Cannot Change Password option, allowing the user to change their password.

Supported Platforms

Windows Server 2003/Windows XP/Windows 2000/Windows NT 4.0/Windows 98



Script Code
  1. Const ADS_ACETYPE_ACCESS_DENIED_OBJECT = &H6
  2. Const CHANGE_PASSWORD_GUID  = _
  3.     "{ab721a53-1e2f-11d0-9819-00aa0040529b}"

  4. Set objUser = GetObject _
  5.     ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
  6. Set objSD   = objUser.Get("nTSecurityDescriptor")
  7. Set objDACL = objSD.DiscretionaryAcl
  8. arrTrustees = Array("nt authority\self", "everyone")

  9. For Each strTrustee In arrTrustees
  10.     For Each ace In objDACL
  11.         If(LCase(ace.Trustee) = strTrustee) Then
  12.             If((ace.AceType = ADS_ACETYPE_ACCESS_DENIED_OBJECT) And _
  13.                (LCase(ace.ObjectType) = CHANGE_PASSWORD_GUID)) Then
  14.                    objDACL.RemoveAce ace
  15.             End If
  16.         End If
  17.     Next
  18. Next

  19. objUser.Put "nTSecurityDescriptor", objSD
  20. objUser.SetInfo
复制代码

作者: neil.fu    时间: 2011-2-23 16:42
现在这个问题确实严重




欢迎光临 邮件服务器-邮件系统-邮件技术论坛(BBS) (http://bbs.5dmail.net/) Powered by Discuz! X3.2