Disable regular auth and only allow LDAP?
Closed
Disable regular auth and only allow LDAP?
Created by: jacobfike
So, I am attempting to setup gitlab as a possible replacement for github for my company, but I need to be able to restrict access to valid LDAP accounts.
I can successfully log in through LDAP, but then Gitlab sends me an email with a random password that I can then use to log in with instead of with LDAP. This is bad. The whole point of using LDAP is that if the account is disabled on the LDAP directory, then that account immediately loses all access to any services that use LDAP.
Are there plans to fix this? Ideally, I would like to be able to set LDAP as the only authentication method, and avoid sending the "Your new account is ready" emails.
Can I make this modification myself? Any suggestions?
Created by: jacobfike
Sorry, I should have been more clear, I was asking if anyone knows how to make the modification, not offering to write the code for it. I am not a ruby person. I suppose I could poke around in it, but no promises.
By Administrator on 2012-03-27T22:38:00 (imported from GitLab project)
Created by: anark
I did this using devise_ldap_authenticable instead of omniauth. Code is available here https://github.com/versapay/gitlabhq/tree/devise-ldap-auth but still need to do some work to make the tests work with ldap authentication
By Administrator on 2012-03-28T00:06:29 (imported from GitLab project)
Created by: dosire
Moved to http://feedback.gitlab.com/forums/176466-general/suggestions/3788023-only-allow-login-via-ldap
By Administrator on 2013-03-27T08:41:17 (imported from GitLab project)