钉子 发表于 2010-1-11 16:09:58

how to 在用户密码过期后依然可以登录owa来修改密码

关于这个问题MVP Yang Xun有一个BLOG说明,请看:

转自:http://xunyangit.spaces.live.com/blog/cns!F934535AFC3723BA!2487.entry

owa的用户密码修改的功能在iis6中,是通过IISI中提供的IISADMPWD提供的。虽然通常情况下,用户密码过期后是无法登陆owa的,但是实际上owa的密码修改功能是可以满足下列情景的需求: [*]To change their password after they have logged on to their mailbox by using Outlook Web Access[*]To change their password if their password will expire within a given time period[*]To change their password if their password has already expired[*]To change their password if the User must change password at first logon is enabled[*]To change their password if the User cannot change password option is enabled这里我们主要是满足前4项的需求。需要去修改iis的一项属性passwordchangeflags。默认iis的该属性赋值为6,你可以通过下面的命令获取当前状态:
https://cxuyjq.blu.livefilestore.com/y1mMtdRjJ2lIyjN-PEF5hg_bZUwCi27txVHA9PosvpoqYhGyYr00vw_gi487OkFRwjvJR-AVJoaw2bRWpCtDT19GZU89A9PNDWc6hlAoHzokDz0BPwBfVCajQ9j0hWEe8mLX7RMovV8t_jt-vHJa50hyg/clip_image001_thumb%205896DEB4.png
为了满足需求,执行下面的脚本
https://cxuyjq.blu.livefilestore.com/y1mXfJWrUHDxoubgbx85vqxzKxD6Z5qFbCJCmCCsPYeqXztXwIcYbJKyjwI6shoUE8udVe3jyKcezDNYy7qu1eAC6IXXfRoRwANE39tqdsJLnpMtBjiSavjRusFyJdk1PjsCy_eHBB2kKEXMT1EH7LggA/clip_image002_thumb%205C4049B8.png
具体这些值的意义见下表
ValueSetting0An SSL connection is required to change passwords1An SSL connection is not required to change passwords2Password changing is disabled4Password expiration notification is disabled6Password changing and password expiration notification are disabled
用户在下次登录必须修改密码的状态下,依然可以使用旧密码登录。如果这次登陆没有修改密码,那么注销后将依然可以旧密码登陆。登录后会有如下提示: https://cxuyjq.blu.livefilestore.com/y1mvqWk7QrhUmh5RXidrwCszDRSCULHykO3tEYcy6hS-RW20lQ71IRFX6h4eHtiIzptCsn49Y3bEzCZrkLKCyGX3X2BAff1Ora757V-R3425xdChxvc7tIAUO0WkiX8tbnEbdjSgZkQ4mQic8C1XutY6w/clip_image001_thumb.jpg 修改密码后,可能会因为ad复制的关系,导致对勾未取消。等待一段时间以新密码登录即可正确取消该对勾。 .jpg]https://cxuyjq.blu.livefilestore.com/y1mslOl7pT7PNO_IF0rFuupzcOcC4Xd65Pokbqwpvrd_r3xWxTfICMiv1e7BWE2Rv9ZpymjP-a0w8jEvIFwq2mI9HxD_M6TvfMg1cSV7u26ovXReZ1nGTW28VD_TGHTvteAfzY3NId4atwF5-1hGIXk7w/clip_image002_thumb.jpg
补记:
针对exchange 2003或者exchange 2000,你可以修改注册表来实现类似的功能: [*]在cas上启用IISADMPWD功能,在之前的文章有具体做法,我就不放了。[*]每个后端 Exchange 2003/2000 上在HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchangeWeb\OWA下创建
type:   DWORD Value
name:DisablePassword
value:0[*]在cas上修改inetmgr的 Web Service Extensions中Allow功能Active Server Pages【update】让用户在登录到邮箱之前就必须修改密码
1、执行命令 cscript.exe adsutil.vbs set w3svc/passwordchangeflags 0 .png]https://cxuyjq.blu.livefilestore.com/y1mURyWpfU-N1RNWU4dPdlM1PnzTssXf7pazbBxWal9wjXg-xnn95WXc3v9WMwIRMfPSKOrodcuBqG_zXTvdbK3OxkPHMQS_W8zMj1WkwUO0BT3ZgR6n5Mlt5SHO54oamLz4uNBUNwR-Tdgr0zk4NRlwA/clip_image001_thumb.png %200EA83740.png]https://cxuyjq.blu.livefilestore.com/y1mjJnxsVEuy81DDkccOYeenc2RhmVMy_PPpvMlkVcP3jNsmwvZpCTG49iFAIDp7ZJbbgwNPfxJSkL3Ws-X6YiAyW0pkmWJGlMMgKEvsvt8b79qtmh49KcAR9PxLnJH6w-ajg2QklCZ5oIlZEAymL_fsA/clip_image002_thumb.png 2、inetmgr中修改 2.1 扩展 %20210C73F6.png]https://cxuyjq.blu.livefilestore.com/y1muyyfz6in--VUVhRcNuA7CX8RPuYkwhsQKWWE272EQy8XAZNTgzVCVU2Lo3LSQB46FiE_gDlUF6Xt7fyunBl9JDiaWj0kmq8Bj42-ryxl4ogJWhLFEEJ03AS-0pQrUaQZ1jk3ddvTUgVBPHhdi4OnSg/clip_image003_thumb%2038077D0D.png [*]创建IIS虚拟目录[*]%20341966D6.png]https://cxuyjq.blu.livefilestore.com/y1mXIiOIpKK7JPXwPpblde3Jjaj3RbdOQ1nUX46ZUgZLZeIpJF5Y-Pf72KgQ_FzE2PJ8GKqADOKrsSnWz7FONSle4JAhZJP-qnsgtkQC9-waVK49XUBIT-f3aI9zRE71YR746VRBvPNk26nsxpOlVMMsg/clip_image004_thumb%205B6FE7A6.png[*]%200A41B217.png]https://cxuyjq.blu.livefilestore.com/y1mhvCgGmnbSbVxpScbynRA6kmW-5vog8GbxKmQSoGe8MTiZrmEZ2UirFaZPEI2p_zPAWvjGBFagLP2wWsfcxWq657qxDC7lVv7OwEsoeIvy3tGHaVpvEfE3vWycgDXSw_ixUCtzsRG0S46IP4leUGAiw/clip_image005_thumb%20319832E7.png[*]%2047121FEA.png]https://cxuyjq.blu.livefilestore.com/y1m-ZIMrRKcfhj-WQ8VRdwaDnajdkfh0TSajZ5-udfyqFVpUpi0M5j5ZR--2uLzY6B18q6Amgk7rVdhFVkF8lWswrF1Jxguyplqaqs2MSnxvb2OsAtk6u4SXdg_hbjLoE3pdoQFuF_-KFNEsiUqOW6qAw/clip_image006_thumb%204EA9A125.png[*]%2051DAC766.png]https://cxuyjq.blu.livefilestore.com/y1ms4Urpyu1P9OG57vT4f2PnX9CvdMmedQlqP0URg8-VM3BV4zU9JabAxW87ES1200sRunp4Voi_9sgsbWNzkC3MH8zq_W2Au0nnElZaJLj9_3fta9Uzp_4Jf4mNjWP_19G4aKIGBkVTJFojrvJtDXWBQ/clip_image007_thumb%203A3FC79B.png[*]修改虚拟目录属性[*]%202310FAC5.png]https://cxuyjq.blu.livefilestore.com/y1mQ5-_5vJD4_QIFi0ozAxVX9AVOb0Qo2dFfuWRvgPBVFsvV17yYlCdegYoII-uF-5YwnJym8yZ8_SORM_ft3xtl14pxeLOGnOzrI_DajjvodQlqDGfmS9ZbQe0ntAwc01HMuVhi5gK2jDyI8PtIqYk3g/clip_image008_thumb%20561CC2C7.png[*]确认application pool为MSExchangeOWAAppPool[*]%202575CCEA.png]https://cxuyjq.blu.livefilestore.com/y1mtumiKiFpM1MGAsM-8SNjpgZoFJdtXyMVAsTWWZRE4q8oL8xOlop4xop5lMpkLBkirV7rBJ0uIM0u7ERcycHqFuX0yJy4NDtMNSMLg6SWWMNGwsdOlYPgu2onyJFsmaQbfOtH7diwEF827XD-RBdnVA/clip_image009_thumb.png[*]确认匿名访问启用[*]%202C149CA1.png]https://cxuyjq.blu.livefilestore.com/y1mZcIKX9C6TdySh5vue-tauEJhpnYHloU9FVm3-YmEps5p0oFrrVmriDvsY93bqDt9swK7ro-axDX52TrWAX_OB0FVQtawgXQ8hb8SK_SRGqMqt6aYLFKyXQxOfWxFXlBcNv6pEmdMdveovlfGP9_Yqw/clip_image010_thumb%20745E9018.png[*]执行命令regsvr32 c:\windows\system32\inetsrv\iisadmpwd\iispwchg.dll额外可以去检测下列值是否正确。
Valuecommand0cscript.exe adsutil.vbs get w3svc/passwordchangeflags/iisadmpwd/achg.aspcscript.exe adsutil.vbs get w3svc/AuthChangeURL/iisadmpwd/aexp.aspcscript.exe adsutil.vbs get w3svc/AuthExpiredURL /iisadmpwd/aexp3.aspcscript.exe adsutil.vbs get w3svc/AuthExpiredUnsecureURL /iisadmpwd/anot.aspcscript.exe adsutil.vbs get w3svc/AuthNotifyPwdExpURL/iisadmpwd/anot3.aspcscript.exe adsutil.vbs get w3svc/AuthNotifyPwdExpUnsecureURLN/Acscript.exe adsutil.vbs get w3svc/PasswordExpirePreNotifyDays
            实际使用情况状态当密码过期登录账户登录owa后,会直接跳转到密码修改页面 %20317EF946.png]https://cxuyjq.blu.livefilestore.com/y1mayvVi1u9F6ui07E44JHIJXCxwo6UdQPVJ71LvoT06NSgR3zO0oZzVGhQx8ji8zdelHDFA3mC3UHKBei6SwmmyC6NIvDyugUunZfyXehCBho-mMTW_gXHv9-zVVRuZPXOc4rXlgC4u_xmHRaJG6NTZA/clip_image011_thumb%2078F086D3.png 注意此时修改密码的账户需要使用upn或者sam账户全名 %2015E5BD77.png]https://cxuyjq.blu.livefilestore.com/y1mOeBYapX7ul-C0sgszmZve-DwvwCodNEt5bfnjkPAuuLJfPiCVKXruwZDz9gBngbDyasRvgICiP8KSlNi3V75Pv44X0c3VK_W__RcEkjV1DH0pEQ-TavK3yIRQziCDiqx4iwW6wy05ZkpRLD0Qq6feg/clip_image012_thumb%206EC7ABDC.png 密码修改成功后会返回下面的页面 %201F4A4221.png]https://cxuyjq.blu.livefilestore.com/y1mQatmJE6tNJhglSOf34W0Qvkc0a5JlST1gfQeBzBKwQcynqb_Yt8Grr7_Z4BaplElUiFNsI2EqNBjHAKV1mRxrbyaSHlJCedAf6fqUddvNeStUtZoEaaCxkUjb8aR-35ifsds_zvRk3rKa4GvHb_bzg/clip_image013_thumb%206DDB0C26.png 点击owa连接后,会返回owa的fba页面,其下端会报登录失败的提示,可以忽略。 .png]https://cxuyjq.blu.livefilestore.com/y1mOz6ywVzzBQ23S4sMAlE37If-AxH6Ov2HtsSZBWguecKaxnDlcYBBYgtsOFfrIgL4HGSMl7MgchisRAr2_jUzJM-b4MYNCuBhhA8x8XygS5U5r74QGdW52HgwY-UvdsDnW7PDuos1S4WMIIijJ0kYiA/clip_image014_thumb%201ACB995C.png 以上已经可以满足需求。但是建议修改页面的美观度,并添加相应的密码策略提示。

pater 发表于 2010-1-13 10:35:34

真的很用心啊。。。感謝!
页: 1 [2]
查看完整版本: 关于OWA中密码过期提醒