feat: get_web_login_auth on the vCenter, a source per provider and SSO domain (NetOrk/netork#662)
The vCenter driver reads how people log in to the vSphere Client, in napalm-device-types' WebLoginAuthDict: each identity provider of identity federation (GET /api/vcenter/identity/providers) is a source that decides itself (external), the default first; each SSO domain the vSphere API names (UserDirectory.domainList) is a source whose second factor cannot be read (unknown), since smart card and RSA SecurID live in SSO's authentication policy, which neither API exposes. Listing the providers needs VcIdentityProviders.Read and .Manage; without them the vCenter answers 403 and the driver raises PermissionError naming them. The REST read logs in to /api/session with the same account and logs out after. The ESXi driver has no reader.
This commit is contained in:
1 parent
e1677bebb2
commit
ab18ca87ca
10 files changed
+529
-6
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ classifiers = [
|
||||
]
|
||||
dependencies = [
|
||||
"napalm>=5.1", # older releases import pkg_resources, which a 3.12 venv lacks
|
||||
"napalm-device-types>=4.21.1",
|
||||
"napalm-device-types>=4.50.0",
|
||||
"pyvmomi>=8.0.1",
|
||||
# Provisioning: download the image, write the NoCloud seed ISO and its YAML.
|
||||
"requests>=2.31",
|
||||
|
||||
Reference in new issue
Block a user