Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2010, 03:45 PM
ghadgraft ghadgraft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 ghadgraft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 8 sec
Reputation Power: 0
Using ActiveLDAP for authentication

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:

Code:
production:
  host: 192.168.1.1
  base: DC=HQ,DC=domain,DC=co,DC=uk
  bind_dn: 'HQ\username'
  password: password


And my model:

Code:
class ActiveUser < ActiveLdap::Base
	ldap_mapping :dn_attribute => 'displayName', :classes => 'user'
end


running the line below blinks back an empty array rather than the names i would expect:
Code:
@user = ActiveUser.all

I have also tried:
Code:
@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/)

Reply With Quote
  #2  
Old March 16th, 2010, 08:59 AM
ngayxua ngayxua is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 1 ngayxua User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 59 sec
Reputation Power: 0
map
Chile Tours & Trips

Stretching over half of South America, Chile offers a vast amount of different landscapes; from the massive peaks of Torres del Paine in the south, to the dry deserts and beautiful coastline. Tours in Chile offer something for every type of adventure traveler .

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Using ActiveLDAP for authentication

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap