Add support for Active Directory for authentication in DrQueueOnRails
|Assignee:||Andreas Schröder||% Done:|
See for more information:
#1 Updated by Dale B over 7 years ago
- File profile.rb.ad.patch added
- File profile.rb.whitespace.patch added
- File profile.rb.ad.and.whitespace.patch added
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!
#2 Updated by Dale B over 7 years ago
BTW these patches were done against current head which I downloaded from