<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Root of this problem is in the ConnId framework. It goes back to
the olden days when it was still Sun Identity Connector Framework.
At that time nobody even thought of such an "advanced" operation
as counting the objects. There was not reason for it. The account
list was not directly presented in Sun IDM user interface. And we
are still in almost the same situation today. MidPoint is actually
one of very few systems that can list resource account in a nice
paged user interface page.<br>
<br>
So, there is no count() operation in ConnId framework. Some time
ago I have extended the ConnId to be able to pass the information
about estimated number of all results during ordinary search
operation. It is kind of a stopgap measure. Not a final solution.
And as far as I know it is only used in the new LDAP-based
connectors (LDAP and AD) and it works only for some servers. Hence
the "2,147,483,647 accounts". That's the number what we assume
when we do not know exact number of all entries. Strictly speaking
it should not be "... of 2,147,483,647 accounts" but "... of
unknown number of accounts" - and I'm pretty sure that there is a
jira for this cosmetic fix. But it won't fix the root cause.<br>
<br>
Of course, the ConnId framework can be extended. And the
connectors can be improved. As midPoint is (very likely) the only
ConnId-based system that presents live account data in GUI it is
also the only system that needs the object count operation. Other
ConnId contributors are not motivated to do it. So we stand alone.
We will gladly improve ConnId (I would enjoy doing that
personally). But we need funding. As usual. <br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
On 02/01/2017 07:11 PM, Jason Everling wrote:<br>
</div>
<blockquote
cite="mid:CAFkZXY7cxA0VwdO0S5JPUy3EujJ8fqDq1yXaA9TFuj6yB2W8pA@mail.gmail.com"
type="cite">
<div dir="ltr">Not an issue, but I noticed just now while I was
checking some changes to my scriptedsql resource attributes that
when looking at the account list from the resources page it
shows that there are 2,147,483,647 when in reality I only have
22,486 accounts from the script result. Is that just hard-coded
somewhere?
<div><br>
</div>
<div><img src="cid:part1.DAA741F4.60046C85@evolveum.com"
alt="Inline image 2" width="409" height="178"><br>
</div>
<div><br>
</div>
<div>
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">JASON</div>
</div>
</div>
</div>
</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>
<br>
</body>
</html>