fog-proxmox 0.5.5 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.gitlab-ci.yml +7 -0
  3. data/.travis.yml +1 -0
  4. data/.vscode/launch.json +3 -21
  5. data/.vscode/settings.json +7 -7
  6. data/Gemfile.lock +39 -39
  7. data/README.md +9 -2
  8. data/examples/compute.rb +20 -23
  9. data/examples/identity.rb +16 -21
  10. data/fog-proxmox.gemspec +1 -2
  11. data/lib/fog/compute/proxmox.rb +2 -8
  12. data/lib/fog/compute/proxmox/models/disk.rb +13 -11
  13. data/lib/fog/compute/proxmox/models/disks.rb +3 -5
  14. data/lib/fog/compute/proxmox/models/interface.rb +6 -11
  15. data/lib/fog/compute/proxmox/models/interfaces.rb +3 -5
  16. data/lib/fog/compute/proxmox/models/node.rb +38 -43
  17. data/lib/fog/compute/proxmox/models/nodes.rb +5 -11
  18. data/lib/fog/compute/proxmox/models/server.rb +123 -80
  19. data/lib/fog/compute/proxmox/models/server_config.rb +56 -24
  20. data/lib/fog/compute/proxmox/models/servers.rb +34 -26
  21. data/lib/fog/compute/proxmox/models/snapshot.rb +28 -14
  22. data/lib/fog/compute/proxmox/models/snapshots.rb +9 -17
  23. data/lib/fog/compute/proxmox/models/storage.rb +15 -11
  24. data/lib/fog/compute/proxmox/models/storages.rb +13 -22
  25. data/lib/fog/compute/proxmox/models/task.rb +10 -14
  26. data/lib/fog/compute/proxmox/models/tasks.rb +9 -18
  27. data/lib/fog/compute/proxmox/models/volume.rb +12 -12
  28. data/lib/fog/compute/proxmox/models/volumes.rb +10 -19
  29. data/lib/fog/compute/proxmox/requests/action_server.rb +1 -4
  30. data/lib/fog/compute/proxmox/requests/clone_server.rb +1 -4
  31. data/lib/fog/compute/proxmox/requests/create_backup.rb +1 -4
  32. data/lib/fog/compute/proxmox/requests/create_server.rb +1 -4
  33. data/lib/fog/compute/proxmox/requests/create_snapshot.rb +1 -4
  34. data/lib/fog/compute/proxmox/requests/create_spice.rb +1 -4
  35. data/lib/fog/compute/proxmox/requests/create_term.rb +1 -4
  36. data/lib/fog/compute/proxmox/requests/create_vnc.rb +1 -4
  37. data/lib/fog/compute/proxmox/requests/delete_server.rb +1 -4
  38. data/lib/fog/compute/proxmox/requests/delete_snapshot.rb +1 -4
  39. data/lib/fog/compute/proxmox/requests/get_node_statistics.rb +1 -4
  40. data/lib/fog/compute/proxmox/requests/get_server_config.rb +1 -4
  41. data/lib/fog/compute/proxmox/requests/get_server_status.rb +1 -4
  42. data/lib/fog/compute/proxmox/requests/{get_snapshot.rb → get_snapshot_config.rb} +5 -8
  43. data/lib/fog/compute/proxmox/requests/get_task.rb +1 -4
  44. data/lib/fog/compute/proxmox/requests/get_vnc.rb +1 -4
  45. data/lib/fog/compute/proxmox/requests/list_nodes.rb +1 -2
  46. data/lib/fog/compute/proxmox/requests/list_storages.rb +3 -1
  47. data/lib/fog/compute/proxmox/requests/log_task.rb +1 -4
  48. data/lib/fog/compute/proxmox/requests/move_disk.rb +1 -4
  49. data/lib/fog/compute/proxmox/requests/move_volume.rb +1 -4
  50. data/lib/fog/compute/proxmox/requests/next_vmid.rb +5 -3
  51. data/lib/fog/compute/proxmox/requests/resize_container.rb +1 -4
  52. data/lib/fog/compute/proxmox/requests/status_task.rb +1 -4
  53. data/lib/fog/compute/proxmox/requests/update_server.rb +1 -4
  54. data/lib/fog/identity/proxmox.rb +2 -8
  55. data/lib/fog/identity/proxmox/models/domain.rb +25 -21
  56. data/lib/fog/identity/proxmox/models/{ldap.rb → domain_type.rb} +9 -18
  57. data/lib/fog/identity/proxmox/models/domains.rb +6 -76
  58. data/lib/fog/identity/proxmox/models/group.rb +6 -19
  59. data/lib/fog/identity/proxmox/models/groups.rb +6 -12
  60. data/lib/fog/identity/proxmox/models/permission.rb +27 -31
  61. data/lib/fog/identity/proxmox/models/permissions.rb +8 -25
  62. data/lib/fog/identity/proxmox/models/pool.rb +9 -22
  63. data/lib/fog/identity/proxmox/models/pools.rb +7 -13
  64. data/lib/fog/identity/proxmox/models/principal.rb +1 -6
  65. data/lib/fog/identity/proxmox/models/role.rb +7 -20
  66. data/lib/fog/identity/proxmox/models/roles.rb +6 -13
  67. data/lib/fog/identity/proxmox/models/user.rb +7 -21
  68. data/lib/fog/identity/proxmox/models/users.rb +6 -12
  69. data/lib/fog/identity/proxmox/requests/check_permissions.rb +1 -4
  70. data/lib/fog/identity/proxmox/requests/list_roles.rb +0 -1
  71. data/lib/fog/identity/proxmox/requests/read_version.rb +1 -5
  72. data/lib/fog/identity/proxmox/requests/update_group.rb +2 -3
  73. data/lib/fog/identity/proxmox/requests/{add_permission.rb → update_permissions.rb} +4 -4
  74. data/lib/fog/network/proxmox/models/network.rb +12 -18
  75. data/lib/fog/network/proxmox/models/networks.rb +11 -17
  76. data/lib/fog/network/proxmox/models/node.rb +14 -10
  77. data/lib/fog/network/proxmox/models/nodes.rb +5 -11
  78. data/lib/fog/network/proxmox/requests/create_network.rb +1 -4
  79. data/lib/fog/network/proxmox/requests/delete_network.rb +1 -4
  80. data/lib/fog/network/proxmox/requests/get_network.rb +1 -4
  81. data/lib/fog/network/proxmox/requests/get_node.rb +1 -4
  82. data/lib/fog/network/proxmox/requests/power_node.rb +1 -4
  83. data/lib/fog/network/proxmox/requests/update_network.rb +1 -4
  84. data/lib/fog/{compute/proxmox/requests/check_vmid.rb → proxmox/attributes.rb} +9 -17
  85. data/lib/fog/proxmox/core.rb +2 -1
  86. data/lib/fog/proxmox/helpers/cpu_helper.rb +6 -3
  87. data/lib/fog/proxmox/helpers/disk_helper.rb +1 -1
  88. data/lib/fog/proxmox/helpers/nic_helper.rb +37 -22
  89. data/lib/fog/proxmox/version.rb +1 -1
  90. data/lib/fog/storage/proxmox.rb +1 -1
  91. data/spec/compute_spec.rb +64 -45
  92. data/spec/fixtures/proxmox/compute/containers.yml +1684 -4137
  93. data/spec/fixtures/proxmox/compute/identity_ticket.yml +4 -4
  94. data/spec/fixtures/proxmox/compute/nodes.yml +21 -21
  95. data/spec/fixtures/proxmox/compute/servers.yml +3065 -7741
  96. data/spec/fixtures/proxmox/compute/snapshots.yml +279 -827
  97. data/spec/fixtures/proxmox/compute/storages.yml +60 -21
  98. data/spec/fixtures/proxmox/compute/tasks.yml +56 -98
  99. data/spec/fixtures/proxmox/identity/auth.yml +6 -6
  100. data/spec/fixtures/proxmox/identity/domains.yml +252 -84
  101. data/spec/fixtures/proxmox/identity/groups.yml +93 -54
  102. data/spec/fixtures/proxmox/identity/identity_ticket.yml +4 -4
  103. data/spec/fixtures/proxmox/identity/permissions.yml +317 -79
  104. data/spec/fixtures/proxmox/identity/pools.yml +266 -71
  105. data/spec/fixtures/proxmox/identity/read_version.yml +6 -6
  106. data/spec/fixtures/proxmox/identity/roles.yml +96 -57
  107. data/spec/fixtures/proxmox/identity/users.yml +224 -107
  108. data/spec/fixtures/proxmox/network/identity_ticket.yml +4 -4
  109. data/spec/fixtures/proxmox/network/networks.yml +54 -95
  110. data/spec/helpers/nic_helper_spec.rb +4 -4
  111. data/spec/identity_spec.rb +38 -46
  112. data/spec/network_spec.rb +1 -1
  113. metadata +9 -23
  114. data/lib/fog/compute/proxmox/models/container.rb +0 -86
  115. data/lib/fog/compute/proxmox/models/container_config.rb +0 -114
  116. data/lib/fog/compute/proxmox/models/containers.rb +0 -43
  117. data/lib/fog/compute/proxmox/requests/get_node.rb +0 -44
  118. data/lib/fog/compute/proxmox/requests/get_storage.rb +0 -44
  119. data/lib/fog/identity/proxmox/models/activedirectory.rb +0 -57
  120. data/lib/fog/identity/proxmox/models/oath.rb +0 -50
  121. data/lib/fog/identity/proxmox/models/pam.rb +0 -46
  122. data/lib/fog/identity/proxmox/models/pve.rb +0 -46
  123. data/lib/fog/identity/proxmox/models/yubico.rb +0 -51
  124. data/lib/fog/identity/proxmox/requests/remove_permission.rb +0 -42
  125. data/lib/fog/proxmox/models/collection.rb +0 -85
  126. data/lib/fog/proxmox/models/model.rb +0 -58
@@ -12,9 +12,9 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  Csrfpreventiontoken:
15
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
15
+ - 5CA4B5FD:90Bc/QID+0rzMPO4u003G3UIcKk
16
16
  Cookie:
17
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
17
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FD::eXiuesLu81RqogtobDSQBsFQ1HbPinLLLVVS+8qC9ear4K51eOolY0XOMosnm22ML99dSqN4TTNDAPhox+J78cl9IdMuuhRACtFJyaBqugBwrao0Iw6JoGSUQiIORvWlQF75odFmmlBcqB6TZ80U63eRLjvNk8aF1tszWb2hlbFJRzwiSjjs+JoZ6BzYNSk1PnHuzrkOBcG26VxnI7WotRzIV7NO3qMZedBjwYKLw7w8PnhstR0zfbaMllSiJL8QVLCnbo+t2RpivR3Uu8ftGcrVLXgh2+snA/fCWYWjzfIW16qU/UI8IBfdBiblmK8SxSZZ23tR5bKfwU5uCf78Sw==
18
18
  response:
19
19
  status:
20
20
  code: 200
@@ -25,7 +25,7 @@ http_interactions:
25
25
  Connection:
26
26
  - close, Keep-Alive
27
27
  Date:
28
- - Thu, 07 Jun 2018 14:30:36 GMT
28
+ - Wed, 03 Apr 2019 13:32:45 GMT
29
29
  Pragma:
