
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
= rack-auth-ldap
Rack Middleware LDAP authentication
== Copyright
Copyright (c) 2014 Romain GEORGES. See COPYRIGHT for details. Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <purl.org/net/chneukirchen> for Rack Project
== Presentation
Rack::Auth::Ldap is a basic authentication module with LDAP support Rack::Auth::Ldap is heavily based on Rack:Auth::Basic from the Rack main Project by Christian Neukirchen
This is an additional module for Rack to authenticate users against an LDAP server
== Usage
=== Initialize
In you config.ru, simply add :
require 'rubygems' require 'rack' gem 'rack-auth-ldap' require 'rack/auth/ldap'
require File.dirname(FILE) + '/your_app'
use Rack::Auth::Ldap run Sinatra::Application
this configuration activate the Basic Authentication for the entire application
To use custom configuration file: use RAck::Auth::Ldap, file: '/path/to/my/cconfig.yml'
=== Configure
Create an ldap.yml configuration file with :
production: &ldap_defaults hostname: localhost basedn: ou=groups,dc=domain,dc=tld rootdn: cn=admin,dc=domain,dc=tld passdn: secret auth: true port: 389 username_ldap_attribut: uid
test: <<: *ldap_defaults
development: <<: *ldap_defaults
if you want to deactivate root authentication before user binding :
production: &ldap_defaults hostname: localhost basedn: ou=groups,dc=domain,dc=tld auth: false port: 389 username_ldap_attribut: uid
test: <<: *ldap_defaults
development: <<: *ldap_defaults
to use ldaps add: ldaps: true
to use start tls add: starttls: true
if you need to set openssl options add a "tls_options" hash e.g.: tls_options: ca_path: /my/certificate/dir or tls_options: ca_file: /my/certificate/file
to help debug tls you can add: debug: true which will send debugging messages to stdout
FAQs
Unknown package
We found that rack-auth-ldap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.