Cannot compile or use custom LDAP Plugin after upgrading to NAM 4.3

  • 7018498
  • 19-Jan-2017
  • 19-Jan-2017

Environment

NetIQ Access Manager 4.3

Situation

Built a custom LDAP plugin with NAM SDK and compiled it succesfully with NAM 4.2. After upgrading to NAM 4.3, users get 500 internal errors accessing the IDP server to login, where the custom class failed to initialise correctly.

Taking the existing code, the following error is thrown when trying to compile on NAM 4.3

super-nam-idp-s1:/tmp # /opt/novell/jdk1.8.0_92/bin/javac -cp "/opt/novell/nids/lib/webapp/WEB-INF/lib/*" LDAPStorePluginAA.java

LDAPStorePluginAA.java:11: error: LDAPStorePluginAA is not abstract and does not override abstract method getFailedLoginCountAttributeName() in LDAPStorePlugin

public class LDAPStorePluginAA extends LDAPStorePlugin

       ^

1 error

 

Resolution

Add the following to existing NAM 4.2 LDAP plugin and recompile


    /**
     * Returns the schema name of the Failed Login Attempts attribute for this directory
     * type. This is the attribute that indicates what entitlements the user has

     * been granted. For example, for eDirectory, this method might return

     * "DirXMLEntitlements".

     *

     * @return The schema name of the Failed Login Attempts attribute.
     */
    public abstract String getFailedLoginCountAttributeName();
    /**

public String getFailedLoginCountAttributeName(){

     return "DirXMLEntitlements”