Hello List,

My environment:
Centos 4.3 x86
courier-authlib-0.58-1
courier-imap-4.1.1-1
openldap-2.2.13-4

Is it possible to have different errors when:
a. Password is incorrect
b. Account is locked / inactive / disabled using "LDAP_FILTER 
(accountStatus=active)"

Right now both error out as '-ERR Login failed.'..

thanks,
- dhawal

Am posting the output from 3 scenarios.

With correct username / password and "accountStatus: active"
[EMAIL PROTECTED] html]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user [EMAIL PROTECTED]
+OK Password required.
pass test123
+OK logged in.
quit
+OK Bye-bye.
Connection closed by foreign host.

With correct username / password and "accountStatus: inactive"
[EMAIL PROTECTED] html]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user [EMAIL PROTECTED]
+OK Password required.
pass test123
-ERR Login failed.
quit
+OK Better luck next time.
Connection closed by foreign host.

With correct username, wrong password and "accountStatus: active"
[EMAIL PROTECTED] html]# telnet localhost 110 Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user [EMAIL PROTECTED]
+OK Password required.
pass test1234
-ERR Login failed.
quit
+OK Better luck next time.
Connection closed by foreign host.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to