# EctoLdap
[![Build Status](https://travis-ci.org/jeffweiss/ecto_ldap.svg?branch=master)](https://travis-ci.org/jeffweiss/ecto_ldap)
[![Coverage Status](https://coveralls.io/repos/github/jeffweiss/ecto_ldap/badge.svg?branch=master)](https://coveralls.io/github/jeffweiss/ecto_ldap?branch=master)
**Ecto Adapter for LDAP**
## Installation
[From Hex](https://hex.pm/docs/publish), the package can be installed as follows:
1. Add ecto_ldap to your list of dependencies in `mix.exs`:
def deps do
[{:ecto_ldap, "~> 0.2"}]
end
2. Ensure ecto_ldap is started before your application:
def application do
[applications: [:ecto_ldap]]
end
3. Specify Ecto.Ldap.Adapter as the adapter for your application's Repo:
config :my_app, MyApp.Repo,
adapter: Ecto.Ldap.Adapter,
hostname: "ldap.example.com",
base: "dc=example,dc=com",
port: 636,
ssl: true,
user_dn: "uid=sample_user,ou=users,dc=example,dc=com",
password: "password",
pool_size: 1