Looking for some help using Candid with Juju and MAAS.
I have managed to create a juju controller for a MAAS instance with CANDID. We use our company LDAP/ActiveDirectory.
This is how we bootstrapped it:
juju bootstrap my-maas beta1
–config identity-url=https://10.6.5.82:8081
–config identity-public-key=i9zsvCkISgdPryiYWwgMyLsro9d+IhywZBDVl+9PzmA=
–config allow-model-access=true
I have managed to login.
erik@bionic-dev-1:~$ juju login -u sssler@corporate Opening an authorization web page in your browser. If it does not open, please open this URL: https://10.6.5.82:8081/login-legacy?did=3dc9a8689f762c4a358896233aac80dd05a9114b4063aad2106e9f00e55c7163 Couldn’t find a suitable web browser! Set the BROWSER environment variable to your desired browser.
I can use it and create models etc.
erik@bionic-dev-1:~$ juju status Model Controller Cloud/Region Version SLA Timestamp test1 beta1 sss 2.4.7 unsupported 14:09:53+01:00
Model “SSSLER@corporate/test1” is empty. erik@bionic-dev-1:~$ juju switch test1 beta1:SSSLER@corporate/test1 (no change)
I now move on, as admin, and give Johan login permissions to the controller:
erik@bionic-dev-1:~$ juju login -u admin -c beta1 please enter password for admin on beta1: Welcome, admin. You are now logged into “beta1”.
There are 3 models available. Use “juju switch” to select one of them:
- juju switch controller
- juju switch default
- juju switch SSSLER@corporate/test1 erik@bionic-dev-1:~$
Adds his login grant:
erik@bionic-dev-1:~$ juju grant jhacxc@corporate login
I then logout and login in back as my regular user, the below shows that I’m now acting as my regular user.
erik@bionic-dev-1:~$ juju whoami Controller: beta1 Model: test1 User: SSSLER@corporate
Now I add Johans access to the test1 model:
juju grant jhacxc@corporate read test1
Johan manages to login:
juju login -u jhacxc@corporate Opening an authorization web page in your browser. If it does not open, please open this URL: https://10.6.5.82:8081/login-legacy?did=18a0433283d4e0ee3af1a48a48ccbb1804001d624caf12a44c081e40e13b096d Couldn’t find a suitable web browser! Set the BROWSER environment variable to your desired browser.
But the problem now is that he can’t see the model “test1” which he was granted read permissions to above.
hallback@t1000:~/.local/share/juju$ juju models Controller: beta1
Model Cloud/Region Status Access Last connection
There are no models available. You can add models with “juju add-model”, or you can ask an administrator or owner of a model to grant access to that model with “juju grant”.
Are we doing this the right way and have found a bug? We have fought a bit with this, but to no success yet. Johan here is also known as @hallback
erik@bionic-dev-1:~$ juju version 2.4.7-bionic-amd64