30
30
  - no-cache
31
31
  Server:
@@ -35,10 +35,10 @@ http_interactions:
35
35
  Content-Type:
36
36
  - application/json;charset=UTF-8
37
37
  Expires:
38
- - Thu, 07 Jun 2018 14:30:36 GMT
38
+ - Wed, 03 Apr 2019 13:32:45 GMT
39
39
  body:
40
40
  encoding: ASCII-8BIT
41
- string: '{"data":{"username":"root@pam","cap":{"nodes":{"Sys.Console":1,"Sys.Syslog":1,"Sys.Modify":1,"Sys.Audit":1,"Sys.PowerMgmt":1,"Permissions.Modify":1},"vms":{"VM.Backup":1,"VM.Snapshot":1,"VM.Audit":1,"VM.Clone":1,"VM.Snapshot.Rollback":1,"VM.Console":1,"VM.Allocate":1,"Permissions.Modify":1,"VM.Migrate":1,"VM.Config.Disk":1,"VM.Monitor":1,"VM.Config.CPU":1,"VM.Config.CDROM":1,"VM.PowerMgmt":1,"VM.Config.Memory":1,"VM.Config.Options":1,"VM.Config.Network":1,"VM.Config.HWType":1},"access":{"Permissions.Modify":1,"User.Modify":1,"Group.Allocate":1},"dc":{"Sys.Audit":1},"storage":{"Datastore.AllocateTemplate":1,"Permissions.Modify":1,"Datastore.Audit":1,"Datastore.Allocate":1,"Datastore.AllocateSpace":1}}}}'
41
+ string: '{"data":{"cap":{"access":{"Permissions.Modify":1,"User.Modify":1,"Group.Allocate":1},"storage":{"Datastore.Audit":1,"Datastore.AllocateTemplate":1,"Datastore.AllocateSpace":1,"Datastore.Allocate":1,"Permissions.Modify":1},"nodes":{"Sys.Modify":1,"Sys.Audit":1,"Permissions.Modify":1,"Sys.Console":1,"Sys.Syslog":1,"Sys.PowerMgmt":1},"vms":{"VM.Console":1,"VM.Snapshot.Rollback":1,"VM.Config.Memory":1,"VM.Snapshot":1,"VM.Config.CDROM":1,"Permissions.Modify":1,"VM.Config.Options":1,"VM.Monitor":1,"VM.Config.Disk":1,"VM.Migrate":1,"VM.PowerMgmt":1,"VM.Config.CPU":1,"VM.Audit":1,"VM.Backup":1,"VM.Config.HWType":1,"VM.Allocate":1,"VM.Clone":1,"VM.Config.Network":1},"dc":{"Sys.Audit":1}},"username":"root@pam"}}'
42
42
  http_version:
43
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
43
+ recorded_at: Wed, 03 Apr 2019 13:32:47 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -12,9 +12,9 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  Csrfpreventiontoken:
15
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
15
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
16
16
  Cookie:
17
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
17
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
18
18
  response:
19
19
  status:
20
20
  code: 200
@@ -25,7 +25,7 @@ http_interactions:
25
25
  Connection:
26
26
  - close, Keep-Alive
27
27
  Date:
28
- - Thu, 07 Jun 2018 14:30:36 GMT
28
+ - Wed, 03 Apr 2019 13:32:44 GMT
29
29
  Pragma:
30
30
  - no-cache
31
31
  Server:
@@ -35,15 +35,15 @@ http_interactions:
35
35
  Content-Type:
36
36
  - application/json;charset=UTF-8
37
37
  Expires:
38
- - Thu, 07 Jun 2018 14:30:36 GMT
38
+ - Wed, 03 Apr 2019 13:32:44 GMT
39
39
  body:
40
40
  encoding: ASCII-8BIT
41
41
  string: '{"data":null}'
42
42
  http_version:
43
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
43
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
44
44
  - request:
45
45
  method: get
46
- uri: https://192.168.56.101:8006/api2/json/access/domains/LDAP
46
+ uri: https://192.168.56.101:8006/api2/json/access/domains
47
47
  body:
48
48
  encoding: US-ASCII
49
49
  string: ''
@@ -53,7 +53,7 @@ http_interactions:
53
53
  Accept:
54
54
  - application/json
55
55
  Cookie:
56
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
56
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
57
57
  response:
58
58
  status:
59
59
  code: 200
@@ -64,22 +64,64 @@ http_interactions:
64
64
  Connection:
65
65
  - Keep-Alive
66
66
  Date:
67
- - Thu, 07 Jun 2018 14:30:36 GMT
67
+ - Wed, 03 Apr 2019 13:32:44 GMT
68
68
  Pragma:
69
69
  - no-cache
70
70
  Server:
71
71
  - pve-api-daemon/3.0
72
72
  Content-Length:
73
- - '193'
73
+ - '190'
74
74
  Content-Type:
75
75
  - application/json;charset=UTF-8
76
76
  Expires:
77
- - Thu, 07 Jun 2018 14:30:36 GMT
77
+ - Wed, 03 Apr 2019 13:32:44 GMT
78
78
  body:
79
79
  encoding: ASCII-8BIT
80
- string: '{"data":{"digest":"4e5030596bcba1ab31a63a9c1e973f0a3b5c2062","secure":0,"port":389,"default":0,"type":"ldap","user_attr":"LDAP","server1":"localhost","base_dn":"ou=People,dc=ldap-test,dc=com"}}'
80
+ string: '{"data":[{"comment":"Linux PAM standard authentication","realm":"pam","type":"pam"},{"type":"ldap","realm":"LDAP"},{"comment":"Proxmox
81
+ VE authentication server","realm":"pve","type":"pve"}]}'
81
82
  http_version:
82
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
83
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
84
+ - request:
85
+ method: get
86
+ uri: https://192.168.56.101:8006/api2/json/access/domains
87
+ body:
88
+ encoding: US-ASCII
89
+ string: ''
90
+ headers:
91
+ User-Agent:
92
+ - fog-core/1.45.0
93
+ Accept:
94
+ - application/json
95
+ Cookie:
96
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Cache-Control:
103
+ - max-age=0
104
+ Connection:
105
+ - Keep-Alive
106
+ Date:
107
+ - Wed, 03 Apr 2019 13:32:44 GMT
108
+ Pragma:
109
+ - no-cache
110
+ Server:
111
+ - pve-api-daemon/3.0
112
+ Content-Length:
113
+ - '190'
114
+ Content-Type:
115
+ - application/json;charset=UTF-8
116
+ Expires:
117
+ - Wed, 03 Apr 2019 13:32:44 GMT
118
+ body:
119
+ encoding: ASCII-8BIT
120
+ string: '{"data":[{"realm":"LDAP","type":"ldap"},{"comment":"Proxmox VE authentication
121
+ server","realm":"pve","type":"pve"},{"type":"pam","realm":"pam","comment":"Linux
122
+ PAM standard authentication"}]}'
123
+ http_version:
124
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
83
125
  - request:
84
126
  method: post
85
127
  uri: https://192.168.56.101:8006/api2/json/access/domains
@@ -92,9 +134,9 @@ http_interactions:
92
134
  Accept:
93
135
  - application/json
94
136
  Csrfpreventiontoken:
95
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
137
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
96
138
  Cookie:
97
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
139
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
98
140
  response:
99
141
  status:
100
142
  code: 200
@@ -105,7 +147,7 @@ http_interactions:
105
147
  Connection:
106
148
  - close, Keep-Alive
107
149
  Date:
108
- - Thu, 07 Jun 2018 14:30:36 GMT
150
+ - Wed, 03 Apr 2019 13:32:44 GMT
109
151
  Pragma:
110
152
  - no-cache
111
153
  Server:
@@ -115,12 +157,52 @@ http_interactions:
115
157
  Content-Type:
116
158
  - application/json;charset=UTF-8
117
159
  Expires:
118
- - Thu, 07 Jun 2018 14:30:36 GMT
160
+ - Wed, 03 Apr 2019 13:32:44 GMT
119
161
  body:
120
162
  encoding: ASCII-8BIT
121
163
  string: '{"data":null}'
122
164
  http_version:
123
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
165
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
166
+ - request:
167
+ method: get
168
+ uri: https://192.168.56.101:8006/api2/json/access/domains
169
+ body:
170
+ encoding: US-ASCII
171
+ string: ''
172
+ headers:
173
+ User-Agent:
174
+ - fog-core/1.45.0
175
+ Accept:
176
+ - application/json
177
+ Cookie:
178
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
179
+ response:
180
+ status:
181
+ code: 200
182
+ message: OK
183
+ headers:
184
+ Cache-Control:
185
+ - max-age=0
186
+ Connection:
187
+ - Keep-Alive
188
+ Date:
189
+ - Wed, 03 Apr 2019 13:32:44 GMT
190
+ Pragma:
191
+ - no-cache
192
+ Server:
193
+ - pve-api-daemon/3.0
194
+ Content-Length:
195
+ - '230'
196
+ Content-Type:
197
+ - application/json;charset=UTF-8
198
+ Expires:
199
+ - Wed, 03 Apr 2019 13:32:44 GMT
200
+ body:
201
+ encoding: ASCII-8BIT
202
+ string: '{"data":[{"type":"ldap","realm":"LDAP"},{"type":"pve","realm":"pve","comment":"Proxmox
203
+ VE authentication server"},{"type":"pam","comment":"Linux PAM standard authentication","realm":"pam"},{"realm":"ActiveDirectory","type":"ad"}]}'
204
+ http_version:
205
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
124
206
  - request:
125
207
  method: post
126
208
  uri: https://192.168.56.101:8006/api2/json/access/domains
@@ -133,9 +215,9 @@ http_interactions:
133
215
  Accept:
134
216
  - application/json
135
217
  Csrfpreventiontoken:
136
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
218
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
137
219
  Cookie:
138
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
220
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
139
221
  response:
140
222
  status:
141
223
  code: 500
@@ -147,7 +229,7 @@ http_interactions:
147
229
  Connection:
148
230
  - close
149
231
  Date:
150
- - Thu, 07 Jun 2018 14:30:36 GMT
232
+ - Wed, 03 Apr 2019 13:32:44 GMT
151
233
  Pragma:
152
234
  - no-cache
153
235
  Server:
@@ -157,12 +239,12 @@ http_interactions:
157
239
  Content-Type:
158
240
  - application/json;charset=UTF-8
159
241
  Expires:
160
- - Thu, 07 Jun 2018 14:30:36 GMT
242
+ - Wed, 03 Apr 2019 13:32:44 GMT
161
243
  body:
162
244
  encoding: ASCII-8BIT
163
245
  string: '{"data":null}'
164
246
  http_version:
165
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
247
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
166
248
  - request:
167
249
  method: post
168
250
  uri: https://192.168.56.101:8006/api2/json/access/domains
@@ -175,9 +257,9 @@ http_interactions:
175
257
  Accept:
176
258
  - application/json
177
259
  Csrfpreventiontoken:
178
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
260
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
179
261
  Cookie:
180
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
262
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
181
263
  response:
182
264
  status:
183
265
  code: 500
@@ -189,7 +271,7 @@ http_interactions:
189
271
  Connection:
190
272
  - close
191
273
  Date:
192
- - Thu, 07 Jun 2018 14:30:36 GMT
274
+ - Wed, 03 Apr 2019 13:32:44 GMT
193
275
  Pragma:
194
276
  - no-cache
195
277
  Server:
@@ -199,27 +281,27 @@ http_interactions:
199
281
  Content-Type:
200
282
  - application/json;charset=UTF-8
201
283
  Expires:
202
- - Thu, 07 Jun 2018 14:30:36 GMT
284
+ - Wed, 03 Apr 2019 13:32:44 GMT
203
285
  body:
204
286
  encoding: ASCII-8BIT
205
287
  string: '{"data":null}'
206
288
  http_version:
207
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
289
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
208
290
  - request:
209
291
  method: put
210
292
  uri: https://192.168.56.101:8006/api2/json/access/domains/LDAP
211
293
  body:
212
294
  encoding: US-ASCII
213
- string: secure=0&port=389&default=0&user_attr=LDAP&server1=localhost&base_dn=ou%3DPeople%2Cdc%3Dldap-test%2Cdc%3Dcom&comment=Test+domain+LDAP&tfa=type%3Doath%2Cstep%3D30%2Cdigits%3D8
295
+ string: comment=Test+domain+LDAP&tfa=type%3Doath%2Cstep%3D30%2Cdigits%3D8
214
296
  headers:
215
297
  User-Agent:
216
298
  - fog-core/1.45.0
217
299
  Accept:
218
300
  - application/json
219
301
  Csrfpreventiontoken:
220
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
302
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
221
303
  Cookie:
222
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
304
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
223
305
  response:
224
306
  status:
225
307
  code: 200
@@ -230,7 +312,7 @@ http_interactions:
230
312
  Connection:
231
313
  - Keep-Alive, Keep-Alive
232
314
  Date:
233
- - Thu, 07 Jun 2018 14:30:36 GMT
315
+ - Wed, 03 Apr 2019 13:32:44 GMT
234
316
  Pragma:
235
317
  - no-cache
236
318
  Server:
@@ -240,15 +322,15 @@ http_interactions:
240
322
  Content-Type:
241
323
  - application/json;charset=UTF-8
242
324
  Expires:
243
- - Thu, 07 Jun 2018 14:30:36 GMT
325
+ - Wed, 03 Apr 2019 13:32:44 GMT
244
326
  body:
245
327
  encoding: ASCII-8BIT
246
328
  string: '{"data":null}'
247
329
  http_version:
248
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
330
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
249
331
  - request:
250
332
  method: get
251
- uri: https://192.168.56.101:8006/api2/json/access/domains/ActiveDirectory
333
+ uri: https://192.168.56.101:8006/api2/json/access/domains
252
334
  body:
253
335
  encoding: US-ASCII
254
336
  string: ''
@@ -258,7 +340,7 @@ http_interactions:
258
340
  Accept:
259
341
  - application/json
260
342
  Cookie:
261
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
343
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
262
344
  response:
263
345
  status:
264
346
  code: 200
@@ -269,37 +351,81 @@ http_interactions:
269
351
  Connection:
270
352
  - Keep-Alive
271
353
  Date:
272
- - Thu, 07 Jun 2018 14:30:36 GMT
354
+ - Wed, 03 Apr 2019 13:32:44 GMT
273
355
  Pragma:
274
356
  - no-cache
275
357
  Server:
276
358
  - pve-api-daemon/3.0
277
359
  Content-Length:
278
- - '153'
360
+ - '272'
279
361
  Content-Type:
280
362
  - application/json;charset=UTF-8
281
363
  Expires:
282
- - Thu, 07 Jun 2018 14:30:36 GMT
364
+ - Wed, 03 Apr 2019 13:32:44 GMT
283
365
  body:
284
366
  encoding: ASCII-8BIT
285
- string: '{"data":{"server1":"localhost","type":"ad","digest":"91dcacc954bab257b5e962900d2f9079b8f22e7e","default":0,"secure":0,"domain":"proxmox.com","port":389}}'
367
+ string: '{"data":[{"realm":"pam","comment":"Linux PAM standard authentication","type":"pam"},{"type":"ad","realm":"ActiveDirectory"},{"type":"ldap","tfa":"oath","comment":"Test
368
+ domain LDAP","realm":"LDAP"},{"realm":"pve","comment":"Proxmox VE authentication
369
+ server","type":"pve"}]}'
286
370
  http_version:
287
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
371
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
372
+ - request:
373
+ method: get
374
+ uri: https://192.168.56.101:8006/api2/json/access/domains
375
+ body:
376
+ encoding: US-ASCII
377
+ string: ''
378
+ headers:
379
+ User-Agent:
380
+ - fog-core/1.45.0
381
+ Accept:
382
+ - application/json
383
+ Cookie:
384
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
385
+ response:
386
+ status:
387
+ code: 200
388
+ message: OK
389
+ headers:
390
+ Cache-Control:
391
+ - max-age=0
392
+ Connection:
393
+ - Keep-Alive
394
+ Date:
395
+ - Wed, 03 Apr 2019 13:32:44 GMT
396
+ Pragma:
397
+ - no-cache
398
+ Server:
399
+ - pve-api-daemon/3.0
400
+ Content-Length:
401
+ - '272'
402
+ Content-Type:
403
+ - application/json;charset=UTF-8
404
+ Expires:
405
+ - Wed, 03 Apr 2019 13:32:44 GMT
406
+ body:
407
+ encoding: ASCII-8BIT
408
+ string: '{"data":[{"realm":"ActiveDirectory","type":"ad"},{"comment":"Linux
409
+ PAM standard authentication","realm":"pam","type":"pam"},{"comment":"Proxmox
410
+ VE authentication server","realm":"pve","type":"pve"},{"type":"ldap","tfa":"oath","comment":"Test
411
+ domain LDAP","realm":"LDAP"}]}'
412
+ http_version:
413
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
288
414
  - request:
289
415
  method: put
290
416
  uri: https://192.168.56.101:8006/api2/json/access/domains/ActiveDirectory
291
417
  body:
292
418
  encoding: US-ASCII
293
- string: server1=localhost&default=0&secure=0&domain=proxmox.com&port=389&tfa=type%3Dyubico%2Cid%3D1%2Ckey%3D2%2Curl%3Dhttp%3A%2F%2Flocalhost
419
+ string: tfa=type%3Dyubico%2Cid%3D1%2Ckey%3D2%2Curl%3Dhttp%3A%2F%2Flocalhost
294
420
  headers:
295
421
  User-Agent:
296
422
  - fog-core/1.45.0
297
423
  Accept:
298
424
  - application/json
299
425
  Csrfpreventiontoken:
300
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
426
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
301
427
  Cookie:
302
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
428
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
303
429
  response:
304
430
  status:
305
431
  code: 200
@@ -310,7 +436,7 @@ http_interactions:
310
436
  Connection:
311
437
  - Keep-Alive, Keep-Alive
312
438
  Date:
313
- - Thu, 07 Jun 2018 14:30:36 GMT
439
+ - Wed, 03 Apr 2019 13:32:44 GMT
314
440
  Pragma:
315
441
  - no-cache
316
442
  Server:
@@ -320,12 +446,12 @@ http_interactions:
320
446
  Content-Type:
321
447
  - application/json;charset=UTF-8
322
448
  Expires:
323
- - Thu, 07 Jun 2018 14:30:36 GMT
449
+ - Wed, 03 Apr 2019 13:32:44 GMT
324
450
  body:
325
451
  encoding: ASCII-8BIT
326
452
  string: '{"data":null}'
327
453
  http_version:
328
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
454
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
329
455
  - request:
330
456
  method: get
331
457
  uri: https://192.168.56.101:8006/api2/json/access/domains
@@ -338,7 +464,7 @@ http_interactions:
338
464
  Accept:
339
465
  - application/json
340
466
  Cookie:
341
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
467
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
342
468
  response:
343
469
  status:
344
470
  code: 200
@@ -349,7 +475,7 @@ http_interactions:
349
475
  Connection:
350
476
  - Keep-Alive
351
477
  Date:
352
- - Thu, 07 Jun 2018 14:30:36 GMT
478
+ - Wed, 03 Apr 2019 13:32:44 GMT
353
479
  Pragma:
354
480
  - no-cache
355
481
  Server:
@@ -359,15 +485,55 @@ http_interactions:
359
485
  Content-Type:
360
486
  - application/json;charset=UTF-8
361
487
  Expires:
362
- - Thu, 07 Jun 2018 14:30:36 GMT
488
+ - Wed, 03 Apr 2019 13:32:44 GMT
363
489
  body:
364
490
  encoding: ASCII-8BIT
