Ldap import extension privileged users

Hello List,

I was looking for a way to get a number of users for a new implementation
of RT to automagically set certain users as “privileged” if they were in a
set of groups.

I write a patch and submitted that to the RT-Extension-LDAPImport bug
tracker. But I now realize that this might already be possible, without my
ugly patch.

I’m thinking about undoing my mess and setup a cron job that would do
something similar (run a LDAP query, get a list, and walk all the users,
and “unprivileged” those that are not in the result set, and privilege the
others).

Does anyone have any suggestions?

Thanks,
Jok
| Joachim Thuau | IT Systems Engineer - Linux / SpaceX |
| Cell: 310-890-7937 | Office: 310-363-6153 |

Oops – missed attaching the patch.

This is my first real contribution in perl. Code feedback is welcome! :slight_smile:

Thanks,
Jok
| Joachim Thuau | IT Systems Engineer - Linux / SpaceX |
| Cell: 310-890-7937 | Office: 310-363-6153 |

ldap-import-privileged-filter.diff (2.63 KB)