Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Prioritize LDAP support

Open rockneverdies55 opened this issue 11 years ago • 35 comments

It would make adopting or checking out Rocket.Chat much easier for organizations if LDAP (and Kerberos too possibly) was supported.

In Readme it's listed as a planned feature however it's not in any of the current milestones.

Is it possible to prioritize LDAP support?

rockneverdies55 avatar Jun 08 '15 10:06 rockneverdies55

:+1: It sure be nice to have it and it is really important if you want to get organizations into this product. They are key to the success of this project.

shahar3012 avatar Jun 08 '15 11:06 shahar3012

Hi all,

I am karthick. I have just started looking through Meteor,node and all those cool stuffs.

Could someone please suggest me some simple task to kick start my contribution ?

On Mon, Jun 8, 2015 at 5:10 PM, shahar3012 [email protected] wrote:

[image: :+1:] It sure be nice to have it and it is really important if you want to get organizations into this product. They are key to the success of this project.

— Reply to this email directly or view it on GitHub https://github.com/RocketChat/Rocket.Chat/issues/172#issuecomment-109959335 .

Thanks, Karthick

DISCLAIMER:

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Opinions, conclusions and other information in this message that do not related to official business of the company shall be understood to be neither given nor endorsed by Ideas2IT Technologies. Any information contained in this email, when addressed to Clients is subject to the terms and conditions in governing the client contract.

mrkarthick1409 avatar Jun 08 '15 12:06 mrkarthick1409

@karthick-i2i I don't think this is the right place to ask that. but, you can see the issues list and pick one you think is the easiest to do. ;)

@rockneverdies55 and @shahar3012 , what you think is the most important thing on LDAP integration? The authentication? The structure?

sampaiodiego avatar Jun 08 '15 17:06 sampaiodiego

Some options to deploy something fast.

https://atmospherejs.com/?q=ldap

engelgabriel avatar Jun 08 '15 17:06 engelgabriel

@sampaiodiego - I'm inclined to say "authentication" but at the same time I'm not really sure what you mean by "structure"...

rockneverdies55 avatar Jun 08 '15 18:06 rockneverdies55

@rockneverdies55 I know that LDAP (or active directory) can store a lot of "data" (such as groups).

An LDAP integration could create a room for every "group" (or whatever), but this could be a lot complex.

An authentication support could be easy to do, on the first configuration page ( #96 ) you may choose if the Rocket.Chat uses LDAP authentication or others methods.

sampaiodiego avatar Jun 08 '15 18:06 sampaiodiego

Yes, I definitely agree. For now authentication should be the primary goal as a first step.

rockneverdies55 avatar Jun 08 '15 18:06 rockneverdies55

:+1:

Right now, LDAP auth is one of the reasons why I stick with Let's Chat. Would be cool if RocketChat added support for it.

dfyx avatar Jun 09 '15 09:06 dfyx

By Kerberos you mean REMOTE_USER header or user/password?

Schniz avatar Jun 09 '15 19:06 Schniz

@Schniz - By kerberos, I meant support for authenticating users via Kerberos. So the direct answer to your question would be user/password probably... But I'm not very clear on your question either; Kerberos vs REMOTE_USER?

rockneverdies55 avatar Jun 10 '15 12:06 rockneverdies55

@rockneverdies55 I think what @Schniz meant is that it would be nice to have a Kerberos authentication that works with REMOTE_USER header. Rocket.Chat will authenticate users based on the REMOTE_USER header that was passed by a proxy server like Apache that does the user authentication.

The REMOTE_USER approach is more easy to implement becuase you don't need to deal with the user authentication itself, only to support this type of login and/or adding the user to the db. You get the username in the header and uses it to login the user.

If you decide to make a complete SSO solution you could use Kerberos library with meteor that does the authentication and all the things that I have mentioned.

I don't think you should go to user/password authentication because in most cases organizations don't use username and password for SSO, they use smart cards or other biometric devices to identify users so in such case user/password is no longer needed - the credentials received from the operating system that support such things.

shahar3012 avatar Jun 11 '15 16:06 shahar3012

@shahar3012 :+1:

Schniz avatar Jun 11 '15 16:06 Schniz

I'll add a bit to it. Many organizations use Kerberos as the SSO, without using the user/passwords but using tickets via GSSAPI.

So why shouldn't we use GSSAPI? well, there is no node module available yet for it. I had a worker in my organization who developed a nice library using the SSPI Apache httpd plugin for node. in C++ of course. but IMHO, its a bit too much and unfortunately can't be open sourced. :sob:

many orgs use Nginx or httpd as their Reverse Proxy services and use their SSO plugins in that way by providing a request header called X-Remote-User or REMOTE_USER to the app.

There's even a passport plugin implementing this type of authentication called passport-reverseproxy

Schniz avatar Jun 11 '15 16:06 Schniz

LDAP auth is important for me as well.

tracphil avatar Jun 21 '15 00:06 tracphil

Hello,

Also needing the ldap backend to try it in a brazilian government company ;-)

Congrats guys, you are doing an amazing jog !

douglas avatar Jun 23 '15 15:06 douglas

LDAP support is now available! We need to add a settings config for defining host and other parameters. Currently it is hardcoded in /server/lib/ldap.coffee with a testing server.

marceloschmidt avatar Jun 24 '15 14:06 marceloschmidt

Thank you!

tracphil avatar Jun 24 '15 15:06 tracphil

@marceloschmidt - Thanks for taking care of this.

Is "settings config" stuff in progress currently? Is there an issue or something to follow up the development on that?

rockneverdies55 avatar Jun 24 '15 16:06 rockneverdies55

There is now: #222

marceloschmidt avatar Jun 24 '15 16:06 marceloschmidt

Thanks @marceloschmidt. Would you like to update README so it indicates LDAP is supported now (or like to wait till settings page allows configuration)?

rockneverdies55 avatar Jun 24 '15 18:06 rockneverdies55