Package com.jk.core.util
Class JKLDapAuthenticator
java.lang.Object
com.jk.core.util.JKLDapAuthenticator
This class provides LDAP authentication functionality for verifying user
credentials against an LDAP server.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAuthenticed
(String host, int port, String userName, String domain, String password) This method checks if the provided user credentials are authenticated against the LDAP server.
-
Constructor Details
-
JKLDapAuthenticator
public JKLDapAuthenticator()
-
-
Method Details
-
isAuthenticed
public static boolean isAuthenticed(String host, int port, String userName, String domain, String password) throws NamingException This method checks if the provided user credentials are authenticated against the LDAP server.- Parameters:
host
- Specifies the LDAP server host.port
- Specifies the LDAP server port.userName
- Specifies the user's LDAP user name.domain
- Specifies the user's LDAP domain.password
- Specifies the user's LDAP password.- Returns:
- true, if the user credentials are authenticated, false otherwise.
- Throws:
NamingException
- if an error occurs during LDAP authentication.
-