Re: Fast openldap schema parser : completed

2018-06-22 Thread Radovan Semancik
onment is broken right now. I'll test those later. -- Radovan Semancik Software Architect evolveum.com On 05/16/2018 10:25 AM, Emmanuel Lécharny wrote: Hi ! I finally committed the new parser. I did my best to have the same API, so ou can use it as if it were the previous version, except that

Re: Qustion regarding schema quirk mode

2018-04-23 Thread Radovan Semancik
rsion. And the I can run the tests with my private directory server ZOO. -- Radovan Semancik Software Architect evolveum.com On 04/15/2018 11:03 PM, Emmanuel Lécharny wrote: Hi guys, I'm trying to speedup the schema parsing (it's currently quite slow, due to the 3 embedded Antlr

Re: Ldap API Custom Controls

2017-09-11 Thread Radovan Semancik
hings that are wrong. -- Radovan Semancik Software Architect evolveum.com On 09/08/2017 04:11 PM, CRAIG BENNER wrote: Thanks Shawn, I was going to ask that. But I got wireshark working. Below is the packet I'm assuming we want to see. In concept it looks correct, but i'm not sure wh

Re: Ldap API Custom Controls

2017-09-04 Thread Radovan Semancik
to be very rare. If you start with existing control that is somehow similar it is not difficult to implement a new control. -- Radovan Semancik Software Architect evolveum.com

Re: Ldap API Custom Controls

2017-09-03 Thread Radovan Semancik
(org.apache.directory.api.ldap.extras.controls.ad.AdDirSync). It is enough to have some basic idea how LDAP protocol works and how the API works. Most of the work is mostly copy&paste. There are 3-4 classes to create. It is not difficult to figure out. -- Radovan Semancik Software Architect evolveum.com On 09/03/2017 0

Re: LDAP API 1.0 status

2017-01-24 Thread Radovan Semancik
Hi, This looks like a nice development. Thanks. I'll test it with my multi-LDAP testbed. But it will take a week or two until I get to that. -- Radovan Semancik Software Architect evolveum.com On 01/23/2017 10:23 AM, Emmanuel Lécharny wrote: Hi guys, a quick update on what'

Re: Last needed feature for teh API : referral handling

2016-11-14 Thread Radovan Semancik
se ConnectionManager and let the API do the smart stuff. One way or another the "main" code will use the operations from LdapConnection interface. But this is not a simple thing to do. I would suggest not to hold the 1.0 release and plan this for 2.0. For this to work well we will n

Re: caseIgnoreIA5Match and normalizers

2016-10-20 Thread Radovan Semancik
NoOp. I've tried with both OpenLDAP and OpenDJ schema. Anyway, thanks for answer. Now I know that it is supported to be a different normalizer - as I thought. So I can look for the problem. -- Radovan Semancik Software Architect evolveum.com

caseIgnoreIA5Match and normalizers

2016-10-20 Thread Radovan Semancik
rmalized. And therefore DNs such as dc=EXAMPLE,dc=COM and dc=example,dc=com are considered to be different. -- Radovan Semancik Software Architect evolveum.com

Re: LDAPConnection fixes

2016-10-16 Thread Radovan Semancik
s another thing that. But that can wait. Let's have the 1.0 release out so we can start fixing things properly. -- Radovan Semancik Software Architect evolveum.com

Re: Error handling: cursor time out

2016-05-12 Thread Radovan Semancik
On 05/10/2016 03:08 PM, Radovan Semancik wrote: We should add a LdapConnectionTimeOutException class for that purpose. OK, thanks. I'll do that tomorrow and I'll test it. After that I'm OK for the release. This small improvement is committed and tested. So I'm gree

Re: New LDAP client patch

2016-05-10 Thread Radovan Semancik
ure that is not enabled by default. -- Radovan Semancik Software Architect evolveum.com

Re: New LDAP client patch

