Hi,
I'm building Directory manager to pull the users list from external database. I deployed my plugin through console but the plugin is not categorized as a Directory Manager plugin. To debug my plugin I had included system out statements in getDescription(),getName(), getVersion and getPluginProperties methods and I'm able to see the sys out statements in tomcat server console. I don't see any exceptions too. The plugin is listed when I select Manage Plugins but it is not categorized as a Directory Manager. Can you please help me debug this issue?

2 Comments

  1. I have implemented DirectoryManager class, implemented few methods and left the other methods as it is. This is how my class looks like -
    public class UserManagement extends DefaultPlugin implements DirectoryManager public String getName()

    Unknown macro: { System.out.println("returning name, errors?"); return "User Management Plugin using Directory Manager"; }

    public String getDescription()

    Unknown macro: { System.out.println("returning desc, errors?"); return "User Management plugin to use User roles database as directory manager"; }

    public boolean authenticate(String username, String password)

    Unknown macro: { //if the userName exists in UserRoles table, authentication is successful System.out.println("hi im trying to authenticate"); return true; }

    public Long getTotalUsers()

    Unknown macro: { Long totalUsers=null; System.out.println("hi im trying to authenticate"); return totalUsers; }
  2. Hi,

    can anyone help me resolve this issue provide any sample code for directory manager?