[AAA-172] ODLJndiLdapRealmAuthNOnly fails to load Created: 21/Mar/18  Updated: 21/Mar/18

Status: Open
Project: aaa
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Tom Pantelis Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If you uncomment the ODLJndiLdapRealmAuthNOnly section in the aaa-app-config.xml, it fails to load:

2018-03-20T15:57:49,446 | ERROR | Blueprint Extender: 3 | EnvironmentLoader                | 160 - org.apache.shiro.web - 1.3.2 | Shiro environment initialization failed
org.apache.shiro.config.ConfigurationException: Property 'searchBase' does not exist for object of type org.opendaylight.aaa.shiro.realm.ODLJndiLdapRealmAuthNOnly.

I tested this running the odl-aaa-shiro SFT. In fact there's 3 properties that fail:

    <main>
        <pair-key>ldapRealm.searchBase</pair-key>
        <pair-value>dc=DOMAIN,dc=TLD</pair-value>
    </main>
    <main>
        <pair-key>ldapRealm.groupRolesMap</pair-key>
        <pair-value>&quot;person&quot;:&quot;admin&quot;, &quot;organizationalPerson&quot;:&quot;user&quot;</pair-value>
    </main>
    <main>
        <pair-key>ldapRealm.ldapAttributeForComparison</pair-key>
        <pair-value>objectClass</pair-value>
    </main>

I assume it looks for setters on the class for the properties. There are no setters in the DefaultLdapRealm base class for those properties.

This XML has existed for a while - perhaps a prior version of the shiro lib had those settings. Not sure if there's another way to set them or if they're even needed anymore.


Generated at Wed Feb 07 19:08:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.