I am working on my mac setups and am wanting to ping the server every so often and check to see if their user is enabled or disabled. If Disabled then I will show them the login screen, log them out or something else.. What I need is how to check to see if they are enabled or not through bash...
Chris Whittle wrote:
I am working on my mac setups and am wanting to ping the server every so
often and check to see if their user is enabled or disabled. If
Disabled then I will show them the login screen, log them out or
something else.. What I need is how to check to see if they are enabled
I wrote a script to query IPA for accounts with passwords that are about to expire (so I can nag them with an email to reset their password), and I also added logic in my script to ignore accounts that are disabled. So I needed a way to query my IPA server for this info. I came up with 2 solutions