Configure PHPMyFAQ for Zimbra LDAP auth

PHPMyFaq is an excellent open source PHP based FAQ software. It helps you or your organization, like our, to keep good documentation, shared, and accessible everywhere.
It provides several functionalities, but the one we use the most is keeping articles and making search very fast and easy.

As every web based software has its own users db, but can also authenticate against an external LDAP directory, like Zimbra.

Configuration is very quick. First edit config/constants_ldap.php:

$PMF_LDAP['ldap_mapping'] = array (<br />
'name'     =&gt; 'cn',<br />
'username' =&gt; 'uid',<br />
'mail'     =&gt; 'mail');<br />
$PMF_LDAP['ldap_use_domain_prefix'] = false;<br />
$PMF_LDAP[&quot;ldap_options&quot;] = array (<br />
LDAP_OPT_PROTOCOL_VERSION =&gt; 3,<br />
LDAP_OPT_REFERRALS        =&gt; 0 );<br />

Then create config/ldap.php (change the values according to your install):
<br />
&lt;?&lt;/div&gt;<br />
$PMF_LDAP[&quot;ldap_server&quot;] = 'MYZIMBRASERVER';<br />
$PMF_LDAP[&quot;ldap_port&quot;] = '389';<br />
$PMF_LDAP[&quot;ldap_user&quot;] = 'uid=zimbra,cn=admins,cn=zimbra';<br />
$PMF_LDAP[&quot;ldap_password&quot;] = 'ZIMBRALDAPPWD';<br />
$PMF_LDAP[&quot;ldap_base&quot;] = 'ou=people,dc=MYDOMAIN,dc=IT';<br />
?&gt;<br />

Finally, login as admin to your PHPMyFaq install and go to Configuration > Main configuration, and enable “LDAP support”.
You’re done, now login to PMF using Zimbra login!

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Solve : *
8 × 9 =


Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.