<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Patrick,<br>
<br>
what are you trying to achieve?<br>
Active Directory connector allows you to interact with
userAccountControl by using the following "virtual" attributes:<br>
- passwordExpired (icfs:passwordExpired)<br>
- PasswordNeverExpires (ri:PasswordNeverExpires)<br>
<br>
and of course the activation/administrativeStatus<br>
<br>
If you need to update the other bits of userAccountControl, I'm not
sure AD connector is capable of doing this.<br>
<br>
I have never tried/needed to directly modify userAccountControl yet.<br>
<br>
Regards,<br>
Ivan<br>
<br>
<div class="moz-cite-prefix">On 03/22/2016 08:11 PM, Schlehuber,
Patrick wrote:<br>
</div>
<blockquote
cite="mid:1C909E70745FE843A5BDBFCC9E11C62A01707C5D@CITESMBX3.ad.uillinois.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I am wanting to modify the
userAccountControl attribute on an account that is visible
by my AD resource. I have extended the AD schema and added
the attribute, I do see this attribute populated correctly
when I view an AD account. When I try to change this attribute
I receive the following error:<o:p></o:p></p>
<p class="MsoNormal">I have tried changing the Resource
definition to make this attribute, string, int, long,
base64Binary all with the same result. What am I missing to
make this attribute modifiable within midPoint?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ConnectorServer.exe Error: 0 : Exception :<o:p></o:p></p>
<p class="MsoNormal">Type: System.InvalidCastException<o:p></o:p></p>
<p class="MsoNormal">Message: Specified cast is not valid.<o:p></o:p></p>
<p class="MsoNormal">Source: FrameworkInternal<o:p></o:p></p>
<p class="MsoNormal">Stacktrace: <o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.ActiveDirectory.CustomAttributeHandlers.UpdateDeFromCa_PasswordNeverExpires(ObjectClass
oclass, UpdateType type, DirectoryEntry directoryEntry,
ConnectorAttribute attribute)
<o:p></o:p></p>
<p class="MsoNormal"> in
d:\midpoint\tgit\openicf\connectors\dotnet\ActiveDirectoryConnector\CustomAttributeHandlers.cs:line
667<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryUtils.UpdateADObject(ObjectClass
oclass, DirectoryEntry directoryEntry, ICollection`1
attributes, UpdateType type, ActiveDirectoryConfiguration
config)
<o:p></o:p></p>
<p class="MsoNormal"> in
d:\midpoint\tgit\openicf\connectors\dotnet\ActiveDirectoryConnector\ActiveDirectoryUtils.cs:line
258<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.Update(UpdateType
type, ObjectClass oclass, ICollection`1 attributes,
OperationOptions options)
<o:p></o:p></p>
<p class="MsoNormal"> in
d:\midpoint\tgit\openicf\connectors\dotnet\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line
1091<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.UpdateImpl.AddAttributeValues(ObjectClass
objectClass, Uid uid, ICollection`1 valuesToAdd,
OperationOptions options)
<o:p></o:p></p>
<p class="MsoNormal"> in
c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\ApiLocalOperations.cs:line
1712<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.ConnectorAPIOperationRunnerProxy.Invoke(Object
proxy, MethodInfo method, Object[] args)
<o:p></o:p></p>
<p class="MsoNormal"> in
c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\ApiLocalOperations.cs:line
247<o:p></o:p></p>
<p class="MsoNormal"> at
___proxy1.AddAttributeValues(ObjectClass , Uid , ICollection`1
, OperationOptions )<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.Framework.Impl.Api.DelegatingTimeoutProxy.Invoke(Object
proxy, MethodInfo method, Object[] args)
<o:p></o:p></p>
<p class="MsoNormal"> in
c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\Api.cs:line
1344<o:p></o:p></p>
<p class="MsoNormal"> at
___proxy1.AddAttributeValues(ObjectClass , Uid , ICollection`1
, OperationOptions )<o:p></o:p></p>
<p class="MsoNormal"> at
Org.IdentityConnectors.Framework.Impl.Server.ConnectionProcessor.ProcessOperationRequest(OperationRequest
request)
<o:p></o:p></p>
<p class="MsoNormal"> in
c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\Server.cs:line
626<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal">Pat<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect
evolveum.com evolveum.com/blog/
___________________________________________________
"Semper ID(e)M Vix."
</pre>
</body>
</html>