
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
zimbra-client
Advanced tools
zimbra-client is a Node.js module that implements a SOAP client for Zimbra SOAP API
So far this module supports 5 methods
getAdminAuthTokencreateAccountadminRequestmailRequestcreateDomaingetUserAuthTokengetFoldergetCalendarssearchAppointmentsgetMessageFollowing example demonstrates creating a new Zimbra account using zimbra-client. In this example, the code assumes Zimbra is running on localhost, admin username is "admin" and admin password is "test123"
zimbra = require("zimbra-client");
zimbra.getAuthToken("localhost", "admin", "test123",
function(err, authToken) {
if(err != null) {
console.log(err.message);
}
zimbra.createAccount("localhost",{sn:"Solovyev",givenName:"Greg",displayName:"Greg Solovyev",password:"test123",name:"greg4@gregs-mbp.local"},authToken,
function(err1,accountObj) {
if(err1 != null) {
if(err1.code == "account.ACCOUNT_EXISTS") {
console.log("an account with this name already exists");
} else {
console.log(err1.message);
}
} else {
console.log("new account ID" + accountObj.id);
}
}
);
})
zimbra = require("zimbra-client");
zimbra.getAuthToken("localhost", "admin", "test123",
function(err, authToken) {
if(err != null) {
console.log(err.message);
} else {
zimbra.createDomain("localhost", "gregs-mbp2.local", {description:"test domain"}, authToken,
function (err1, respObj) {
if (err1 != null) {
if (err1.code == "account.DOMAIN_EXISTS") {
console.log("Domain with this name already exists");
} else {
console.log(err1.message);
}
} else {
console.log("response object: " + JSON.stringify(respObj));
}
});
}
});
zimbra = require("zimbra-client");
zimbra.getAuthToken("localhost", "admin", "test123",
function(err, authToken) {
if(err != null) {
console.log(err.message);
} else {
zimbra.adminRequest("localhost", "GetAllAdminAccountsRequest", {}, authToken,
function (err1, respObj) {
if(err1 != null) {
console.log(err1.message);
} else {
console.log("response object: " + JSON.stringify(respObj));
}
});
}
});
var ZIMBRA_HOST = "localhost";
var ADMIN_LOGIN = "admin";
var ADMIN_PWD = "test123";
var domain = "testdomain.com";
var userEmail = "user1@testdomain.com";
zimbra = require("zimbra-client");
//get an authtoken
zimbra.getAuthToken(ZIMBRA_HOST, ADMIN_LOGIN, ADMIN_PWD,
function(err, authToken) {
if(err != null) {
console.log(err.message);
} else {
//create a damain using authtoken passed on by getAuthToken
zimbra.createDomain(ZIMBRA_HOST, domain, {description:"test domain"}, authToken,
function (err1, respObj) {
if (err1 != null) {
if (err1.code == "account.DOMAIN_EXISTS") {
console.log("Domain with this name already exists");
} else {
console.log(err1.message);
}
} else {
console.log("Created domain: " + respObj.name);
//create an account using the same authtoken passed on buy getAuthToken
createAccount(ZIMBRA_HOST,{sn:"Solovyev",givenName:"Greg",displayName:"Greg Solovyev",password:"test123",name:userEmail},authToken,
function(err1,accountObj) {
if(err1 != null) {
if(err1.code == "account.ACCOUNT_EXISTS") {
console.log("an account with this name already exists");
} else
{
console.log(err1.message);
}
} else {
console.log("new account ID" + accountObj.id);
}
}
);
}
});
}
});
zimbra-client is licensed under Apache 2. See LICENSE.txt
FAQs
NodeJS client for Zimbra SOAP interface
We found that zimbra-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.