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 06-27-2011, 11:34 AM
Active Member
 
Posts: 35
Default Python LDAP Zimbra

We are using a custom python milter in our ZCS installation and one of the things it does is query ldap to see if an account is set up in Zimbra.

We did not know much about ldap when we first set this up and it appears our bind is incorrect because we noticed that if zimbraHideInGal was set to true on an account, the ldap query returned false, even if the account was set up.

Below are the parameters we're currently using. Can anyone with ldap experience advise on the correct parameters?

l = ldap.initialize('ldap://ldap1.ourdomain.com:389')
result = l.simple_bind('uid=zmpostfix, cn=appaccts, cn=zimbra', '*********')
result = l.search('', ldap.SCOPE_SUBTREE, '(mail=%s)' % sender, None)
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.