Results 1 to 5 of 5

Thread: Logging in to Zimbra via non-Browser client

  1. #1
    sgbeal is offline Intermediate Member
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    3

    Question Logging in to Zimbra via non-Browser client

    Hello, all!

    1) i am not 100% sure this is the proper forum for this question, but i found no "generic questions" forum (or similar).

    2) Until today i was just an innocent Zimbra user (HTML client), so i'm not at all familar with Zimbras private parts and may just be overlooking something which is obvious...

    My company uses Zimbra and would like to port an internal "Who's In/Out of The Office" calendar based on Zimbras calendar data. i've been poking around the AJAX API (mostly via snooping the request/response JSON via Chrome dev tools) and i've come across what appears to be a big hurdle... (but is more likely an oversight on my part).

    The only mechanism i can find to do a login assumes the client is a browser. i've scoured the various text files which informally describe the requests and have not yet found a login request.

    Is it possible to log in to Zimbra using a non-browser client? My client would be roughly 95% JavaScript and 5% PHP, and i need to be able to receive/send the auth token outside of the HTTP headers. i.e. i cannot rely on cookies support and plan on manually managing the auth token.

    If it is indeed not possible to perform a login via the AJAX API then i can kill this project before it starts.

    :-?

  2. #2
    sgbeal is offline Intermediate Member
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    3

    Default

    Nevermind, i found it: AuthRequest. i was searching all over for "login", which doesn't appear anywhere in the docs near that request.

  3. #3
    vikramsra is offline Member
    Join Date
    Sep 2011
    Posts
    10
    Rep Power
    3

    Default

    will you be able to help me with that

  4. #4
    sgbeal is offline Intermediate Member
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    3

    Default

    Quote Originally Posted by vikramsra View Post
    will you be able to help me with that
    i haven't yet tried it, but will be trying it today or tomorrow. In principal it's easy, though - you send off the request and read the auth token from the response. According to the docs the request/response look like:

    Code:
    <AuthRequest xmlns="urn:zimbraAccount">
       [<account by="name|id|foreignPrincipal">...</account>]
       [<password>...</password>]
       [<preauth timestamp="{timestamp}" expires="{expires}">{computed-preauth-value}</preauth>]
       [<authToken>...</authToken>]
       [<virtualHost>{virtual-host}</virtualHost>]
       [<prefs>[<pref name="..."/>...]</prefs>]
       [<attrs>[<attr name="..."/>...]</attrs>]
       [<requestedSkin>{skin}</requestedSkin>]
     </AuthRequest>
    
     <AuthResponse">
       <authToken>...</authToken>
       <lifetime>...</lifetime>
       <session .../>
       <refer>{mail-host}</refer>
       [<prefs><pref name="{name}" modified="{modified-time}">{value}</pref>...</prefs>]
       [<attrs><attr name="{name}">{value}</attr>...</attrs>]
       [<skin>{skin-name}</skin>]
     </AuthResponse>

  5. #5
    vikramsra is offline Member
    Join Date
    Sep 2011
    Posts
    10
    Rep Power
    3

    Default

    will you be able to provide me a script which works coz i am poor in scripting

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. /tmp filling
    By Nutz in forum Administrators
    Replies: 8
    Last Post: 02-22-2008, 02:00 AM
  2. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  3. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  4. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •