-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utility script for use in periodic account audits #52
Comments
This needs work, but here's a query that comes pretty close: select username_requested || ': ' || first_name || ' ' || last_name || ' <' || email || '>'
from idp_account_request
where request_state = 'APPROVED'
and created_ts < '2013-09-15';
Trac comment by tmitchel (github user: tcmitchell) on 10-03-2013 at 17:51 |
Tidying up a bit for executing as a shell command, with output to stdout (apologies for the long line here):
The Trac comment by tmitchel (github user: tcmitchell) on 10-03-2013 at 17:56 |
Hmm... that should work, but all the historical entries have created_ts null. Is that expected? Trac comment by chaos on 10-03-2013 at 17:59 |
Perhaps the timestamps got loaded into request_ts by the conversion script? Here's a partial select from aslund (staging) with the passwords blobbed out:
Hmm, no, i think those timestamps represent when i ran the [https://shib-idp1.gpolab.bbn.com/manage/fix_accounts.html] script, not when those accounts were initially created. So, i think for the historical entries, the accurate timestamps wound up in Trac comment by chaos on 10-03-2013 at 18:04 |
Can you attach an export of the database for us to work with? We don't have a rich enough dataset to properly create the script. Trac comment by tmitchel (github user: tcmitchell) on 10-04-2013 at 09:40 |
I put a copy of the shib-idp1 database dump in my home directory on macomb:
By the way, i had been thinking of a solution for this ticket more like the python module that backs geni-ops-report in the proto-ch world, because i expect that (as i've done more than once in the proto-ch world), once we have that module, we'll be able to use it to easily solve other problems we have, e.g. nightly status/audit reports we may find we need as we go forward. There's only two tables, so i would think that would be pretty simple, and would make it easy to solve more problems in the future. What do you think? Trac comment by chaos on 10-04-2013 at 11:26 |
To run periodic audits of shib-idp accounts, we need a script that:
with one line for each user whose account is active right now, and was created before the date given by the argument.
Imported from trac ticket #52, created by chaos on 10-03-2013 at 17:19, last modified: 10-04-2013 at 11:26
The text was updated successfully, but these errors were encountered: