You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even when NoMAD is installed and configured to use the system keychain, Alpaca fails to read the NoMAD configuration and get the credentials out of the keychain. It disables proxy authentication as a result:
main.go:58: NoMAD configuration key not found. Disabling proxy authentication.
When NoMAD app preferences are managed by a configuration profile which means they get written to /Library/Managed Preferences/$USER/com.trusourcelabs.NoMAD.plist. When a user then logs into NoMAD, their particular details get written to /Users/$USER/Library/Preferences/com.trusourcelabs.NoMAD.plist. In this case, UseKeychain gets defined in Managed Preferences and UserPrincipal gets defined in the user's Preferences directory.
Alpaca uses the defaults command to read the configuration, and it looks like this is only reading the plist file in the user's Preferences directory.
A workaround is to manually use defaults write to set UseKeychain to 1 in the user's plist:
Read NoMAD configuration values from /Library/Managed Preferences before
reading them from ~/Library/Preferences.
In manual testing with split preferences, UseKeychain is now being read
from Managed Preferences plist while UserPrincipal is still being read
from the user's preferences plist.
This will avoid users having to use that manual workaround on corporate
managed devices that deploy a configuration profile to manage NoMAD.
Fixes: #32
Co-authored-by: Seng Ern Gan <sengern.gan@anz.com>
Even when NoMAD is installed and configured to use the system keychain, Alpaca fails to read the NoMAD configuration and get the credentials out of the keychain. It disables proxy authentication as a result:
When NoMAD app preferences are managed by a configuration profile which means they get written to
/Library/Managed Preferences/$USER/com.trusourcelabs.NoMAD.plist
. When a user then logs into NoMAD, their particular details get written to/Users/$USER/Library/Preferences/com.trusourcelabs.NoMAD.plist
. In this case,UseKeychain
gets defined inManaged Preferences
andUserPrincipal
gets defined in the user'sPreferences
directory.Alpaca uses the
defaults
command to read the configuration, and it looks like this is only reading the plist file in the user'sPreferences
directory.A workaround is to manually use
defaults write
to setUseKeychain
to1
in the user's plist:The text was updated successfully, but these errors were encountered: