void NsAdapterCatalog::updateUser(const UserInfo& user) throw (DmException) { // uid may not be initialized UserInfo u = this->getUser(user.name); wrapCall(dpns_modifyusrmap(u.getUnsigned("uid"), (char*)user.name.c_str(), user.getLong("banned"))); }
void NsAdapterCatalog::deleteUser(const std::string& userName) throw (DmException) { UserInfo u = this->getUser(userName); wrapCall(dpns_rmusrmap(u.getUnsigned("uid"), (char*)u.name.c_str())); }