github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jgoday / lift-ldap

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

LDAP module for liftweb authentification — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Patch made for Franz Bettang franz at bett dot ag: 
Javier Goday (author)
Tue Dec 01 07:49:03 -0800 2009
commit  04a9f53bc794aba225804ee9cc8ebdec1dabd239
tree    a1f28ee7448d78a3ccf7e7b0ba20755f454443e2
parent  01edf748dc454edda8b69d5e1c9c2a98b348e4e0
lift-ldap /
name age
history
message
file .gitignore Thu Nov 26 06:31:18 -0800 2009 Initial import [jgoday]
file README Mon Nov 30 11:33:01 -0800 2009 Update README file [Javier Goday]
file pom.xml Thu Nov 26 06:31:18 -0800 2009 Initial import [jgoday]
directory src/ Tue Dec 01 07:52:17 -0800 2009 Patch made for Franz Bettang franz at bett dot ... [Javier Goday]
README
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



Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server