I am using Orion 1.5.2 and have a Custom Authentication class called UserManager from orion support. This class is an abstract class and the documentatation specifies that one needs to extend this class and implement three methods such as checkUser, checkPassword, isInGroup.

I have the user authentication data in LDAP and I connect to LDAP in the init() method of the class. The problem comes when I give a wrong user name and/or password. After that all subsequent calls throw an error irrespective of the user name and password supplied.

I tried to debug and figured that connection LDAP is lost in case of exception. This means that I have to connect everytime there is an exception which seems to be an avoidable overhead.

Does anyone have any suggestions/solution to this problem

Thanx a lot in anticipation