java - UnboundID LDAP - how to set flags in userAccountControl attribute -


i using unboundid ldap sdk activedirectory management, , want create new user. able create connection activedirectory , add new user attributes, dont know how work attribute useraccountcontrol. attribute used activedirectory store flags, , don't know how set these flags using unboundid ldap sdk. thank help.

some information attribute useraccountcontrol http://msdn.microsoft.com/en-us/library/windows/desktop/ms680832(v=vs.85).aspx

i found out had path wrong, here code modification useraccountcontrol

modification mod = new modification(modificationtype.replace, "useraccountcontrol", usr.getuac().tostring()); modifyrequest req = new modifyrequest(usercn + userou, mod); ldapresult modresult = connection.modify(req); 

Comments