I'm trying to integrate an implementation of an LDAP user interface with the ability to change Kerberos user password.
I'm using a non-interactive command for this task:
kadmin -k -t $KEYTABLOCATION -p $SERVICEPRINCIPAL -q "cpw $PRINCIPAL -pw $PASSWORD"
What I found is that this command ignores the password policy assigned to the principal and the complexity rules.
Then password policy rules are respected. But I can't use this statement in a non-interactive mode.
What would be the correct way to proceed?
Thank you so much.