Skip to content

dmoulton/adconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"]