2016-05-10 Thread Radovan Semancik
ly need an review from someone else (Emmanuel?) -- Radovan Semancik Software Architect evolveum.com - Original Message - > From: "Kristinn Örn Sigurðsson" > To: api@directory.apache.org > Sent: Tuesday, May 10, 2016 3:12:38 PM > Subject: Re: New LDAP client p

Re: Error handling: cursor time out

2016-05-10 Thread Radovan Semancik
> We should add a LdapConnectionTimeOutException class for that purpose. OK, thanks. I'll do that tomorrow and I'll test it. After that I'm OK for the release. -- Radovan Semancik Software Architect evolveum.com

Re: Dn/Rdn/Ava refactoring : results

2016-05-10 Thread Radovan Semancik
ng would not be that easy to do. I see that as something that is definitely after 1.0.0. SASL external would be nice, but if there is nobody to work on that in next couple of weeks (not me) then I see no point holding back 1.0.0. just for that. -- Radovan Semancik Software Architect evolveum.com

Re: Dn/Rdn/Ava refactoring : results

2016-05-09 Thread Radovan Semancik
" has some date :-) At least some estimate. -- Radovan Semancik Software Architect evolveum.com

Error handling: cursor time out

2016-05-09 Thread Radovan Semancik
s. Is InvalidConnectionException the same situation as timeout? Wouldn't we want a new TimeOutException for this (as subclass of LdapException)? Or is there any other (e.g. Mina-based) mechanism for this? -- Radovan Semancik Software Architect evolveum.com

Re: Dn/Rdn/Ava refactoring : results

2016-05-09 Thread Radovan Semancik
Hi, Congrats. This looks like a great improvement. But ... it would be probably good to release API 1.0.0 before you merge in the branch. Any plans for that? -- Radovan Semancik Software Architect evolveum.com On 05/09/2016 12:38 PM, Emmanuel Lécharny wrote: Hi ! that's it, I&#

Re: Value classes refactoring

2016-03-24 Thread Radovan Semancik
ertain to break client code compatibility. -- Radovan Semancik Software Architect evolveum.com

Re: Value classes refactoring

2016-03-24 Thread Radovan Semancik
fashion? E.g. prepare the string only if someone asks for it and then store the prepared value for the entire Value lifetime. If Value is immutable then this approach should be safe. -- Radovan Semancik Software Architect evolveum.com On 03/24/2016 12:44 AM, Emmanuel Lécharny wrote: Hi guys

Re: Referral support

2016-03-04 Thread Radovan Semancik
is usually some application-specific logic involved it is perhaps not the best candidate to invest the development time. -- Radovan Semancik Software Architect evolveum.com On 03/04/2016 12:34 AM, Emmanuel Lécharny wrote: Le 03/03/16 22:52, SG a écrit : I' am using LDAP API 1.0.0-M33

Re: Maybe Cursor should also extends Closable

2016-02-02 Thread Radovan Semancik
in a day. So gradually improving the status quo seems to be a good way to take. -- Radovan Semancik Software Architect evolveum.com On 01/29/2016 10:53 AM, Emmanuel Lécharny wrote: Le 29/01/16 10:06, Maxim Solodovnik a écrit : sorry for cross-posting, but I have no response in user list

Re: LDAP API 1.0.0-M32 release soon ?

2015-09-28 Thread Radovan Semancik
OK for me. I've checked our tests and everything seems to work fine with the latest trunk. On 09/24/2015 05:48 PM, Emmanuel Lécharny wrote: Hi guys, I'd like to cut a release of teh API soon enough. Is there any objection ? thanks ! -- Radovan Semancik Software Architect evolveum.com

Re: Fwd: Re: [LDAP API] Schema aware connection

2015-09-18 Thread Radovan Semancik
ted this magnitude of schema inconsistencies either. I guess that the real world always has a bunch of surprises in store, no matter how experienced you are. -- Radovan Semancik Software Architect evolveum.com

Re: Fwd: Re: [LDAP API] Schema aware connection

