R: Subclassing JNDIRealm to return a custom Principal

2021-06-22 Thread Roberto Benedetti
think that some refactoring could make it easier to subclass Tomcat realms to return a custom Principal. -Messaggio originale- Da: Carsten Klein Inviato: lunedì 21 giugno 2021 19:37 A: users@tomcat.apache.org Oggetto: Re: Subclassing JNDIRealm to return a custom Principal Roberto

Re: Subclassing JNDIRealm to return a custom Principal

2021-06-21 Thread Carsten Klein
Roberto, On 21.06.2021 18:31, Roberto Benedetti wrote: Hello, in our product we subclassed JNDIRealm to return a custom Principal with attributes retrieved from Active Directory (bug 65391 is going to add support for that). We overrode authenticate(DirContext, String, String) to retrieve the

Re: Subclassing JNDIRealm to return a custom Principal

2021-06-21 Thread Mark Thomas
On 21/06/2021 17:31, Roberto Benedetti wrote: Hello, in our product we subclassed JNDIRealm to return a custom Principal with attributes retrieved from Active Directory (bug 65391 is going to add support for that). We overrode authenticate(DirContext, String, String) to retrieve the attributes

Subclassing JNDIRealm to return a custom Principal

2021-06-21 Thread Roberto Benedetti
Hello, in our product we subclassed JNDIRealm to return a custom Principal with attributes retrieved from Active Directory (bug 65391 is going to add support for that). We overrode authenticate(DirContext, String, String) to retrieve the attributes and return the custom Principal. In Tomcat 9.0.