|
Here is a short list of links related to this Lift Framework LDAPProtoUser.scala source code file:
Lift Framework example source code file (LDAPProtoUser.scala)
The Lift Framework LDAPProtoUser.scala source code/* * Copyright 2010-2011 WorldWide Conferencing, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.liftweb package ldap import javax.naming.directory.{Attributes} import scala.util.matching.{Regex} import scala.xml.{Elem, NodeSeq} import net.liftweb.http.{LiftResponse, RedirectResponse, S, SessionVar} import net.liftweb.http.js.{JsCmds} import net.liftweb.mapper.{BaseOwnedMappedField, MappedString, MetaMegaProtoUser, MegaProtoUser} import net.liftweb.sitemap.{Menu} import net.liftweb.util.{Helpers} import net.liftweb.common.{Box, Empty, Full} import Helpers._ import scala.util.matching.{Regex} import scala.xml.{Elem, NodeSeq} trait MetaLDAPProtoUser[ModelType <: LDAPProtoUser[ModelType]] extends MetaMegaProtoUser[ModelType] { self: ModelType => override def signupFields: List[FieldPointerType] = uid :: cn :: dn :: Nil override def fieldOrder: List[FieldPointerType] = uid :: cn :: dn :: Nil /** * The menu item for creating the user/sign up (make this "Empty" to disable) */ override def createUserMenuLoc: Box[Menu] = Empty /** * The menu item for lost password (make this "Empty" to disable) */ override def lostPasswordMenuLoc: Box[Menu] = Empty /** * The menu item for resetting the password (make this "Empty" to disable) */ override def resetPasswordMenuLoc: Box[Menu] = Empty /** * The menu item for changing password (make this "Empty" to disable) */ override def changePasswordMenuLoc: Box[Menu] = Empty /** * The menu item for validating a user (make this "Empty" to disable) */ override def validateUserMenuLoc: Box[Menu] = Empty override def editUserMenuLoc: Box[Menu] = Empty /** * User search sentence */ def ldapUserSearch: String = "(uid=%s)" /** * Error messages */ def loginErrorMessage: String = "Unable to login with : %s" def commonNameAttributeName = "cn" def uidAttributeName = "uid" override def loginXhtml : Elem = { <form method="post" action={S.uri}> <table> <tr> <td colspan="2">{S.??("log.in")} |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
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.