Capture Current Logged on User and Pass to a Web Form
I am sorry guys, I've done a search and couldn't see on here - or on Google an easy to understand guide for my request - actually the teachers as they are going insane but :p
Basically we are moving to a SSO structure within WCC and part of that is having global ids which move with the user throughout their education within WCC. This global id gives them access to a range of services using the Shibboleth SSO platform.
We also use these global ids and passwords in AD.
What I want to do is pass the current windows login details (preferably both username and password but I highly doubt the password bit is possible) to the Shibboleth webpage when they open it. I was going to do some form of AutoIT script, but I can't work out how to go about getting the windows username.
Does anyone have any good ideas for this?
The webpage requiring input is here Worcestershire Learning Gateway using the login link on the right. The page first asks for the username and then you submit and then it asks for the password. As stated I want to enter at least the username when prompted and submit the page so that they just have to use the password.
Any help appreciated!
OK - My Final Code for the Day
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Comment=A little script to sit and run in the background of child logons to automatically re-enter their globalid. This is a huge time saver especially for the younger children that can't type quickly.
#AutoIt3Wrapper_Res_Description=Passes Username to a Shibboleth SSO Form
#AutoIt3Wrapper_Res_LegalCopyright=Alex 'Freedom' Haines
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; Start the main loop.
; Wait until the logon window shows itself...
WinWaitActive("Login - Windows Internet Explorer", "https://shibboleth.networcs.net/SSO/auth/networcs_auth2/index.php")
; Make sure this is the username window...
; WinWaitActive("Login - Windows Internet Explorer","Please enter your Username:")
; Add a little delay to avoid lag in accessing the website.
; Send the current logged on username to the form (which defaults to the username box).
; Send the enter key to progress to the next page.
; Display a message so the user knows what is happening.
MsgBox(0, "Shibboleth Logon Helper v1.3", "Hi " & @UserName &"! I noticed that you were trying to use a SSO service enabled website. To help out, I have already entered your username for you. Now all you need to do is put your password in.", 10)
; Wait for the user to finish entering their password and then loop.
; This helps stop us entering the username again by mistake as we can't differenciate the pages due to iframes!
WinWaitClose("Login - Windows Internet Explorer", "https://shibboleth.networcs.net/SSO/auth/networcs_auth2/index.php")
; Sleep again and then loop to beginning to avoid double pasting etc.
; End of the main loop.
; Exit the loop using 'ExitLoop' command.