Skip to content

dmoulton/adconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f7ed454 · Feb 29, 2012

History

3 Commits
Feb 23, 2011
Feb 23, 2011
Feb 29, 2012
Feb 23, 2011
Feb 23, 2011
Feb 23, 2011
Feb 23, 2011

Repository files navigation

Adconnect is a bare-bones gem for authenticating to an Active Directory server.

Example:

require 'adconnect'

Adconnect::ActiveDirectoryUser.server = "localhost"
Adconnect::ActiveDirectoryUser.port = "389"
Adconnect::ActiveDirectoryUser.base = "DC=example,DC=com"
Adconnect::ActiveDirectoryUser.domain = "example.com"

user = Adconnect::ActiveDirectoryUser.authenticate('myusername','mypassword')

user.cn
=> ["firstname lastname"]