rebuild kdm with pam