CFEXECUTE assigning it to run with administrator rights

后端 未结 1 1584
北海茫月
北海茫月 2021-01-17 18:23

I am trying to change a password with active directory using cfexecute. The only code on my page is this (username and the new password are filled in):

相关标签:
1条回答
  • 2021-01-17 18:44

    ColdFusion is only able to access the domain and user account that is used by the ColdFusion service.

    If you want to authenticate a username/domain against local system or Windows domain using any version of ColdFusion, consider using the CFX_EXEC tag.

    http://adiabata.com/cfx_exec.cfm

    <CFX_EXEC
        CMD="NET USER username password /domain"
        USER="Administrator"
        PWD="pass"
        DOMAIN="domain"
        FILE="C:\Users\administrator\Desktop\test.txt">
    
    0 讨论(0)
提交回复
热议问题