Try setting it to zero as a string:

ldap.replace_attribute userDn, :pwdlastset, "0"

-- 
Posted via http://www.ruby-forum.com/.