From 973714e0dbb511aee4f1060b7854859d67ca10ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20Morel?= Date: Wed, 1 Jul 2015 09:59:52 +0200 Subject: [PATCH] Add account creation without password In my case I want to create account without password because I do authentication of my users with an external ldap. --- lib/zimbra/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zimbra/account.rb b/lib/zimbra/account.rb index aca776e..fb17905 100644 --- a/lib/zimbra/account.rb +++ b/lib/zimbra/account.rb @@ -107,7 +107,7 @@ class Builder class << self def create(message, account) message.add 'name', account.name - message.add 'password', account.password + message.add 'password', account.password if account.password A.inject(message, 'zimbraCOSId', account.cos_id) account.attributes.each do |k,v| A.inject(message, k, v)