Generate password for ADSAccount

Hello, experts.

I use script SDK_IPasswordManager_CreatePassword and try to generate password for ADSAccount UserPassword column and got error.

Exception has been thrown by the target of an invocation.
at Designer.ScriptEditor.ScriptTestEditor.ExecuteScript(ScriptItem sItem)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[810349] Retry limit for password generation exceeded.
at VI.DB.Passwords.PasswordPolicy.<CreatePasswordAsync>d__106.MoveNext()

If I try to generate password to Person CentralAccount i didn't get error.

Help, please.

Parents
  • We are using the following script:

    Public Function Z_Generate_Password_AD(ByVal accountXobjectKey  As String) As String
    Dim entity As IEntity = Session.Source().Get(New DbObjectKey(accountXObjectKey))
    Dim pwd As String = TSB_GetPassword(entity, "UserPassword", "ADS", "", True)
    Return pwd
    End Function

    and it works fine (but you must have TargetSystem\ADS\Accounts\InitialRandomPassword=1 configation parameter)

Reply
  • We are using the following script:

    Public Function Z_Generate_Password_AD(ByVal accountXobjectKey  As String) As String
    Dim entity As IEntity = Session.Source().Get(New DbObjectKey(accountXObjectKey))
    Dim pwd As String = TSB_GetPassword(entity, "UserPassword", "ADS", "", True)
    Return pwd
    End Function

    and it works fine (but you must have TargetSystem\ADS\Accounts\InitialRandomPassword=1 configation parameter)

Children
No Data