Feature #100

Add support for Active Directory for authentication in DrQueueOnRails

Added by Andreas Schröder about 8 years ago. Updated over 7 years ago.

Status:NewStart date:04/16/2010
Priority:NormalDue date:
Assignee:Andreas Schröder% Done:

0%

Category:-
Target version:-

profile.rb.ad.patch Magnifier (2.55 KB) Dale B, 04/28/2010 11:45 pm

profile.rb.whitespace.patch Magnifier (3.47 KB) Dale B, 04/28/2010 11:45 pm

profile.rb.ad.and.whitespace.patch Magnifier (4.53 KB) Dale B, 04/28/2010 11:45 pm

History

#1 Updated by Dale B about 8 years ago

I have created a patch to offer this functionality. I couldn't get Active Directory to give me the cn or any other parameter I put in for LDAP_ATTRS, so I just used the login username for the full name. I included logic to keep the functionality for OpenLDAP as it was. Also, I added ENV['LDAP_DOMAIN'] to the environment.rb.example file to use as a conditional to step around the Active Directory code including the aforementioned LDAP_ATTRS profile stuff.

I am including three patch files because there was a whitespace issue in the profile.rb file. profile.rb.ad.patch is just the changes to profile.rb (and environment.rb) needed to make AD work. profile.rb.whitespace.patch is just the changes made to profile.rb that takes care of the whitespace issues. It indents lines 44-93 another tab, and also removes some trailing whitespace on various lines. I included it so you could see that I am not changing any code with the whitespace change. profile.rb.ad.and.whitespace.patch combines the two patches together. This is probably the one to commit as it fixes both, but maybe with git the order that you commit them won't matter.

Hope it helps!

Liveoutloud2day

#2 Updated by Dale B about 8 years ago

BTW these patches were done against current head which I downloaded from

https://ssl.drqueue.org/gitweb?p=drqueue.git;a=snapshot;h=6535dc323e9bb5e31f52d4692f93b342aac3e700;sf=tgz

liveoutloud2day

#3 Updated by Andreas Schröder about 8 years ago

  • Target version changed from 0.64.4 to 0.64.5

Will include this later. Trying to stabilize 0.64.4 first.

#4 Updated by Andreas Schröder over 7 years ago

  • Project changed from DrQueue to DrQueueOnRails
  • Category deleted (DrQueueOnRails)
  • Target version deleted (0.64.5)

Also available in: Atom PDF