directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Zoerner <>
Subject Re: [Client API] Bind Operation
Date Mon, 30 Mar 2009 19:29:50 GMT
Emmanuel Lecharny wrote:

> some first thought about the bind operation. I propose 4 methods :
> - bind() for an anonymous bind
> - bind(String name) for an unauthenticated bind (this is a special case 
> described in RFC 4513, par 5.1.2)
> - bind(String name, String credentials)
> - bind(String name, byte[] credentials) Those two methods are standard 
> bind with a credential as a String or byte[]
> We may define a few others, assuming we may want to use some controls. 
> We also have to deal with SASL bind.

Looks good to me. What about the return value (is it void in all four 
cases?) and the case that authentication fails. Throws it an exception, 
and if so, is it derived from RuntimeException (I hope so)?

Greetings from Ingolstadt,

View raw message