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

Map LDAP fields to user custom fields

Open maxdang365 opened this issue 8 years ago • 25 comments

Your Rocket.Chat version: (0.62.1 snap)

My settings are as follows:LDAP>User Data Field Map {"#{company}":"customFields.company", " #{title}":"customFields.title", "#{initials}":"customFields.initials"}

When I logged in for the first time , MongoDB as follows .... "requirePasswordChange" : false, "customFields" : { "initials" : "80088" } }

When I logged in the second time: .... "requirePasswordChange" : false, "customFields" : { "company" : "MY Company Name", "title" : " Senior System Administrator" } }

When I logged in for the third time: .... "requirePasswordChange" : false, "customFields" : { "initials" : "80088" } }

This seems to be going on in a regular loop, and it also causes us to show the user's field. Is anyone aware of this problem?

thanks

maxdang365 avatar Mar 19 '18 09:03 maxdang365

Hi @maxdang365 tanks for reporting the problem to us. @rodrigok can you take a look into this and put in right milestone if needed?

theorenck avatar Apr 10 '18 20:04 theorenck

@theorenck @maxdang365 some news on this? I try to setup ldap customfields but also with the help of @frdmn I am not able to sync them into rocket.chat. (They doesnt appear in MongoDB)

Any thoughts?

TheReal1604 avatar Apr 24 '18 09:04 TheReal1604

I have the same problem :( Snap Version 0.66.1 As soon as i add a second customfield sync from ldap the values will change from login to login

djnews24 avatar Jul 06 '18 14:07 djnews24

Still not working with nap Version 0.66.3

djnews24 avatar Jul 30 '18 11:07 djnews24

I confirm, there is such a problem. When more than one customFields is specified, these fields are updated in turn during the logon process, while other fields lose their values. Version of snap 66.3

DRON4eg avatar Aug 01 '18 06:08 DRON4eg

@DRON4eg +1

semack avatar Aug 09 '18 19:08 semack

in 0.68.3 everything worked as it should. At 0.69 the problem returned

DRON4eg avatar Aug 31 '18 08:08 DRON4eg

For some reason, our problem is ignored: (

DRON4eg avatar Nov 12 '18 14:11 DRON4eg

For some reason, our problem is ignored: (

It isn't ignored. It might not be top of the list though. The devs have many consideration, and at the last look something like nearly 2,000 issues which few people want to actually help resolve.

This is Open Source. If you want a quick fix then you can go here https://rocket.chat/pricing Or supply some code via a merge request. Otherwise you'll just have to be patient.

reetp avatar Nov 12 '18 23:11 reetp

+1 for this. We are using MS Active Directory LDAP which is able to add and authenticate new users. Running 0.74.3. I have the following in the Accounts -> Registration -> Custom Fields section:

{ "phone": { "required": false, "type": "text", "public": true }, "cell": { "required": false, "type": "text", "public": true }, "extension": { "required": false, "type": "text", "public": true } }

And the following in Accounts -> Custom Fields to Show in User Info:

[{"Cell": "cell"}, {"Phone": "phone"},{"Extension": "extension"}]

And the following in LDAP ->Sync / Import -> User Data Field Map: (note that ipPhone is an LDAP user-field)

{"cn":"name", "mail":"email", "ipPhone":"Extension", "mobile":"Cell", "telephoneNumber":"Phone"}

Yet, none of the custom fields are pulling in for any LDAP synchronized user.

iesit avatar Feb 28 '19 14:02 iesit

I confirm! The problem is very important! On behalf of the entire user community, I ask the developers to pay attention to it. Regards!

shuum avatar Mar 14 '19 03:03 shuum

This problem continues in version 0.74.3.

ghost avatar Apr 22 '19 07:04 ghost

howto add Custom fields columns in directory view rocket.chat v1.0.3 ?

huutuyenhy avatar May 29 '19 04:05 huutuyenhy

howto add Custom fields columns in directory view rocket.chat v1.0.3 ?

Also interested in this question.

Yures avatar Jul 26 '19 07:07 Yures

What about this issue? I'm stuck on this with setting up our Rocket.Chat cluster :(

dusatvoj avatar Aug 20 '19 09:08 dusatvoj

Got it working with 1.3.2:

{ "phone": { "required": false, "type": "text", "public": true }, "cell": { "required": false, "type": "text", "public": true }, "extension": { "required": false, "type": "text", "public": true } }

And the following in Accounts -> Custom Fields to Show in User Info:

[{"Cell": "cell"}, {"Phone": "phone"}, {"Extension": "extension"}]

And the following in LDAP ->Sync / Import -> User Data Field Map: (note that ipPhone is an LDAP user-field)

{"cn":"name", "mail":"email", "ipPhone":"customFields.extension", "mobile":"customFields.cell", "telephoneNumber":"customFields.phone"}

It seems to only work using the "Background Sync Interval". Clicking the "Background Sync Now" button seems not to update them. I just set the interval to "every 1 mins" and waited for the run before setting it back.

This feature is definetly lacking a lot of documentation!

Falco20019 avatar Aug 23 '19 13:08 Falco20019

@Falco20019 I haven't got it working on 1.3.2. Can you help me where's the mistake on my side? Accounts -> Registration -> Custom Fields: { "phone": { "type": "text", "required": false, "public": true } } Accounts -> Custom Fields to Show in User Info: [{"Phone" : "phone"}] LDAP ->Sync / Import -> User Data Field Map: {"#{cn} #{sn}":"name","mail":"email","telephoneNumber":"customFields.phone"} But it`s not working even after a day of background syncing with user update enabled. Thank's for any help

dusatvoj avatar Aug 25 '19 16:08 dusatvoj

Hi ito your user profile and check if you see the field. Usually there should be a new one that you can manually edit. Just to check as a first step that it recognizes the field

Falco20019 avatar Aug 25 '19 16:08 Falco20019

There's no new field :( image With this settings image

dusatvoj avatar Aug 25 '19 16:08 dusatvoj

Can you check at Accounts -> Registration -> Custom Fields that you are using tabs and not spaces as wirrten in the note there? Other than that, it looks like it should work

Falco20019 avatar Aug 25 '19 16:08 Falco20019