Popularity
5.8
Growing
Activity
0.0
Stable
58
3
18
Monthly Downloads: 12,266
Programming language: Elixir
License: MIT License
Tags:
Miscellaneous
Latest version: v0.6.3
exldap alternatives and similar packages
Based on the "Miscellaneous" category.
Alternatively, view exldap alternatives based on common mentions on social networks and blogs.
-
ex_rated
ExRated, the Elixir OTP GenServer with the naughty name that allows you to rate-limit calls to any service that requires it. -
ecto_autoslug_field
Automatically create slugs for Ecto schemas. -
countriex
All sorts of useful information about every country. A pure elixir port of the ruby Countries gem -
gen_task
Generic Task behavior that helps encapsulate errors and recover from them in classic GenStage workers. -
exprint
A printf / sprintf library for Elixir. It works as a wrapper for :io.format. -
Jisho-Elixir
A Japanese dictionary API; a wrapper around Jisho's API (http://jisho.org) -
egaugex
A simple egauge parser to retrieve and parse data from egauge devices -
mixstar
Elixir Mix task to starring GitHub repository with `mix deps.get`ting dependent library -
presentex
Elixir -> HTML/JavaScript based presentation framework intended for showing Elixir code -
ratekeeper
Ratekeeper is a library for scheduling rate-limited actions.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of exldap or a related project?
Popular Comparisons
README
Exldap
A module for working with LDAP from Elixir
Installation
The package can be installed as:
- Add exldap to your list of dependencies in
mix.exs
:elixir def deps do [{:exldap, "~> 0.6"}] end
- Ensure exldap is started before your application:
elixir def application do [applications: [:exldap]] end
Optionally add 'config\config.secret.exs' file with:
use Mix.Config config :exldap, :settings, server: <server address>, base: "DC=example,DC=com", port: 636, ssl: true, user_dn: <user distinguished name>, password: <password>, search_timeout: 1000 # optionally set a search timeout in milliseconds, default is infinity
Usage with configuration set in config.exs
# the default_timeout is infinity
{:ok, connection} = Exldap.connect(TIMEOUT \\ default_timeout) # optionally set the maximum time in milliseconds that each server request may take
{:ok, search_results} = Exldap.search_field(connection, "cn", "test123")
{:ok, first_result} = search_results |> Enum.fetch(0)
result = Exldap.search_attributes(first_result, "displayName")
Usage without configuration
# the default_timeout is infinity
{:ok, connection} = Exldap.connect("SERVERADDRESS", 636, true, "CN=test123,OU=Accounts,DC=example,DC=com", "PASSWORD", TIMEOUT \\ default_timeout)
{:ok, search_results} = Exldap.search_field(connection, "OU=Accounts,DC=example,DC=com", "cn", "useraccount")
{:ok, first_result} = search_results |> Enum.fetch(0)
result = Exldap.search_attributes(first_result, "displayName")
Verify credentials with configuration set in config.exs
# the default_timeout is infinity
{:ok, connection} = Exldap.open(TIMEOUT \\ default_timeout) # optionally set the maximum time in milliseconds that each server request may take
case Exldap.verify_credentials(connection, "CN=test123,OU=Accounts,DC=example,DC=com", "PASSWORD") do
:ok -> IO.puts "Successfully connected"
_ -> IO.puts "Failed to connect"
end
Verify credentials without configuration
# the default_timeout is infinity
{:ok, connection} = Exldap.open("SERVERADDRESS", 636, true, TIMEOUT \\ default_timeout)
case Exldap.verify_credentials(connection, "CN=test123,OU=Accounts,DC=example,DC=com", "PASSWORD") do
:ok -> IO.puts "Successfully connected"
_ -> IO.puts "Failed to connect"
end
Use SSL, validating certificates, from configuration
use Mix.Config
config :exldap, :settings,
server: <server address>,
base: "DC=example,DC=com",
port: 636,
ssl: true,
sslopts: [cacertfile: 'path/to/ca.pem', verify: verify_peer]
user_dn: <user distinguished name>,
password: <password>,
search_timeout: 1000
Use SSL, validating certificates, from configuration
sslopts=[cacertfile: 'path/to/ca.pem', verify: verify_peer]
{:ok, connection} = Exldap.connect("SERVERADDRESS", 636, true, "CN=test123,OU=Accounts,DC=example,DC=com", "PASSWORD", timeout, sslopts)
...