Luke, Looks to me like you've taken out pwdb_uid_to_user_rid and you are trying to use rid = 0xFFFFFFFF to mean unassigned? The problem is that add_new_user doesn't set the rid, so users added with smbpasswd will never be assigned rids - we need to do the uid->rid mapping there. Matt -- Matt Chapman mattyc at cyberdude.com