Fix bug #6628 - "smbpassdb -a" using rid algorithm with tdbsam passdb