LDAP Authentication

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
vikramsra
Posts: 16
Joined: Mon May 07, 2012 10:42 am
Location: Bangalore
Contact:

LDAP Authentication

Post by vikramsra » Mon May 07, 2012 10:48 am

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

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

Re: LDAP Authentication

Post by Thorsten » Mon May 07, 2012 9:50 pm

Hi,

which errors do you get?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

vikramsra
Posts: 16
Joined: Mon May 07, 2012 10:42 am
Location: Bangalore
Contact:

Re: LDAP Authentication

Post by vikramsra » Tue May 08, 2012 4:59 am

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

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

Re: LDAP Authentication

Post by Thorsten » Tue May 08, 2012 5:34 am

Hi,

please check the logs of your LDAP server.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

vikramsra
Posts: 16
Joined: Mon May 07, 2012 10:42 am
Location: Bangalore
Contact:

Re: LDAP Authentication

Post by vikramsra » Tue May 08, 2012 6:05 am

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:

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

Re: LDAP Authentication

Post by Thorsten » Tue May 08, 2012 6:14 am

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Mumanor
Posts: 2
Joined: Thu Nov 29, 2012 8:30 pm

Re: LDAP Authentication

Post by Mumanor » Thu Nov 29, 2012 8:33 pm

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?

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

Re: LDAP Authentication

Post by Thorsten » Fri Nov 30, 2012 9:07 am

Hi,

this is already fixed.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests