Custom JSP taglib. Two body tags check authentication against the given LDAP server. Tag isAuthenticated executes own body if user is authenticated and tag isNotAuthenticated executes own body if user is not authenticated.
For example:
Tags are:
isAuthenticated
Executes own body if user is authenticated against the given LDAP. Parameters are:
1) factory context factory class. E.g.: com.sun.jndi.ldap.LdapCtxFactory
2) user user name.
3) password password
4) url url for LDAP server
5) level Optional parameter: authentication level.
Possible values are none, simple, strong.
6) protocol Optional parameter: authentication protocol. E.g. ssl
isNotAuthenticated
Executes own body if user is not authenticated against the given LDAP. Parameters are:
1) factory context factory class. E.g.: com.sun.jndi.ldap.LdapCtxFactory
2) user user name.
3) password password
4) url url for LDAP server
5) level Optional parameter: authentication level.
Possible values are none, simple, strong.
6) protocol Optional parameter: authentication protocol. E.g. ssl
for downloading:
Library: ldaptag.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.