directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject WhoAmI implementation
Date Mon, 24 Mar 2014 23:38:12 GMT
Hi guys,

now hat I cleaned up the extended operation code, I'm implementing the
WhoAmI operation (RFC 4532).

The response is supposed to send back the authId, which is either an
userId or a Dn id (depends on if it staets with 'u:' or 'dn:').

At this point, the RFC stipulates that the content is eiher a valid DN
('dn:...') or a set of UTF8 ('u:...'), which means we should keep the
content as a byte[]. Now, all the exemples I see o the web are
considering the value as a String, so what about exposing this interface :

WhoAmIResponse {
    boolean isDn()
    boolean isUserId
    byte[] getAuthzId()
    Dn getDn()
    String getUserId()
}

wdyt ?

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com 


Mime
View raw message