Hi all
I am trying to implement auto-logon with VirtualBox from a FreeBSD host to a Windows guest. Following the VirtualBox manual I discovered that in order to login a user to a running VM one (i.e. the script) has to know the user credentials. However this is not my case. I have users authenticating against an LDAP server, so I have to retrieve their credentials when they login to the FreeBSD host and use them for the auto-login on the guest (be it Windows or something else).
So, my questions are:
Update: on Linux there are pam_script and pam-script modules which execute scripts upon login or logout. Unfortunately they are not ported to FreeBSD
I am trying to implement auto-logon with VirtualBox from a FreeBSD host to a Windows guest. Following the VirtualBox manual I discovered that in order to login a user to a running VM one (i.e. the script) has to know the user credentials. However this is not my case. I have users authenticating against an LDAP server, so I have to retrieve their credentials when they login to the FreeBSD host and use them for the auto-login on the guest (be it Windows or something else).
So, my questions are:
- How can I retrieve the username and password a user is typing in the login prompt?
- If plain PAM doesn't support the saving of credentials to variables, is there an additional PAM module for such scripting?
Update: on Linux there are pam_script and pam-script modules which execute scripts upon login or logout. Unfortunately they are not ported to FreeBSD
