Zimbra LDAP Authentication

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
zhiachandra
Posts: 4
Joined: Fri May 07, 2021 7:44 am

Zimbra LDAP Authentication

Post by zhiachandra » Fri May 07, 2021 10:08 am

hi there

i'm trying to authenticate phpMyFaq 3.0.9 installation with 2 Different LDAP server
1. Active Directory
2. Zimbra LDAP

So far i can manage to connect phpMyFaq with AD but not with the Zimbra LDAP

everytime i try to login by zimbra account this error always shown :

Code: Select all

phpMyFAQ warning [2]: ldap_bind(): Unable to bind to server: Invalid credentials in /var/www/html/phpmyfaq/src/phpMyFAQ/Ldap.php on line 170
phpMyFAQ warning [2]: ldap_bind(): Unable to bind to server: Invalid credentials in /var/www/html/phpmyfaq/src/phpMyFAQ/Ldap.php on line 170
phpMyFAQ warning [2]: ldap_bind(): Unable to bind to server: Invalid credentials in /var/www/html/phpmyfaq/src/phpMyFAQ/Ldap.php on line 170

here i attach some of my configuration related to this

ldap.php

Code: Select all

$PMF_LDAP['ldap_server'] = '172.x.x.x';
$PMF_LDAP['ldap_port'] = '389';
$PMF_LDAP['ldap_user'] = 'user@domain.com';
$PMF_LDAP['ldap_password'] = 'zxczxczxc;
$PMF_LDAP['ldap_base'] = 'dc=domain,dc=com';

// More LDAP servers
// You can as much as you like, please activate it in the admin configuration panel
// Start with 1

$PMF_LDAP[1]['ldap_server'] = '10.x.x.x';
$PMF_LDAP[1]['ldap_port'] = '389';
$PMF_LDAP[1]['ldap_user'] = 'uid=zimbra,cn=admins,cn=zimbra';
$PMF_LDAP[1]['ldap_password'] = 'zxczxczxc';
$PMF_LDAP[1]['ldap_base'] = 'ou=people,dc=domain,dc=id';
here is the my faqConfig
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| config_name | config_value |
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
| ldap.ldapSupport | true |
| ldap.ldap_dynamic_login_attribute | uid |
| ldap.ldap_mapping.mail | mail |
| ldap.ldap_mapping.memberOf | |
| ldap.ldap_mapping.name | cn |
| ldap.ldap_mapping.username | samAccountName |
| ldap.ldap_options.LDAP_OPT_PROTOCOL_VERSION | 3 |
| ldap.ldap_options.LDAP_OPT_REFERRALS | 0 |
| ldap.ldap_use_anonymous_login | false |
| ldap.ldap_use_domain_prefix | false |
| ldap.ldap_use_dynamic_login | true |
| ldap.ldap_use_memberOf | false |
| ldap.ldap_use_multiple_servers | true |
| ldap.ldap_use_sasl | false |

Thorsten
Posts: 15188
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Zimbra LDAP Authentication

Post by Thorsten » Sat May 08, 2021 6:29 pm

Hi,

Code: Select all

Unable to bind to server: Invalid credentials
is returned, if the username or password are not correct. Do you use very special characters in your password?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

zhiachandra
Posts: 4
Joined: Fri May 07, 2021 7:44 am

Re: Zimbra LDAP Authentication

Post by zhiachandra » Mon May 10, 2021 1:05 am

Hi thorsten

Yes i use special characters in my zimbra user password
But not in my zimbra ldap password,

zhiachandra
Posts: 4
Joined: Fri May 07, 2021 7:44 am

Re: Zimbra LDAP Authentication

Post by zhiachandra » Mon May 10, 2021 2:43 am

hi there

i have testing some different configuration, and i found out that if use thie configuration , the zimbra LDAP login work nicely

$PMF_LDAP['ldap_server'] = '10.x.x.x';
$PMF_LDAP['ldap_port'] = '389';
$PMF_LDAP['ldap_user'] = 'uid=zimbra,cn=admins,cn=zimbra';
$PMF_LDAP['ldap_password'] = 'zxczxczxc';
$PMF_LDAP['ldap_base'] = 'ou=people,dc=domain,dc=id';

| ldap.ldap_use_dynamic_login | false |
| ldap.ldap_mapping.username | uid |

i think the problem is because of the difference of ldap_mapping.username in AD(samAccountName) and zimbra LDAP (uid)
are there any configuration that i can use to make both AD and Zimbra LDAP working together ?

Thorsten
Posts: 15188
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Zimbra LDAP Authentication

Post by Thorsten » Mon May 10, 2021 6:11 am

Hi,

thanks for the feedback.

Sadly, currently only LDAP or AD is possible as it uses the same code. What we could do would be adding AD additional for the 3.1 release?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

zhiachandra
Posts: 4
Joined: Fri May 07, 2021 7:44 am

Re: Zimbra LDAP Authentication

Post by zhiachandra » Tue May 11, 2021 2:59 am

hi Thorsten

thx for your information, hopefully there will be an update in next version ..

Post Reply