Configurable max password length (bug 1175906)

DocImpact

Change-Id: I1b1de8f7e07afe8af8a5cbb83de7f935cea04670