SaveTo Method
Topic Last Modified: 2006-06-13
Saves DACL object information to the security descriptor of an item according to its URL.
Applies To
Syntax
objResult objDACL.SaveTo(strURL, [strUser,] [strPwd]);
Parameters
- strURL
The DACL object s URL.
- strUser
Optional. A string value of the username required for accessing the secured item.
- strPwd
Optional. A string value of the password required for accessing the secured item.
Return Value
An object that returns error codes and descriptions.
Remarks
By design, this method does not save any inherited entities.
Important
Storing usernames and passwords in script files poses a security risk. If you write a script on a Web page that runs on a client for a browser other than Internet Explorer, the username and password will be passed in plain text to the UISaveDacl.asp file a bigger security risk.
Example
var objResult = objDacl.SaveTo("https://server/folder/someitem");
if(FAILED(objResult.number)){
//show an error msg here, using objResult.description
}