Testing:
To add a test acccount on subscription.rhsm.stage.redhat.com, use Ethel: http://account-manager-stage.app.eng.rdu2.redhat.com/#view
gdbus call \ --session \ --dest org.gnome.SettingsDaemon.Subscription \ --object-path /org/gnome/SettingsDaemon/Subscription \ --method org.gnome.SettingsDaemon.Subscription.Register "{'kind':<'username'>,'hostname':<'subscription.rhsm.stage.redhat.com'>,'username':<'rhughes_test'>,'password':<'barbaz'>}"
gdbus call \ --session \ --dest org.gnome.SettingsDaemon.Subscription \ --object-path /org/gnome/SettingsDaemon/Subscription \ --method org.gnome.SettingsDaemon.Subscription.Register "{'kind':<'key'>,'hostname':<'subscription.rhsm.stage.redhat.com'>,'organisation':<'foo'>,'activation-key':<'barbaz'>}"
gdbus call \ --session \ --dest org.gnome.SettingsDaemon.Subscription \ --object-path /org/gnome/SettingsDaemon/Subscription \ --method org.gnome.SettingsDaemon.Subscription.Unregister
Get the UNIX socket using Subscription.Register
then call something like:
sudo G_MESSAGES_DEBUG=all ./plugins/subman/gsd-subman-helper \ --address="unix:abstract=/var/run/dbus-ulGB1wfnbn,guid=71e6bf329d861ce366df7a1d5d036a5b" \ --kind="register-with-username" \ --username="rhughes_test" \ --password="barbaz" \ --hostname="subscription.rhsm.stage.redhat.com" \ --organisation=""
You can all see some basic debugging running rhsmd
in the foreground:
sudo /usr/libexec/rhsmd -d -k
Proxy servers are not supported, nor are custom host ports or prefixes.