I would appreciate some help with the following issue. I have two servers running within our network. One is serving as an active directory for the network.
The second server runs a small corporate intranet, i would like to authenticate users of the corporate intranet to authenticate with the Active Directory. I have identified ActiveLDAP as a solution to the problem i have instlalled the required gems and have setup the active ldap yaml file.
It looks like it is connecting with the active directory server but i cannot work out how to check a username and password with the server. i cant seem to get a list of username and passwords.
Here is my YAML:
And my model:
class ActiveUser < ActiveLdap::Base
ldap_mapping :dn_attribute => 'displayName', :classes => 'user'
running the line below blinks back an empty array rather than the names i would expect:
@user = ActiveUser.all
I have also tried:
@user = ActiveUser.find(:all, 'My Name')
Im not very familiar with activedirectory and have am not really sure what the ActiveDirectory tree looks like, it is however as far as im aware a very basic setup. Very little has changed from the default.
Is anyone familiar with the ActiveLdap gem, i have already spent hours looking at the official documentation (http://ruby-activeldap.rubyforge.org/doc/)