#1 2017-03-29 13:08:52

milans
Member
Registered: 2017-02-07

Editing of imported AD users

When we import AD users by script ldapimport.groovy, users imported are found beneath external OU. All imported users are "locked", meaning that I can not edit it. How to amend ldapimport.groovy to enable imported users attributes editing (e.g. title or email).

Thanks
Milan

Offline

#2 2017-03-29 13:26:56

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Editing of imported AD users

Hi milans,

this is done in the script with umNode.setWriteProtection(true);

Since the ldapimport.groovy is meant to be used regularly, you should check what happens when you edit your user and run again the ldapimport.groovy.
If you want to manually remove the write protection, you can edit the records in the table RS_USERMANAGER_NODE and set flags=0.

Cheers,
Eduardo

Offline

#3 2017-05-17 11:51:02

milans
Member
Registered: 2017-02-07

Re: Editing of imported AD users

Hello Eduardo,

I have tried changing umNode.setWriteProtection(true);  to umNode.setWriteProtection(false);, and I have reimported AD users. But they are still locked. Or should I just remove this line from ldapimport.groovy script?

Best regards
Milan

Offline

#4 2017-05-17 13:12:46

Rodion
Member
Registered: 2017-05-17

Re: Editing of imported AD users

Hello milans,

I reconstructed your situation and it works fine with my script.
You have just to turn the umNode.setWriteProtection(true); - flag to false. The script will automatically update this property of the object at next run.
If you already set it as you said it means there are other changes you should have done.
Try to update your flags manually in the db as eduardo described above or post please your script for checking.

Best regards,
Rodion

Offline

#5 2017-05-19 08:30:08

milans
Member
Registered: 2017-02-07

Re: Editing of imported AD users

Hello Rodion, 

I tried again, and it works.

Thank you!

Offline

#6 2017-05-20 06:40:09

Shutter
Member
Registered: 2017-05-11

Re: Editing of imported AD users

milans wrote:

Hello Rodion,

I tried again, and it works.

Thank you!

I just tried it and got it to work too!

Last edited by Shutter (2021-10-22 15:24:31)

Offline

Board footer

Powered by FluxBB