Promoting a non-privileged user to a privileged user

Hello,

I’m using RT with the LDAP patch. Everything is working as expected:
logins, auto updating user information, etc.

However imagine the following situation:
1 - A user sends an e-mail to RT and is auto created as a non-
privileged user.
2 - Later on that user is added to the LDAP (in my case to an LDAP
group), to be part of the staff.
3 - User tries to login and gets thrown to the self-service page…

I want to modify the LDAP patch to allow for escalating a user to
privileged if certain conditions apply.
However I don’t know the correct way to do this escalation… I don’t
quite understand how RT uses ACLs and Principals to get this working.

Thank you for your time!
Any help is appreciated,

Paulo F. Andrade
pauloandrade@ist.utl.pt

At Monday 3/31/2008 02:16 PM, Paulo Filipe Andrade wrote:

I want to modify the LDAP patch to allow for escalating a user to
privileged if certain conditions apply.
However I don’t know the correct way to do this escalation… I don’t
quite understand how RT uses ACLs and Principals to get this working.

Paulo,

If you have an RT::User object (e.g. $user ) you can do this to make
the user privileged:

$user->SetPrivileged(1);

Steve

Stephen Turner
Senior Programmer/Analyst - SAIS
MIT Information Services and Technology (IS&T)