This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom rule for Password Policy in V8.0.1

Hello,

I've got a specific rule I would like to implement in one of my Password Policies.

So far, I generate a random password 2 caracter long with one lowercase caracter and one numeric caracter ; xy. I would like the final result to be xxxxyyyy, to do so I'm using a custom script as suggested by the documentation https://support.oneidentity.com/technical-documents/identity-manager/8.0.1/administration-guide-for-connecting-to-active-directory/12#TOPIC-911002 .

I can't manage to output a longer password than the input. I get an error no matter what, even for a script as simple as :

Public Sub CCC_PwdGenerate(ByVal policy As PasswordPolicy, ByVal spwd As SecureString)
         spwd.AppendChar(CChar("@"))
End Sub 

Is is allowed to generate a password longer than the input? What is the easiest way to do it?

Thanks guys,

Mustapha