devise_ldap_authenticatable
devise_ldap_authenticatable copied to clipboard
Migrate the main test suite over to using a mocked LDAP server rather than slapd
slapd
is really complicated to set up and configured properly. It'd be a modest undertaking to change around the stubs. Also, there's some additional satisfaction in the full stack LDAP testing that currently takes place.
This doesn't seem like something people are begging for, but I wanted to put up a placeholder issue in case others wanted to contribute their thoughts.
Actually this is something what I'm looking for. I want use CI server for automated testing and I don't really want to install whole LDAP server just perform tests.
I came across these: https://github.com/aanand/fakeldap/ https://github.com/NUBIC/ladle
I don't really like that ladle is using Java :-( I'm luckily living without it on my servers. On the other side, fakeldap doesn't seem to be under development anymore.
We need to get moving on this sooner rather then later. Although the Java dependency is less then ideal, it's definitely better then slapd.
I'm thinking of just forking/rewriting fakeldap, as straight up mocking is probably a better all around approach, but it comes down to time.
https://rubygems.org/gems/ruby-ldapserver is also an option