<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Well, there are some inconsistencies between LDAP Integer and
Java Integer format.</p>
<p>LDAP:<br>
</p>
<pre style="margin: 0em;"><i>RFC 4517, chap. 3.3.16 :
3.3.16. Integer
A value of the Integer syntax is a </i><i><b>whole number of *unlimited
magnitude*</b></i><i>. The LDAP-specific encoding of a value of this syntax is
the optionally signed decimal digit character string representation
of the number (for example, the number 1321 is represented by the
character string "1321").</i>
</pre>
<p>As you can see, the maximum value of LDAP integer is practically
<b>unlimited</b>.<br>
But if the connector recognizes the LDAP Integer value it uses
Java integer for that which has hard limit: 2^31.<br>
<br>
What interesting, setting "long" in the connector schema to
override that, does not work.<br>
I don't know if this is Java or connector issue, probably the
connector.</p>
<p>Can I do something with it without <span id="result_box"
class="short_text" lang="en"><span class="">getting a Java
doctorate?</span></span></p>
<p>Regards<br>
WS<br>
</p>
<br>
<div class="moz-cite-prefix">W dniu 03.02.2018 o 12:27, Wojciech
Staszewski pisze:<br>
</div>
<blockquote type="cite"
cite="mid:86bc1dfc-66d9-b521-ff93-7620a85bd5cd@diagnostyka.pl">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p>Hello!</p>
<p>I'm trying to configure OpenLDAP resource. I am using for the
users some other objectClasses, i.e: "sambaSamAccount".</p>
<p>In the user section of SchemaHandling I added the
auxiliaryObjectClasses:<br>
</p>
<p><auxiliaryObjectClass>ri:sambaSamAccount</auxiliaryObjectClass></p>
<p>But if I go to the resource and try to browse accounts I have
an error:</p>
<p><i>Operation</i><i><b id="id69b"><br>
operation.com.evolveum.midpoint.web.component.data.SelectableBeanObjectDataProvider.searchObjects</b></i>
</p>
<p><i>Message</i><i><br>
</i><i>Couldn't list objects.</i></p>
<dd>
<table class="paramtable">
</table>
</dd>
<dt id="id69e"><i>Error</i><i><br>
</i><i>Got unexpected exception:
java.lang.NumberFormatException: For input string:
"87730534435"</i></dt>
<p>The numeric value that is causing error comes from the
"sambaPwdMustChange" attribute from the "sambaSamAccount" object
class.<br>
This the only place in my LDAP where this particular value
exists.<br>
</p>
<p>In the schema section of resource configuration it was
recognized as Integer data type, as in the ldap schema extension
this is integer:</p>
<p><i>attributetype ( 1.3.6.1.4.1.7165.2.1.29 NAME
'sambaPwdMustChange'</i><i><br>
</i><i> DESC 'Timestamp of when the password will expire'</i><i><br>
</i><i> EQUALITY integerMatch</i><i><br>
</i><i> SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE
)</i><br>
</p>
<p>I modifed the resource schema manually and set this attribute
as "long" and also tried "string" but the error is still the
same.<br>
</p>
<p>I tried to use different connector version, from 1.4.4 up to
1.5.1 and this not helped.<br>
Midpoint version 3.7-post-fixes from yesterday's build.</p>
<p>Any ideas?<br>
Thanks a lot!<br>
WS<br>
</p>
<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>
</body>
</html>