Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-2008, 12:13 PM
Junior Member
 
Posts: 7
Default [SOLVED] Tricky situation

I have a server connected to my zimbra server running a php web app. I have been able to automate a script t add users to zimbra but of course there's the problem of permissions because the zimbra cli requires you to be logged as as user zimbra. so there is my problem. I need to be able to update new users as they signup to our web app on a server attached to zimbra. Any suggestions?
__________________
If I want any crap out of you, I'll squeeze your head.

Last edited by iomari; 02-04-2008 at 02:10 PM..
Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 01:45 PM
Moderator
 
Posts: 441
Default

I've got an internal web box set up with SSH keys to get the zimbra user to run commands. I scp over scripts, and run them.
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 02:00 PM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by p24t View Post
I've got an internal web box set up with SSH keys to get the zimbra user to run commands. I scp over scripts, and run them.
That's exactly what I did. Check this out:

in my sudoers file on my non zimbra server I entered:
wwwrun myhostname = NOPASSWD: /usr/bin/ssh

then on my php script:
echo "<div align=\"center\"><font face=\"verdana\" size=\"4\"><b>Please wait while I update mail account.....</b></font></div>" ;
$mstring = " $ADD_username1@mydomain $ADD_password1" ;
$mresult = `sudo ssh zimbra@mail_server zmprov ca $mstring`;



and it's all cool.


Of course I already generated my keys for passwordless access.
__________________
If I want any crap out of you, I'll squeeze your head.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.