Skip to content

A small tool used to lookup data information from an LDAP server

Notifications You must be signed in to change notification settings

Frost/ldap_lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LDAP Lookup

A small gem used for looking up stuff from an LDAP server.

Example:

# ldap.yml
server:  localhost
port: 9999
base_dn: ou=Addressbook,dc=localhost,dc=local
fields:
  first_name: givenName
  last_name: sn
  email: mail

# ldap_user.rb
require 'yaml'
LDAPLookup::Importable.settings = YAML.load(File.read('./ldap.yml'))
class LdapUser
  include LDAPLookup::Importable

  attr_accessor :first_name, :last_name, :email
end

LdapUser.from_ldap(email: 'some.one@example.org')
 => #<LdapUser:0xdeadbeef @first_name="some", @last_name="one", @email="some.one@example.org">

About

A small tool used to lookup data information from an LDAP server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages