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 05-21-2010, 04:17 AM
New Member
 
Posts: 3
Default zmsoap IMSubscribeRequest requires user to be logged in?

Hey,

I'm trying to add group rosters using zmsoap but it seems that the SOAP requests only work when the user is logged in. I'm an admin trying to provision 10 users so this is not feasible.

zmsoap --type im --verbose --zadmin \
--mailbox $member IMSubscribeRequest \
@addr=$target @name="$uname" @op="add"

zmsoap --type im --verbose --zadmin \
--mailbox $target IMAuthorizeSubscribeRequest \
@addr=$member @authorized="true"

This works fine when both users are logged in.

Am I using zmsoap incorrectly? Any help would be GREATLY appreciated!

Thank you.
Reply With Quote
  #2 (permalink)  
Old 05-25-2010, 03:57 PM
New Member
 
Posts: 3
Default

Sorry to bump this, but it is in part delaying our migration away from Exchange!

If my question wasn't clear please ask for clarification
Reply With Quote
  #3 (permalink)  
Old 02-05-2011, 12:42 AM
Intermediate Member
 
Posts: 24
Default

Quote:
Originally Posted by switch007 View Post
Hey,

I'm trying to add group rosters using zmsoap but it seems that the SOAP requests only work when the user is logged in. I'm an admin trying to provision 10 users so this is not feasible.
I have found the same problem in ZCS GA 6.0.10. I have some ideas but I am not sure if they will be smart enough:

1) Login everyuser with a script that invokes w3m that loads an url with an auth token. I suppose that as w3m does not have javascript we won't go too much further but I am not sure.

2) Use </session> somewhere in the zmsoap command as it suggest me from reading the documentation at /opt/zimbra/docs/soap.txt. Unfortunately it is not evident on how to force zmsoap to associate a session to itself.

Code:
The server's default is disabling sessions for every SOAP request.
Clients that desire notification must explicitly request that the server
maintain a session for them.  This is done by specifying a <session/>
element in the request
3) Try to hack the internal openfire? that has zimbra inside?

4) Try to commit custom database queries to whatever Zimbra internal database uses.

So if you could give any hint on any of these I will appreciate. Thank you for your attention.
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.