This is a simple tool that has been put up together. Here is what happens -
- Checks who is logged in
- Shows notification with help of Cocoa Dialog
- Deletes the login.keychain
- Informs user again that new key chain will be created
- Prompts user to enter password
- Using Expect password is taking and sent ahead to create a new Keychain
- Complete. User is happy. He does not need to call Helpdesk as this application can be deployed via Kiosk / Self Service.
This was a quickly written and can be refined for use in your organization. All the best!!