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

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-19-2006, 01:35 PM
ljm ljm is offline
Project Contributor
 
Posts: 81
Question authentication, CheckAuthConfigRequest and ldap

Hi, I'm experimenting with authenticating a user against the zimbra store. The soap AuthRequest method works fine, but it creates a session and seems a bit heavyweight for a simple yes/no authentication.

I was wondering whether CheckAuthConfigRequest would do the trick, but I can't figure out what the dn's need to be in order to make it work.

Is there an example or doco somewhere? com/zimbra/cs/account/ldap/Check.java doesn't shed any light on what the dn's need to look like.

Taking it one step further, would it be considered bad practice to authenticate via standard ldap bind and avoid the soap api altogether?
Reply With Quote
  #2 (permalink)  
Old 05-19-2006, 07:53 PM
ljm ljm is offline
Project Contributor
 
Posts: 81
Default ldapAuthBindDn

Urgh, 10 mins after posting I found what I was looking for.

In case anyone else is interested:
- see LdapUtil.java
- this ldapAuthBindDn worked for me:
uid=%u,ou=people,dc=domain,dc=com
Reply With Quote
  #3 (permalink)  
Old 05-19-2006, 08:15 PM
Zimbra Employee
 
Posts: 228
Default

If you don't want to create a session, just use <nosession/> in the <soap:Header> of the request:
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  <soap:Header>
    <context xmlns="urn:zimbra">
       <nosession/>
    </context>
  </soap:Header>
  <soap:Body>
     <AuthRequest xmlns="urn:zimbraAccount">
       ...
     </AuthRequest>
  </soap:Body>
</soap:Envelope>
I think that should work. See ZimbraServer/docs/soap.txt for more info.

You could do an LDAP bind directly, as long as you don't care about checking zimbraAccountStatus.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 05-19-2006, 10:26 PM
ljm ljm is offline
Project Contributor
 
Posts: 81
Default

<nosession/> works as described - thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.