From dcfd1c6caf91903ca496f4fd3030287888fbb3e9 Mon Sep 17 00:00:00 2001 From: dmilov Date: Tue, 15 Dec 2020 13:54:16 +0200 Subject: [PATCH] Fix issue #405 --- .../net45/VMware.vSphere.SsoAdmin.Utils.dll | Bin 7168 -> 7168 bytes .../net45/VMware.vSphere.SsoAdminClient.dll | Bin 200704 -> 200704 bytes .../VMware.vSphere.SsoAdmin.Utils.dll | Bin 7168 -> 7168 bytes .../VMware.vSphere.SsoAdminClient.dll | Bin 201216 -> 201216 bytes .../SsoAdminClient.cs | 28 +++++++++--------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Modules/VMware.vSphere.SsoAdmin/net45/VMware.vSphere.SsoAdmin.Utils.dll b/Modules/VMware.vSphere.SsoAdmin/net45/VMware.vSphere.SsoAdmin.Utils.dll index a2cd665c2d189cf1a9e9b611b743604edf0a7c65..c00cfab943551b9022565f76537d767848f80008 100644 GIT binary patch delta 105 zcmZp$Xt0>j!NSHnj!BXMk^J-(y4_*P@HUGD+n)=FZanqZ2?)+Nk%~SZ!FtRLB`EX})ia>yX znSG{r&gEI&3sNQ;{BBM)n|wsztO8W-{LaWuSjXg%5lV9_SG+**;zvRid{gNkBl9vFFN?JqQXD-+2e%sG? zDN7nHcbURe$YP-P-{XX}c`8+(jACl`2%HedE^zwF7l{jw)hqL+ZPZOH1c-@M#*oY?*< zp}ynza+fJgg)C`mk&mW(urdb-1jIgL+h}6%ID>OXiXhh)&*>{zna?UfMGJ30MM3JP W6-M6H?LJ~SGo$|4_Ni>l*_;5t(>2ck diff --git a/Modules/VMware.vSphere.SsoAdmin/netcoreapp2.0/VMware.vSphere.SsoAdmin.Utils.dll b/Modules/VMware.vSphere.SsoAdmin/netcoreapp2.0/VMware.vSphere.SsoAdmin.Utils.dll index 88ced472582fe8360f99d77fe13c51af78612b6f..9753f23621dc6f253f90b425e62bc1a3f7e649f4 100644 GIT binary patch delta 105 zcmZp$Xt0>j!LsPt#5WszD)j!Q$jtzkOp*1)sp#i8Vju>YLn`v$x34Es%b&S%iNFBa7rWmsOK52m}al zFMKxhSKTqk`5)efOrCtwWU_(aRRySEBTNveS}Q>B+6VT2&s}z}V=ir06}rs{0Ns=^ A&j0`b diff --git a/Modules/VMware.vSphere.SsoAdmin/netcoreapp2.0/VMware.vSphere.SsoAdminClient.dll b/Modules/VMware.vSphere.SsoAdmin/netcoreapp2.0/VMware.vSphere.SsoAdminClient.dll index 0a1d9df776e3433ce4cdd5974794bf3312750f8f..5f62632ddf68da81721a1abf79c79bb46679e3f3 100644 GIT binary patch delta 128 zcmZoz!qc#XXF>-{yXTK98++6|CqL&EX+GxJe$10``!P?ZW!?h&b05}ydsFDRAhbq| zPn%`Z_L`|oB84owy_Nq>pTfo*Ads@>oSE;c=l+YiE-UiI{jr?>g^l^D0#sBVCJIzv YH$S?2L7n&yx74(~3fo_@GmCQp06J$kb^rhX delta 128 zcmZoz!qc#XXF>-Hm&KH+8++6|C+m2MHXrwFKkmu6{kSL7Qg4B-IpRU3OK1D-_!c=u zGDjn7d(BiPkwTW6nG3#8pTfo*AfUKmEnC$(b+5(dTURAdU1l@=3mfxQ1*qt*$52s_ Y`mFTZw~ypleT&ikm9YIKJF_?!0GM_-pa1{> diff --git a/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs b/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs index 00dc093..14ad138 100644 --- a/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs +++ b/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs @@ -33,7 +33,7 @@ namespace VMware.vSphere.SsoAdminClient if (password == null) throw new ArgumentNullException(nameof(password)); var lsClient = new LookupServiceClient(hostname, serverCertificateValidator); - + // Create STS Client var stsUri = lsClient.GetStsEndpointUri(); _securityContext = new UserPassSecurityContext(user, password, stsUri, serverCertificateValidator); @@ -128,7 +128,7 @@ namespace VMware.vSphere.SsoAdminClient public Uri ServiceUri { get; } public string User { get; } - public PersonUser CreateLocalUser( + public PersonUser CreateLocalUser( string userName, string password, string description = null, @@ -203,7 +203,7 @@ namespace VMware.vSphere.SsoAdminClient int.MaxValue)).Result.returnval; if (personUsers != null) { - foreach (var personUser in personUsers) { + foreach (var personUser in personUsers) { yield return new PersonUser(this) { Name = personUser.id.name, Domain = personUser.id.domain, @@ -214,7 +214,7 @@ namespace VMware.vSphere.SsoAdminClient }; } } - + } public void DeleteLocalUser( @@ -256,7 +256,7 @@ namespace VMware.vSphere.SsoAdminClient if (ssoAdminGroups != null) { foreach (var group in ssoAdminGroups) { - yield return new DataTypes.Group { + yield return new DataTypes.Group { Name = group.id.name, Domain = group.id.domain }; @@ -466,7 +466,7 @@ namespace VMware.vSphere.SsoAdminClient } } } - + // Create Authorization Invocation Context var authorizedInvocationContext = CreateAuthorizedInvocationContext(); @@ -482,7 +482,7 @@ namespace VMware.vSphere.SsoAdminClient ssoAdminPasswordPolicy)).Wait(); } - return GetPasswordPolicy(); + return GetPasswordPolicy(); } public LockoutPolicy GetLockoutPolicy() { @@ -501,7 +501,7 @@ namespace VMware.vSphere.SsoAdminClient })).Result; if (ssoAdminLockoutPolicy != null) { - result = new LockoutPolicy(this) { + result = new LockoutPolicy(this) { Description = ssoAdminLockoutPolicy.description, AutoUnlockIntervalSec = ssoAdminLockoutPolicy.autoUnlockIntervalSec, FailedAttemptIntervalSec = ssoAdminLockoutPolicy.failedAttemptIntervalSec, @@ -553,7 +553,7 @@ namespace VMware.vSphere.SsoAdminClient }, ssoAdminLockoutPolicy)).Wait(); - } + } return GetLockoutPolicy(); } @@ -589,7 +589,7 @@ namespace VMware.vSphere.SsoAdminClient public TokenLifetime SetTokenLifetime( long? maxHoKTokenLifetime, long? maxBearerTokenLifetime) { - + var authorizedInvocationContext = CreateAuthorizedInvocationContext(); @@ -638,8 +638,8 @@ namespace VMware.vSphere.SsoAdminClient InvokeOperation(() => _ssoAdminBindingClient.AddExternalDomainAsync( new ManagedObjectReference { - type = "SsoAdminConfigurationManagementService", - Value = "configurationManagementService" + type = "SsoAdminDomainManagementService", + Value = "domainManagementService" }, serverType, domainName, @@ -656,8 +656,8 @@ namespace VMware.vSphere.SsoAdminClient password = authenticationPassword })).Wait(); } - - public IEnumerable GetDomains() { + + public IEnumerable GetDomains() { var authorizedInvocationContext = CreateAuthorizedInvocationContext();