Project

General

Profile

How do you switch the default authentication to LDAP when new users register?

Added by Dan Stupka over 12 years ago

When a new user registers their authentication mechanism is set to internal, by default. How do I get this set to LDAP? I saw a note that mentions an LDAP preference somewhere, but I can't find it. Can someone explain how to set the default authentication to LDAP? If this is not available in the GUI, can you please point me to the configuration file and the specific tweak to do this?

LDAP now appears to be working properly with the following settings:

Authentication mode (LDAP)
Name *: DOMAIN_Redmine
Host *: server.co.com
Port *: 3268, LDAPS
Account: DOMAIN\ProcessRedmine
Password: xxxxx
Base DN *: DC=co,DC=com
On-the-fly user creation: X

Attributes
Login *: sAMAccountName
First name: givenName
Last name: sn
Email: mail

Unfortunately, the only way I can get the LDAP authentication selected right now is manually either during account creation, or after the user registers (then I have to switch it to LDAP).

(this was reposting here, just realized this is probably the right forum for this question)


Replies (5)

RE: How do you switch the default authentication to LDAP when new users register? - Added by Dan Stupka over 12 years ago

Hey Terence, Is "Activiate RedmineLDAP" done by simply selecting the "On-the-fly user creation" checkbox on the "Authentication mode (LDAP)" page? If so I've actually selected this and restarted redmine via "sudo /opt/bitnami/ctlscript.sh restart". Unfortunately, still when I register as a new user, the new account "Authentication mode" is still set to "Internal". I've also tried tinkering with the Administration-->Settings-->Authentication page, e.g. setting "Authentication required", but this doesn't appear to have any effect either. It seems like it should work; when I switch the account manually from "Internal" to "AMERICAS_Redmine" the LDAP login appears to work correctly. Any idea what I'm doing wrong here? Do you happen to know the configuration file that this info is stored in? Perhaps I can attempt to set it directly, if the GUI isn't working as intended. Any thoughts?

RE: How do you switch the default authentication to LDAP when new users register? - Added by Terence Mill over 12 years ago

I think you don't have to registervia register link. You shall be able to login with uersanme and pwd provided by ldap. Then user shall be created automcatically with ldap selected as realm.

RE: How do you switch the default authentication to LDAP when new users register? - Added by Dan Stupka over 12 years ago

Thats it! Terence, I feel like an idiot, I had no idea that you were NOT supposed to register if you want to use LDAP. It looks good now, it was working like a charm, but I didnt know it because I had been using register instead of just logging in... Is there an easy way to hide-disable that Register link to force folks to use the LDAP login?

RE: How do you switch the default authentication to LDAP when new users register? - Added by Terence Mill over 12 years ago

We removed the href from the view template, so you would enter url directly (if you know) to go wromg direction.

I don't know the name of the file now, but it should be easy to find. Just search full text (grep) in redmine/app/views folder for "register".
Remove the hyperlink and restart redmine.

    (1-5/5)