Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

AD Plugin - Problem setting userAccountControl for AD user account

$
0
0

Hi,

I am having a problem setting "Password doesn't expire" for an AD user account from Orchestrator. I am using an "AD:User" type object and am able to read the current userAccountControl value:

 

var attributes = clientUser.getAttribute("userAccountControl");

System.log("Attributes: " + attributes);

 

Output:  [I] Attributes: 512

 

However, when I try setting up the userAccountControl with: 66048 (512 + 65536 for DONT_EXPIRE_PASSWORD) I get this:

clientUser.setAttribute("userAccountControl",66048);

 

Output: Unable to remove attribute: Error while modifying element: Malformed 'userAccountControl' attribute value

 

Can someone suggest what am I doing wrong here?

 

Thanks

Kamil


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>