2015-09-16 Thread Radovan Semancik
ork. Speaking politically correctly this is a little bit of a mess :-) I deserves to be cleaned up. -- Radovan Semancik Software Architect evolveum.com On 09/15/2015 02:46 PM, Emmanuel Lécharny wrote: Le 15/09/15 14:39, Emmanuel Lécharny a écrit : Forwarding this mail who deserves to be s

Re: Relaxed/quirks mode and OIDs

2015-08-28 Thread Radovan Semancik
bout the server and the studio. So I've figured it is better to stay on the safe side and discuss that before implementing it. -- Radovan Semancik Software Architect evolveum.com

Relaxed/quirks mode and OIDs

2015-08-28 Thread Radovan Semancik
relaxed mode to the registries (OidRegistry class). Set this up when the registries are created. Skip the Oid.isOid() check when in relaxed mode. I can quickly implement any of these options. But as usual, I need a blessing :-) What do you think? -- Radovan Semancik Software Architect

Schema error handling

2015-08-18 Thread Radovan Semancik
ctiveConnectio ns' SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{64512} X-NDS_NAME 'RADIUS:Active Con nections' X-NDS_NOT_SCHED_SYNC_IMMEDIATE '1' ) I could not believe my eyes when I've seen that. I still hope that this is really some kind of my error. But I have confirmed it in two

Re: Binary values and humanRedable flag

2015-08-10 Thread Radovan Semancik
to work with UTF-8, whoich would be a major burden. If the server is using StringValue then you will not need to change anything. Interface will remain the same and behavior compatible (if you do not think about "comaptible bugs" of course). Life is complicated... Maybe not that much :-) -- Radovan Semancik Software Architect evolveum.com

Re: Binary values and humanRedable flag

2015-08-10 Thread Radovan Semancik
On 08/10/2015 03:10 PM, Emmanuel Lécharny wrote: Le 10/08/15 13:33, Radovan Semancik a écrit : On 08/10/2015 12:42 PM, Emmanuel Lécharny wrote: There is no flag that says an Attribute is H-R or not. The information is provided in RFC 22524.3.2 <https://tools.ietf.org/html/rfc2252#section-4.

Re: Binary values and humanRedable flag

2015-08-10 Thread Radovan Semancik
lve this kind of issues. This specific eDir GUID problem is probably my fault as the Studio seems to work with the GUID without any problems. I'll report on that later when I investigate it. Anyway, the API is currently not very intuitive with the BinaryValue, StringValue and H/R flags. Simplification will be a great help for new API users. -- Radovan Semancik Software Architect evolveum.com

Binary values and humanRedable flag

2015-08-10 Thread Radovan Semancik
te cannot be added is lost. I cannot report back to the higher layers anything better than "failed to add foo to bar". But the user will not know what was the reason. -- Radovan Semancik Software Architect evolveum.com

Re: OpenLDAP schema

2015-03-23 Thread Radovan Semancik
On 03/20/2015 04:07 PM, Radovan Semancik wrote: https://github.com/Evolveum/directory-shared/commit/b941ff690a41cd03b31679759dcf2fb367b1cb83 I had a closer look at this. Tests are failing after my modification. The reason seems to be this: (Registries:1344) public List add( List errors

Re: OpenLDAP schema

2015-03-20 Thread Radovan Semancik
On 03/20/2015 02:42 PM, Radovan Semancik wrote: I'll commit that to my github version once I got OpenLDAP roughly working. I hope to have it in an hour or two. Then you can have a look and check whether I haven't produced some disaster (which may happen). So. here it is: https://

Re: OpenLDAP schema

2015-03-20 Thread Radovan Semancik
ting LDAP servers has some issues, but honestly I haven't expected that it is such a disaster. -- Radovan Semancik Software Architect evolveum.com

Re: OpenLDAP schema

2015-03-20 Thread Radovan Semancik
. Let me experiment with this a bit using real OpenLDAP and 389ds instances. I'll report the results. -- Radovan Semancik Software Architect evolveum.com

Re: OpenLDAP schema

2015-03-19 Thread Radovan Semancik
ime I have discovered that the SchemaManager and Registries have "relaxed" mode. I'm trying to use that to get the (hugely) tolerant behavior that I'm looking for. As an experiment. Let's see how it goes. -- Radovan Semancik Software Architect evolveum.com