365
- string: '{"data":[{"realm":"ActiveDirectory","tfa":"yubico","type":"ad"},{"comment":"Linux
366
- PAM standard authentication","type":"pam","realm":"pam"},{"realm":"LDAP","comment":"Test
367
- domain LDAP","tfa":"oath","type":"ldap"},{"realm":"pve","type":"pve","comment":"Proxmox
368
- VE authentication server"}]}'
491
+ string: '{"data":[{"realm":"LDAP","comment":"Test domain LDAP","tfa":"oath","type":"ldap"},{"comment":"Proxmox
492
+ VE authentication server","realm":"pve","type":"pve"},{"realm":"pam","comment":"Linux
493
+ PAM standard authentication","type":"pam"},{"type":"ad","realm":"ActiveDirectory","tfa":"yubico"}]}'
369
494
  http_version:
370
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
495
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
496
+ - request:
497
+ method: get
498
+ uri: https://192.168.56.101:8006/api2/json/access/domains
499
+ body:
500
+ encoding: US-ASCII
501
+ string: ''
502
+ headers:
503
+ User-Agent:
504
+ - fog-core/1.45.0
505
+ Accept:
506
+ - application/json
507
+ Cookie:
508
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
509
+ response:
510
+ status:
511
+ code: 200
512
+ message: OK
513
+ headers:
514
+ Cache-Control:
515
+ - max-age=0
516
+ Connection:
517
+ - Keep-Alive
518
+ Date:
519
+ - Wed, 03 Apr 2019 13:32:44 GMT
520
+ Pragma:
521
+ - no-cache
522
+ Server:
523
+ - pve-api-daemon/3.0
524
+ Content-Length:
525
+ - '287'
526
+ Content-Type:
527
+ - application/json;charset=UTF-8
528
+ Expires:
529
+ - Wed, 03 Apr 2019 13:32:44 GMT
530
+ body:
531
+ encoding: ASCII-8BIT
532
+ string: '{"data":[{"type":"ldap","tfa":"oath","realm":"LDAP","comment":"Test
533
+ domain LDAP"},{"type":"pve","comment":"Proxmox VE authentication server","realm":"pve"},{"type":"pam","realm":"pam","comment":"Linux
534
+ PAM standard authentication"},{"type":"ad","realm":"ActiveDirectory","tfa":"yubico"}]}'
535
+ http_version:
536
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
371
537
  - request:
372
538
  method: delete
373
539
  uri: https://192.168.56.101:8006/api2/json/access/domains/LDAP
@@ -380,9 +546,9 @@ http_interactions:
380
546
  Accept:
381
547
  - application/json
382
548
  Csrfpreventiontoken:
383
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
549
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
384
550
  Cookie:
385
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
551
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
386
552
  response:
387
553
  status:
388
554
  code: 200
@@ -393,7 +559,7 @@ http_interactions:
393
559
  Connection:
394
560
  - Keep-Alive, Keep-Alive
395
561
  Date:
396
- - Thu, 07 Jun 2018 14:30:36 GMT
562
+ - Wed, 03 Apr 2019 13:32:44 GMT
397
563
  Pragma:
398
564
  - no-cache
399
565
  Server:
@@ -403,12 +569,12 @@ http_interactions:
403
569
  Content-Type:
404
570
  - application/json;charset=UTF-8
405
571
  Expires:
406
- - Thu, 07 Jun 2018 14:30:36 GMT
572
+ - Wed, 03 Apr 2019 13:32:44 GMT
407
573
  body:
408
574
  encoding: ASCII-8BIT
409
575
  string: '{"data":null}'
410
576
  http_version:
411
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
577
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
412
578
  - request:
413
579
  method: delete
414
580
  uri: https://192.168.56.101:8006/api2/json/access/domains/ActiveDirectory
@@ -421,9 +587,9 @@ http_interactions:
421
587
  Accept:
422
588
  - application/json
423
589
  Csrfpreventiontoken:
424
- - 5B19418C:5Nr6tBpYnbptQmpK6HRTdYPWXp8
590
+ - 5CA4B5FC:HZr6PykVK7OiMXGYVCBY7RTIQIw
425
591
  Cookie:
426
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
592
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
427
593
  response:
428
594
  status:
429
595
  code: 200
@@ -434,7 +600,7 @@ http_interactions:
434
600
  Connection:
435
601
  - Keep-Alive, Keep-Alive
436
602
  Date:
437
- - Thu, 07 Jun 2018 14:30:36 GMT
603
+ - Wed, 03 Apr 2019 13:32:44 GMT
438
604
  Pragma:
439
605
  - no-cache
440
606
  Server:
@@ -444,15 +610,15 @@ http_interactions:
444
610
  Content-Type:
445
611
  - application/json;charset=UTF-8
446
612
  Expires:
447
- - Thu, 07 Jun 2018 14:30:36 GMT
613
+ - Wed, 03 Apr 2019 13:32:44 GMT
448
614
  body:
449
615
  encoding: ASCII-8BIT
450
616
  string: '{"data":null}'
451
617
  http_version:
452
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
618
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
453
619
  - request:
454
620
  method: get
455
- uri: https://192.168.56.101:8006/api2/json/access/domains/LDAP
621
+ uri: https://192.168.56.101:8006/api2/json/access/domains
456
622
  body:
457
623
  encoding: US-ASCII
458
624
  string: ''
@@ -462,36 +628,37 @@ http_interactions:
462
628
  Accept:
463
629
  - application/json
464
630
  Cookie:
465
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
631
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
466
632
  response:
467
633
  status:
468
- code: 500
469
- message: domain 'LDAP' does not exist
634
+ code: 200
635
+ message: OK
470
636
  headers:
471
637
  Cache-Control:
472
638
  - max-age=0
473
639
  Connection:
474
- - close
640
+ - Keep-Alive
475
641
  Date:
476
- - Thu, 07 Jun 2018 14:30:36 GMT
642
+ - Wed, 03 Apr 2019 13:32:44 GMT
477
643
  Pragma:
478
644
  - no-cache
479
645
  Server:
480
646
  - pve-api-daemon/3.0
481
647
  Content-Length:
482
- - '13'
648
+ - '159'
483
649
  Content-Type:
484
650
  - application/json;charset=UTF-8
485
651
  Expires:
486
- - Thu, 07 Jun 2018 14:30:36 GMT
652
+ - Wed, 03 Apr 2019 13:32:44 GMT
487
653
  body:
488
654
  encoding: ASCII-8BIT
489
- string: '{"data":null}'
655
+ string: '{"data":[{"type":"pam","comment":"Linux PAM standard authentication","realm":"pam"},{"comment":"Proxmox
656
+ VE authentication server","realm":"pve","type":"pve"}]}'
490
657
  http_version:
491
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
658
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
492
659
  - request:
493
660
  method: get
494
- uri: https://192.168.56.101:8006/api2/json/access/domains/ActiveDirectory
661
+ uri: https://192.168.56.101:8006/api2/json/access/domains
495
662
  body:
496
663
  encoding: US-ASCII
497
664
  string: ''
@@ -501,31 +668,32 @@ http_interactions:
501
668
  Accept:
502
669
  - application/json
503
670
  Cookie:
504
- - PVEAuthCookie=PVE:root@pam:5B19418C::tGLufObbyWo9mVIOeOZ1oITNuk4DZbmEbmHD67t29QrBTqb+Ow4trKsff2KAsV8kQ137iEP7616jZ3F3ICAyVgn+nAeHvO5XHhK3+MxD32c30xWj2W4dFYXhytWMIw/nGqWjwIqsfYaUpBYoBwxTTf4Exe1JijnaPZIo2NeXFPg7++2LWBC4Ed0ajW3ZSIT/1AUmUB8wqieqSVMWkBpBR8i3E0RCnIElHD/XB5qk8O1a+A9Hnk5X1IAgyQa7qhtcr4vSfVngmcj3UGD1EG6/huJQc4ZMUgUH/9EzUZzd4cZ64GaTQhCykLaSLMZWCHQl6AL2MTXT4WC6Wraw6MGCvg==
671
+ - PVEAuthCookie=PVE:root@pam:5CA4B5FC::h1HVXyhCGMBLWVlKEquCR8zuVMmAoUA59BiQJMRzt/eA4CykjAsOIlLqxIolKeQhiH8XaXVd/2UDEF9fTA8QYZl+heJstOH+yKewosfVHK702Jbq3t9WOeUAI0DteDvvDgDvdkuWvYBjXWmdkSTRmF+ni12oj1tJnhSHMHcodGGHxmjRJRU5NujeyP3Sh1Rs3m6LMsxUXnZud/60bd+QCWsbhx6Vo4OXNVT69pZu6lgsfhSRWGmlLJH4RIH4N3xLebOXxd1gcYFvWIvQnFPqhK8pfnaEBLi/cPzPpHYt42osFbvCPw0CDIbXIe5pU73MgFXOHE/vzSIr7bK8eG/oLg==
505
672
  response:
506
673
  status:
507
- code: 500
508
- message: domain 'ActiveDirectory' does not exist
674
+ code: 200
675
+ message: OK
509
676
  headers:
510
677
  Cache-Control:
511
678
  - max-age=0
512
679
  Connection:
513
- - close
680
+ - Keep-Alive
514
681
  Date:
515
- - Thu, 07 Jun 2018 14:30:36 GMT
682
+ - Wed, 03 Apr 2019 13:32:44 GMT
516
683
  Pragma:
517
684
  - no-cache
518
685
  Server:
519
686
  - pve-api-daemon/3.0
520
687
  Content-Length:
521
- - '13'
688
+ - '159'
522
689
  Content-Type:
523
690
  - application/json;charset=UTF-8
524
691
  Expires:
525
- - Thu, 07 Jun 2018 14:30:36 GMT
692
+ - Wed, 03 Apr 2019 13:32:44 GMT
526
693
  body:
527
694
  encoding: ASCII-8BIT
528
- string: '{"data":null}'
695
+ string: '{"data":[{"type":"pam","comment":"Linux PAM standard authentication","realm":"pam"},{"comment":"Proxmox
696
+ VE authentication server","realm":"pve","type":"pve"}]}'
529
697
  http_version:
530
- recorded_at: Thu, 07 Jun 2018 14:30:37 GMT
698
+ recorded_at: Wed, 03 Apr 2019 13:32:46 GMT
531
699
  recorded_with: VCR 3.0.3