使用 Base SAS 验证 Windows 密码
我们有一个登录脚本,需要 Windows 密码才能访问 SAS 元数据服务器并进行验证。
问题是,如果 Windows 密码被更改,并且脚本在没有更新的情况下运行了几次,那么用户将被锁定,并且必须致电 IT 支持人员重置密码。
使用 Base SAS (9.1.3) 验证 Windows 密码的最简单方法是什么? 即如果提供的密码无效,则向用户发出警告...
编辑:
关心的不是是否应该这样做,而是如何完成!
We have a signon script that requires a Windows password in order to access and validate against the SAS metadata server.
The problem is that if the windows password is changed, and the script is run a few without being updated, then the user gets locked out and has to call IT support for a password reset.
What is the simplest way of using Base SAS (9.1.3) to validate a windows password? ie to enable a warning to the user if the password provided is not valid...
EDIT:
The concern is not whether or not this SHOULD be done, only HOW it could be done!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
听起来该解决方案与 Windows 密码和您的 IT 团队有关。 大多数具有您所描述的计划作业的项目都在具有有限权限和静态密码的特定用户下运行。
我相信您的解决方案属于 IT 部门,而不是复杂的 SAS 登录脚本。
It sounds like the solution has to do with Windows passwords and your IT group. Most of the projects that have scheduled jobs like you describe run under a specific user that has limited permissions and a static password.
I believe that your solution lies within the IT dept and not a sophisticated SAS log-on script.
您使用的是 SAS 9.2 吗? 如果是这样,您是否可以使用不需要底层主机操作系统帐户并且可以配置自定义过期规则的内部帐户?
Are you using SAS 9.2? If so, could you use internal accounts which do not require an underlying host operating system account and can be configured with custom expiration rules?
好的,您可以使用标志轻松检查这一点。 如果该标志为“on”,则 SAS 将不会运行该脚本。 如果标志为“关闭”,SAS 将继续运行脚本。 这将解决重置密码的问题。 至于您选择如何将其传达给用户,则取决于您。
伪代码中的 EG sas 脚本:
干杯
抢
Ok you can check this quite easily using flags. If the flag is 'on' then SAS will not run the script. If the flag is 'off' SAS will proceed to run the script. This will stop the problem of having your password reset. As to how you choose to communicate that to the user, that is up to you.
EG sas script in pseudocode:
Cheers
Rob