Hi,
I'm sorry if i'm posting it to the wrong list,

I found small problem in JNDIRealm and I suggest small change.

in method     protected List getRoles(DirContext context,
                              String username, String dn)

is line

                String role = (String) attr.get();

which is throwing ClassCastException, bacause not every attribute can
be converted to String.

So my suggestion is to use this way:

                String role = attr.get().toString();

which should never thrown ClassCastException bacause every objects are
subclass of the Object class.

Can somebody make this change into source for next release?

Thanks

Alesak



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to