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
As an Ansible developer, I want Ansible modules to read/update the state when doing vCenter's LDAP SSO identity provider source configuration. The Ansible module can use govc and should read, update, confirm the operation when updates.
Currently there is only sso/idp/ls.go which lists SSO identity provider sources and read their details.
So my 'Charles' tool said the current Powershell implementation of the same does it with these soap methods.
And this web debugging proxy also shows the structures of the requests.
An then can define the missing code here, so:
I achieved:
abo@mitac:~/Code/govmomi/govc$ go run . sso.idp.ls
Name Server URL Type Domain Alias
- - System Domain vsphere.local
- - Local OS dafak
corp.local ldap://powershell.corp.local:389 ActiveDirectory corp.local CLOUD
corp.locala ldap://powershell.corp.local:389 ActiveDirectory corp.locala
corp.localo ldap://powershell.corp.local:389 ActiveDirectory corp.localo
corp.localzz ldap://powershell.corp.local:389 ActiveDirectory corp.localzz CLOUD7
corp.lozzz ldap://powershell.corp.local:389 ActiveDirectory corp.lozzz corp.lozzz
corp.localz ldap://powershell.corp.local:389 ActiveDirectory corp.localz CLOUD5
corp.locasss ldap://powershell.corp.local:389 ActiveDirectory corp.locasss
abo@mitac:~/Code/govmomi/govc$
abo@mitac:~/Code/govmomi/govc$ go run . sso.idp.ldap.update -FriendlyName CLOUD55 -UserBaseDn DC=corp,DC=local -GroupBaseDn DC=corp,DC=local -PrimaryUrl ldap://powershell.corp.local:389 -AuthUsername administrator@corp.local -AuthPassword *** corp.test
abo@mitac:~/Code/govmomi/govc$ go run . sso.idp.ls
Name Server URL Type Domain Alias
- - System Domain vsphere.local
- - Local OS dafak
corp.local ldap://powershell.corp.local:389 ActiveDirectory corp.local CLOUD
corp.locala ldap://powershell.corp.local:389 ActiveDirectory corp.locala
corp.localo ldap://powershell.corp.local:389 ActiveDirectory corp.localo
corp.localzz ldap://powershell.corp.local:389 ActiveDirectory corp.localzz CLOUD7
corp.lozzz ldap://powershell.corp.local:389 ActiveDirectory corp.lozzz corp.lozzz
corp.localz ldap://powershell.corp.local:389 ActiveDirectory corp.localz CLOUD5
corp.test ldap://powershell.corp.local:389 ActiveDirectory corp.test
corp.locasss ldap://powershell.corp.local:389 ActiveDirectory corp.locasss
As an Ansible developer, I want Ansible modules to read/update the state when doing vCenter's LDAP SSO identity provider source configuration. The Ansible module can use govc and should read, update, confirm the operation when updates.
So:
Need to in the proper way
Looking into the details (the solution):
The structures like:
do not exist in govmomi - https://github.com/vmware/govmomi/blob/master/ssoadmin/types/types.go
The methods like:
are undefined - https://github.com/vmware/govmomi/blob/master/ssoadmin/methods/methods.go
The methods are missing from ssoadmin client - https://github.com/vmware/govmomi/blob/master/ssoadmin/client.go
Currently there is only sso/idp/ls.go which lists SSO identity provider sources and read their details.
So my 'Charles' tool said the current Powershell implementation of the same does it with these soap methods.
And this web debugging proxy also shows the structures of the requests.
An then can define the missing code here, so:
I achieved:
As json, it looks like:
The PR will be also provided.
The text was updated successfully, but these errors were encountered: