If you are using LDAP as a database, the hashing algorithm is configured in OpenDJ. It does not support argon2. You can use a person authentication script to validate against your old database, and then write the password to ldap. I would suggest front ending your old database with an API, because you don't want to make a stateful database connection from a Gluu interception script. There is also a way to implement custom password hashes in the persistence interception script. But it wouldn't be my first choice for the simlest solution.