OpenLDAP schema

2015-03-19 Thread Radovan Semancik
error be muted when a quirks mode is on? Or is that too much and we need something like superquirks mode? ;-) The studio obviously works with OpenLDAP. Does anybody know how does the studio manages this? -- Radovan Semancik Software Architect evolveum.com

VLV Response Control

2015-03-18 Thread Radovan Semancik
for it in "directory-shared", but I have tested it with my LDAP Connector and OpenDJ and it seems to work fine. -- Radovan Semancik Software Architect evolveum.com

Schema and network connect improvements (pull request)

2015-03-11 Thread Radovan Semancik
directory API with these modifications seems to work well with OpenDJ 2.6.2 (including good schema support). Testing with OpenLDAP and 389ds will follow. -- Radovan Semancik Software Architect evolveum.com

Re: isHumanReadable in LdapSyntax

2015-03-08 Thread Radovan Semancik
Hi, Yes, of course. That was exactly my goal. ... and I thank you! -- Radovan Semancik Software Architect evolveum.com On 03/08/2015 06:17 PM, Emmanuel Lécharny

Re: isHumanReadable in LdapSyntax

2015-03-05 Thread Radovan Semancik
ng real LDAP servers? -- Radovan Semancik Software Architect evolveum.com On 03/05/2015 07:08 PM, Emmanuel Lécharny wrote: We declare the tags in a XXXTags file, like in : public enu

Re: isHumanReadable in LdapSyntax

2015-03-05 Thread Radovan Semancik
I assume that there is a nicer way to do that. I mean the encoding of this part of VLV request control: target CHOICE { ... -- Radovan Semancik

Re: isHumanReadable in LdapSyntax

2015-03-05 Thread Radovan Semancik
On 03/05/2015 05:16 PM, Emmanuel Lécharny wrote: Le 05/03/15 16:32, Radovan Semancik a écrit : On 03/05/2015 02:50 PM, Emmanuel Lécharny wrote: Ok, I created a JIRA for this one : https://issues.apache.org/jira/browse/DIRAPI-223 And I fixed it too. It should now work as expected. It looks

Re: isHumanReadable in LdapSyntax

2015-03-05 Thread Radovan Semancik
VirtualListView (VLV) request and response controls in the API. Therefore I'm implementing it now. -- Radovan Semancik Software Architect evolveum.com

isHumanReadable in LdapSyntax

2015-03-04 Thread Radovan Semancik
seemed to me as an obvious bug. But when I've changed it to "return true" then the SchemaObjectRendererTest fails ... in a quite strange way (NPE). I do not feel to be very strong here and I'm not really sure what I'm doing. Could anyone please have a look and help me

Re: Client API Schema support

2015-02-06 Thread Radovan Semancik
antlr encoures? Or some other trick? -- Radovan Semancik Software Architect evolveum.com On 01/27/2015 11:50 AM, Emmanuel Lécharny wrote: I have modified the DefaultSchemaLoader constructor to load the schema fr

Re: Client API Schema support

2015-01-26 Thread Radovan Semancik
rse also OpenLDAP) all seems to support subschemasubentry in root DSE. And they all return the schema in what seems to be the RFC format. There may be some issues, of course. But it looks like that the support for these servers should not be difficult to implement. --

Re: Client API Schema support

2015-01-26 Thread Radovan Semancik
r servers later on. -- Radovan Semancik Software Architect evolveum.com

Re: Client API Schema support

2015-01-22 Thread Radovan Semancik
n of what you want to do in order to drive you toward the various classes of teh API. Maybe if you can describe how to support OpenLDAP server there I think I can figure out the rest. -- Radovan Semancik Software Architect evolveum.com

Client API Schema support

2015-01-22 Thread Radovan Semancik
his is the right way to build it ... is there anything that I should read to be able to contribute? Or some recommendations? -- Radovan Semancik Software Architect evolveum.com