alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Lift Framework example source code file (README)

This example Lift Framework source code file (README) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Lift Framework tags/keywords

base, ldap, ldap, ldapvendor, ldapvendor, map, message, regular, server, server, simpleldapvendor, unable, we, we

The Lift Framework README source code

This module provides a LDAPVendor class to perform search and bind operations against a LDAP Server,
and a base class to authentificate LDAP users (using the LDAPVendor)

1: SimpleLDAPVendor
SimpleLDAPVendor extends LDAPVendor class and provides a simple and functional LDAPVendor,
that only needs to provide a parameters var to define the LDAP Server properties .

SimpleLDAPVendor.parameters = () => Map("ldap.url"  -> "ldap://localhost",
                                        "ldap.base" -> "dc=company,dc=com",
                                        "ldap.userName" -> "cn=query,dc=company,dc=com",
                                        "ldap.password" -> "password")

or

SimpleLDAPVendor.parameters = () => SimpleLDAPVendor.parametersFromFile("/some/directory/ldap.properties")

2: LDAPProtoUser
Base class of LDAP users

 We can define :

 - loginErrorMessage = Message displayed when user auth failed, default = "Unable to login with : %s"
 - ldapUserSearch    = LDAP search sentence to search user object using login and password, default = (uid=%s)
 - rolesSearchFilter = LDAP search filter to get the user roles, default value = (&(objectClass=groupOfNames)(member=%s))
 - rolesNameRegex    = Regular expression to get the role name from his dn (maybe we should get object cn attribute or something ?)


 - We can override setRoles function if we want to define roles search manually



Other Lift Framework examples (source code examples)

Here is a short list of links related to this Lift Framework README source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.