Re: LdapNetworkConnection. add eating exceptions

2021-04-06 Thread Shawn McKinney
> On Apr 5, 2021, at 4:12 PM, Emmanuel Lécharny wrote: > > Stefan is correct. > > There was a discussion about how to react to server's errors. We wanted to > distinguish between technical errors and logical errors (ie server responses > containing LdapResult which is not SUCCESS). > > In

Re: LdapNetworkConnection. add eating exceptions

2021-04-06 Thread Shawn McKinney
> On Apr 5, 2021, at 2:32 PM, Stefan Seelmann wrote: > > I can only speak for API V2 but I think for V1 it's similar. > > I also was surprised by that behavior, but it's "as designed" and makes > sense and is consistent :) > > The LdapConnection methods that take a raw XyzRequest object

Re: LdapNetworkConnection. add eating exceptions

2021-04-05 Thread Emmanuel Lécharny
Hi Shawn, Stefan is correct. There was a discussion about how to react to server's errors. We wanted to distinguish between technical errors and logical errors (ie server responses containing LdapResult which is not SUCCESS). In these last cases, throwing an exception would have make it a

Re: LdapNetworkConnection. add eating exceptions

2021-04-05 Thread Stefan Seelmann
Hi Shawn, I can only speak for API V2 but I think for V1 it's similar. I also was surprised by that behavior, but it's "as designed" and makes sense and is consistent :) The LdapConnection methods that take a raw XyzRequest object also return a raw XyzResponse object. Those only throw an

LdapNetworkConnection. add eating exceptions

2021-04-05 Thread Shawn McKinney
Hello, Stumbled on this today. The error occurs adding entry to directory and constraint violation occurs. The error is expected as I’m manipulating an pw policy attribute that is DSA controlled. I’ve changed the code on adds to be able to forward the DSA control: ``` AddRequest