Allow LDAP users to change their password.

fixes #440
Merge branch 'master' into 1.0.x