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 04-21-2010, 11:47 PM
Trained Alumni
 
Posts: 336
Default LDAP bind log

Hi

I am trying to set up an external app to auth using Zimbra users.
These are the parameters:
Code:
$PMF_LDAP["ldap_server"] = 'localhost';
$PMF_LDAP["ldap_port"] = '389';
$PMF_LDAP["ldap_user"] = 'uid=zimbra,cn=admins,cn=zimbra';
$PMF_LDAP["ldap_password"] = 'zimbraldappass';
$PMF_LDAP["ldap_base"] = 'ou=people,dc=mydomain,dc=mytld';
as parameters mapping I have (the ones on the right should be zimbra's)
Code:
    'name'     => 'cn',
    'username' => 'uid',
    'mail'     => 'mail'
When the php apps tries to authenticate, I get the following error:
Code:
ldap_get_values(): supplied argument is not a valid ldap result entry resource in Ldap.php on line 181
As LDAP params I have:
Code:
    LDAP_OPT_PROTOCOL_VERSION => 3,
    LDAP_OPT_REFERRALS        => 0
Is there any other param I should set?
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #2 (permalink)  
Old 04-22-2010, 07:12 AM
Moderator
 
Posts: 7,928
Default

Instead of coding it first try the query using ldapsearch.
__________________
Reply With Quote
  #3 (permalink)  
Old 04-22-2010, 11:05 AM
Zimbra Employee
 
Posts: 580
Default

ZCS Ldap doesn't listen on localhost, so I don't expect this to work.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #4 (permalink)  
Old 04-23-2010, 12:35 AM
Trained Alumni
 
Posts: 336
Default

tanks for your reply, but the app is not mine, so I should dig out the sources to see how it builds the query... No easy as well.

And the settings are not for "localhost", that was just not to expose the server it was installed on.
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
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.