tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas S. Silva" <lssi...@gmail.com>
Subject Fwd: Custom JNDIRealm with Configuration
Date Thu, 13 Apr 2017 10:58:57 GMT
Hi All,

I am implementing a custom JNDIRealm and I need to pass some
configurations to it.

I tried to pass the configuration via Real configuration

<Realm className="custom.JNDIRealm"
debug="99"
...
...
referrals="follow"
*configurationPattern*=".*CN[\s]*=[\s]*([^,@]*).*"
...
...
/>

and in my code I define the setter and getter for
*configurationPattern* but when I debug it doesn't seems to
be set? I also need to add more parameters that may
not fit Realm.
Can I access Tomcat configuration from code?

Thanks for the help in advance.

Cheers,
Lucas

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message