Giter VIP home page Giter VIP logo

dancer2-plugin-auth-extensible-provider-kankuldap's Introduction

NAME

Dancer2::Plugin::Auth::Extensible::Provider::KankuLDAP - Authentication provider for Dancer2::Plugin::Auth::Extensible mixing LDAP and local database

DESCRIPTION

This class mixes LDAP based authentication with database authorization.

See Dancer2::Plugin::Auth::Extensible for details on how to use the authentication framework.

ATTRIBUTES

host

The LDAP host name or IP address passed to "CONSTRUCTOR" in Net::LDAP.

Required.

options

Extra options to be passed to "CONSTRUCTOR" in Net::LDAP as a hash reference.

basedn

The base dn for all searches (e.g. 'dc=example,dc=com').

Required.

binddn

This must be the distinguished name of a user capable of binding to and reading the directory (e.g. 'cn=admin,dc=example,dc=com').

Required.

bindpw

The password for "binddn".

Required.

username_attribute

The attribute to match when searching for a username.

Defaults to 'cn'.

name_attribute

The attribute which contains the full name of the user. See also:

"name" in Dancer2::Plugin::Auth::Extensible::Role::User.

Defaults to 'displayName'.

user_filter

Filter used when searching for users.

Defaults to '(objectClass=person)'.

role_attribute

The attribute used when searching for role names.

Defaults to 'cn'.

role_filter

Filter used when searching for roles.

Defaults to '(objectClass=groupOfNames)'

role_member_attribute

The attribute who's value should be a user's DN to show the user has the specific "role_attribute"'s value.

Defaults to 'member'.

METHODS

ldap

Returns a connected Net::LDAP object.

authenticate_user $username, $password

get_user_details $username

get_user_roles

dancer2-plugin-auth-extensible-provider-kankuldap's People

Contributors

bigpresh avatar cebjyre avatar chenryn avatar colinmkeith avatar cromedome avatar evanernest avatar hertell avatar m0ses avatar magnusenger avatar melmothx avatar ofosos avatar racke avatar syspete avatar szabgab avatar tordek avatar yanick avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.