Page 1 of 1

LDAP Authentication

Posted: Mon May 07, 2012 10:48 am
by vikramsra
I am trying to authenticate phpmyfaq with our directory server ds389. My config is as below

ldap.php

<?php
// Main LDAP server
$PMF_LDAP['ldap_server'] = 'ip';
$PMF_LDAP['ldap_port'] = '389';
$PMF_LDAP['ldap_user'] = 'uid=user'; (Also tries uid=user,ou=user,ou=staff,dc=example,dc=in)
$PMF_LDAP['ldap_password'] = 'password';
$PMF_LDAP['ldap_base'] = 'ou=user,ou=staff,dc=example,dc=in';

constants_ldap.php

$PMF_LDAP['ldap_mapping'] = array (
'name' => 'cn',
'username' => 'uid',
'mail' => 'mail'
);

$PMF_LDAP['ldap_use_domain_prefix'] = false;

I just changed these parameters,

Please help me fixing the issue.

Thanks and regards

Re: LDAP Authentication

Posted: Mon May 07, 2012 9:50 pm
by Thorsten
Hi,

which errors do you get?

bye
Thorsten

Re: LDAP Authentication

Posted: Tue May 08, 2012 4:59 am
by vikramsra
Hi Thorsten,
Its saying

Wrong username or password.

I tried it different combinations of the configuration but no luck. Please help we need to deploy this for our school :roll: .

Thanks and regards

Vikram

Re: LDAP Authentication

Posted: Tue May 08, 2012 5:34 am
by Thorsten
Hi,

please check the logs of your LDAP server.

bye
Thorsten

Re: LDAP Authentication

Posted: Tue May 08, 2012 6:05 am
by vikramsra
Did a fresh installation and it's working now thanks for the support
Also i want to address a issue i faced my database password contain special characters like " " due to that i was not able to do web installation. Always password incorrect . So i had to create another user and set password with out special characters than it worked fine. Please look into that also for your future release.

Wonderful Script thanks again will update you guys in case i found anything else :mrgreen:

Re: LDAP Authentication

Posted: Tue May 08, 2012 6:14 am
by Thorsten
Hi,

pretty cool. Please report issues here: https://github.com/thorsten/phpMyFAQ/issues

bye
Thorsten

Re: LDAP Authentication

Posted: Thu Nov 29, 2012 8:33 pm
by Mumanor
Thorsten wrote:Hi,

pretty cool. Please report issues here: https://github.com/thorsten/phpMyFAQ/issues

bye
Thorsten
Are there any changes that are making it possible to create a password with mixed letters and the quotation marks?

Re: LDAP Authentication

Posted: Fri Nov 30, 2012 9:07 am
by Thorsten
Hi,

this is already fixed.

bye
Thorsten