net.liftweb.ldap

SimpleLDAPVendor

object SimpleLDAPVendor extends LDAPVendor

A simple extension to LDAPVendor to provide configuration methods. The class, parameters* methods and variable are now deprecated in favor of the configure methods on LDAPVendor. See LDAPVendor for more details.

Annotations
@deprecated
Deprecated

Instantiate directly from LDAPVendor

See also

LDAPVendor

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SimpleLDAPVendor
  2. LDAPVendor
  3. SimpleInjector
  4. Injector
  5. Loggable
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Inject [T] extends StackableMaker[T] with Vendor[T]

    Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val DEFAULT_AUTHTYPE : java.lang.String("simple")

    Attributes
    final
    Definition Classes
    LDAPVendor
  7. val DEFAULT_BASE_DN : java.lang.String("")

    Attributes
    final
    Definition Classes
    LDAPVendor
  8. val DEFAULT_FACTORY : java.lang.String("com.sun.jndi.ldap.LdapCtxFactory")

    Attributes
    final
    Definition Classes
    LDAPVendor
  9. val DEFAULT_LOOKUP : net.liftweb.common.Empty.type

    Attributes
    final
    Definition Classes
    LDAPVendor
  10. val DEFAULT_MAX_RETRIES : Int(6)

    Attributes
    final
    Definition Classes
    LDAPVendor
  11. val DEFAULT_PASSWORD : java.lang.String("")

    Attributes
    final
    Definition Classes
    LDAPVendor
  12. val DEFAULT_RETRY_INTERVAL : Int(5000)

    Attributes
    final
    Definition Classes
    LDAPVendor
  13. val DEFAULT_URL : java.lang.String("ldap://localhost")

    Attributes
    final
    Definition Classes
    LDAPVendor
  14. val DEFAULT_USER : java.lang.String("")

    Attributes
    final
    Definition Classes
    LDAPVendor
  15. val KEY_AUTHTYPE : java.lang.String("ldap.authType")

    Attributes
    final
    Definition Classes
    LDAPVendor
  16. val KEY_BASE_DN : java.lang.String("ldap.base")

    Attributes
    final
    Definition Classes
    LDAPVendor
  17. val KEY_FACTORY : java.lang.String("ldap.initial_context_factory")

    Attributes
    final
    Definition Classes
    LDAPVendor
  18. val KEY_LOOKUP : java.lang.String("lift-ldap.testLookup")

    Attributes
    final
    Definition Classes
    LDAPVendor
  19. val KEY_MAX_RETRIES : java.lang.String("lift-ldap.maxRetries")

    Attributes
    final
    Definition Classes
    LDAPVendor
  20. val KEY_PASSWORD : java.lang.String("ldap.password")

    Attributes
    final
    Definition Classes
    LDAPVendor
  21. val KEY_RETRY_INTERVAL : java.lang.String("lift-ldap.retryInterval")

    Attributes
    final
    Definition Classes
    LDAPVendor
  22. val KEY_URL : java.lang.String("ldap.url")

    Attributes
    final
    Definition Classes
    LDAPVendor
  23. val KEY_USER : java.lang.String("ldap.userName")

    Attributes
    final
    Definition Classes
    LDAPVendor
  24. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  25. def attributesFromDn (dn: String): Attributes

    Definition Classes
    LDAPVendor
  26. def bindUser (dn: String, password: String): Boolean

    Attempts to authenticate the given DN against the configured LDAP provider.

    Attempts to authenticate the given DN against the configured LDAP provider.

    Definition Classes
    LDAPVendor
  27. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def configuration : Map[String, String]

    The configuration to use for connecting to the provider.

    The configuration to use for connecting to the provider. It should be set via the configure methods

    Definition Classes
    LDAPVendor
  29. def configure (props: Map[String, String]): Unit

    Configure from the given Map[String,String]

    Configure from the given Map[String,String]

    Definition Classes
    LDAPVendor
  30. def configure (stream: InputStream): Unit

    Configure from the given input stream.

    Configure from the given input stream. The stream is expected to be in a format parseable by java.util.Properties

    Definition Classes
    LDAPVendor
  31. def configure (filename: String): Unit

    Configure from the given file.

    Configure from the given file. The file is expected to be in a format parseable by java.util.Properties

    Definition Classes
    LDAPVendor
  32. def configure (): Unit

    Configure straight from the Props object.

    Configure straight from the Props object. This allows you to use Lift's run modes for different LDAP configuration.

    Definition Classes
    LDAPVendor
  33. def defaultSearchControls (): SearchControls

    The default SearchControls to use: search the base DN with a sub-tree scope, and return the "cn" attribute.

    The default SearchControls to use: search the base DN with a sub-tree scope, and return the "cn" attribute.

    Definition Classes
    LDAPVendor
  34. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  35. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  36. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  38. def getInitialContext (): InitialLdapContext

    This method attempts to fetch the cached InitialLdapContext for the current thread.

    This method attempts to fetch the cached InitialLdapContext for the current thread. If there isn't a current context, open a new one. If a test DN is configured, the connection (cached or new) will be validated by performing a lookup on the test DN.

    Attributes
    protected
    Definition Classes
    LDAPVendor
  39. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  40. def initialContext : InitialLdapContext

    Obtains a (possibly cached) InitialContext instance based on the currently set parameters.

    Obtains a (possibly cached) InitialContext instance based on the currently set parameters.

    Definition Classes
    LDAPVendor
  41. implicit def inject [T] (implicit man: Manifest[T]): Box[T]

    Perform the injection for the given type.

    Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be

    Attributes
    implicit
    Definition Classes
    SimpleInjectorInjector
  42. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  43. val ldapAuthType : Inject[String]

    This controls the type of authentication to use.

    This controls the type of authentication to use.

    Definition Classes
    LDAPVendor
  44. val ldapBaseDn : Inject[String]

    This controls the base DN used for searcheds

    This controls the base DN used for searcheds

    Definition Classes
    LDAPVendor
  45. val ldapFactory : Inject[String]

    This controls the factory used to obtain an InitialContext

    This controls the factory used to obtain an InitialContext

    Definition Classes
    LDAPVendor
  46. val ldapPassword : Inject[String]

    This controls the password used to bind for searches (not authentication)

    This controls the password used to bind for searches (not authentication)

    Definition Classes
    LDAPVendor
  47. val ldapUrl : Inject[String]

    This controls the URL used to connect to the LDAP server

    This controls the URL used to connect to the LDAP server

    Definition Classes
    LDAPVendor
  48. val ldapUser : Inject[String]

    This controls the username used to bind for searches (not authentication)

    This controls the username used to bind for searches (not authentication)

    Definition Classes
    LDAPVendor
  49. val logger : Logger

    Attributes
    protected
    Definition Classes
    Loggable
  50. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  51. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  52. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  53. def openInitialContext (): InitialLdapContext

    This method does the actual work of setting up the environment and constructing the InitialLdapContext.

    This method does the actual work of setting up the environment and constructing the InitialLdapContext.

    Attributes
    protected
    Definition Classes
    LDAPVendor
  54. def processConfig (input: Map[String, String]): Map[String, String]

    This method checks the configuration and sets defaults for any properties that are required.

    This method checks the configuration and sets defaults for any properties that are required. It also processes any of the optional configuration propertes related to context testing and retries.

    This method is intended to be called during update of the default configuration, not during granular override of the config.

    Definition Classes
    LDAPVendor
  55. def propertiesToMap (props: Properties): Map[String, String]

    Attributes
    protected
    Definition Classes
    LDAPVendor
  56. def registerInjection [T] (f: () ⇒ T)(implicit man: Manifest[T]): Unit

    Register a function that will inject for the given Manifest

    Register a function that will inject for the given Manifest

    Definition Classes
    SimpleInjector
  57. val retryInterval : Inject[Long]

    This sets the interval between connection attempts on the InitialContext.

    This sets the interval between connection attempts on the InitialContext. The default is 5 seconds

    Definition Classes
    LDAPVendor
  58. val retryMaxCount : Inject[Int]

    This sets the maximum number of connection attempts before giving up.

    This sets the maximum number of connection attempts before giving up. The default is 6

    Definition Classes
    LDAPVendor
  59. def search (filter: String): List[String]

    Searches the base DN for entities matching the given filter.

    Searches the base DN for entities matching the given filter.

    Definition Classes
    LDAPVendor
  60. val searchControls : Inject[SearchControls]

    This sets the Directory SearchControls instance that is used to refine searches on the provider.

    This sets the Directory SearchControls instance that is used to refine searches on the provider.

    Definition Classes
    LDAPVendor
  61. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  62. val testLookup : Inject[Box[String]]

    This can be set to test the InitialContext on each LDAP operation.

    This can be set to test the InitialContext on each LDAP operation. It should be set to a search DN.

    Definition Classes
    LDAPVendor
  63. def toString (): String

    Definition Classes
    AnyRef → Any
  64. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  65. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  66. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  67. def parameters : () ⇒ Map[String, String]

    Definition Classes
    LDAPVendor
    Annotations
    @deprecated
    Deprecated

    Use the configure(...) methods

  68. def parametersFromFile (filename: String): Map[String, String]

    Annotations
    @deprecated
    Deprecated

    Use the configure(filename : String) method

  69. def parametersFromStream (stream: InputStream): Map[String, String]

    Annotations
    @deprecated
    Deprecated

    Use the configure(stream : InputStream method

  70. def parameters_= (newParams: () ⇒ Map[String, String]): Unit

    Definition Classes
    LDAPVendor
    Annotations
    @deprecated
    Deprecated

    Use the configure(...) methods

  71. def setupFromBoot : Unit

    Annotations
    @deprecated
    Deprecated

    Use the configure() method

Inherited from LDAPVendor

Inherited from SimpleInjector

Inherited from Injector

Inherited from Loggable

Inherited from AnyRef

Inherited from Any