[rt-users] How to automatically disable user account

Joachim Thuau JThuau at spacex.com
Mon Jul 30 11:19:52 EDT 2012


This should get you started:

(&(objectClass=user)(!(objectClass=computer))(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

That is:
* users, not computers, which are mail enabled, and which don't have the bit in userAccountControl set for "disabled account".

>From there, you can write a perl script that go over every user in your RT db, and checks them against this filter via LDAP and updates the users that are disabled in AD...

Thanks,
Jok
--
| Joachim Thuau | IT Systems Engineer - Linux / SpaceX |

From: Kriegers Horst <Horst.Kriegers at loro.ch<mailto:Horst.Kriegers at loro.ch>>
Date: Monday, July 30, 2012 2:48 AM
To: 'ML - rt-users' <rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>>
Subject: [rt-users] How to automatically disable user account

Hi all,

Based on AD user properties “userAccountControl” , I need to automatically disable RT users (similar to unchecking the checkbox "Let User Access RT" in the rt web UI).
It is possible to do this ? With a Perl script ?

Thanks for your help.
Horst






________________________________
Note Importante: Le contenu de ce courriel est uniquement réservé à la personne ou l'organisme à qui il est destiné. Si vous n'êtes pas le destinataire prévu, veuillez nous en informer au plus vite et détruire le présent courriel. Dans ce cas, il ne vous est pas permis de copier ce courriel, de le distribuer ou de l'utiliser de quelque manière que ce soit.

________________________________
Important Notice: The content of this e-mail is intended only and solely for the use of the named recipient or organization. If you are not the named recipient, please inform us immediately and delete the present e-mail. In this case, you are not allowed to copy, distribute or use this e-mail in any way.

________________________________



More information about the rt-users mailing list