Project

General

Profile

Add users to LDAP via redmine?

Added by Julius Streit almost 11 years ago

Hi,

is it possible to have users added to a LDAP via Redmine, or is an external script necessary?

Example of what i want:
User John Smith registers a Redmine user account. He is then automatically added to the LDAP connected to redmine, to then access other services that autenthicate via LDAP with his redmine Login.

Thanks.

Edit: Ruby version 1.9.1
OS Debian Wheezy


Replies (1)

RE: Add users to LDAP via redmine? - Added by Martin Denizet (redmine.org team member) almost 11 years ago

Hello Julius,

Such thing should be possible but maybe it doesn't worth the trouble.
As far as I know, you could:
  1. Hook in the controller before the User is created. If the user is created you wont be able to know the password he choose (hashed).
    You should be able to do that "cleanly" using a plugin.
  2. Send the user information to a Windows Server
  3. Create the domain user (Using PowerShell or C#)
  4. Send the domain user creation success or fail back to the controller
  5. Change the Redmine user settings to use LDAP

The option that seems best to me right now is to write a WebService in C#.
It's maybe possible to make it work directly on Linux with Mono...

However, I've to say that it's not a good practice at all to allow anonymous users to mess with your LDAP.

Cheers,

Martin

    (1-1/1)