-
Notifications
You must be signed in to change notification settings - Fork 38
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
Login script causes user to hang on second login #103
Comments
The log is mandatory to solve this issue. |
pGina.Service.ServiceHost_log.txt Here are all logs. company_name is the name of the machine user (admin) and also the name of the company as the domain name |
I'm guessing this is a changed behavior. Out of curiosity: Why/what was the reason? :) |
Nothing has changed |
Well, it did work without a problem in the previous .10 release. Also maybe there should be a timeout, instead of having to reboot the machine. Also the cancel button is non responsive. |
Is there a way for the script to be visible? To check what is going inside? |
Another piece of info. I'm now getting a message saying that a program was started not by pgina and therefore the user cannot login. I'm using this as a logon script: |
Ok, so at the very least this script runs in some different session. I have mounted a webdav drive and the powershell script can list the directory but i can't access it as the user. This was definitely not the case in the previous version. |
If your script is mounting the webdav folder as a different user than only this user is able to use it. |
Inside the script net use is used and then does some other thing after the mount. The script runs as the current user. Again the problem here is not the script as it worked before but rather changed behaviour in the new release. |
I've verified the plugin and its working properly |
Thanks, will do tonight and report. |
Just tried it by putting the script inside I do think it is the way the invoke function was changed as previously it was running: This seems like the only difference in the logic between the versions. |
I'm using StartUserProcessInSessionWait() now for user logon scripts |
Just tested it. It works. |
I uninstalled pGina 3.9.9.10
Rebooted
Removed the registry settings
Installed pGina 3.9.9.11
Rebooted
Login with pgina user
Logout
Login with pgina user
Logout
Login with local machine user
Configured the login script step to execute a PowerShell script:
powershell.exe -executionpolicy bypass -file C:\webdavMonitor.ps1 -password %p > C:\Logs\mount_log.txt
Logout
Login with pgina user (script not working but I can debug with a few tries as this is not the problem i think; thou the script does have an infinite loop inside; )
Logout
Login with local machine user
No processes or sessions are active from previous pgina user
Logout
Login with pgina user
The screen hangs on "You will be logged in. Please wait ..." The cancel button is not responsive.
The only solution is to reboot the machine. I can't attach the log as I'm not physically next to the machine.
I have the default scripts enabled thought the testing and they seem to behave fine.
The text was updated successfully, but these errors were encountered: