LDAP help

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rayray519
Posts: 18
Joined: Thu Jan 31, 2013 6:12 am

LDAP help

Post by rayray519 »

Having trouble logging in with the LDAP. Keeps saying invalid username and password. I would like to sign in with the userid if possible (instead of using the full email address). *using the correct user, domain and pw of course*

Here is the setup I have in the ldap.php file:

Code: Select all

<?php
$PMF_LDAP["ldap_server"] = 'ldap.domain.com';
$PMF_LDAP["ldap_port"] = 389;
$PMF_LDAP["ldap_user"] = 'user@domain.com';
$PMF_LDAP["ldap_password"] = 'password';
$PMF_LDAP["ldap_base"] = 'DC=domain,DC=com';
Here are the debug errors:

phpMyFAQ warning [2]: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 126
phpMyFAQ warning [2]: ldap_search(): supplied argument is not a valid ldap link resource in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 214
phpMyFAQ warning [2]: ldap_error() expects parameter 1 to be resource, boolean given in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 220
phpMyFAQ warning [2]: ldap_first_entry() expects parameter 1 to be resource, boolean given in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 223
phpMyFAQ warning [2]: ldap_errno() expects parameter 1 to be resource, boolean given in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 226
phpMyFAQ warning [2]: ldap_error() expects parameter 1 to be resource, boolean given in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 228
phpMyFAQ warning [2]: ldap_get_values() expects parameter 1 to be resource, boolean given in C:\wamp\www\pst\kb_lab\inc\Ldap.php on line 231
--
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: LDAP help

Post by Thorsten »

Hi,

the error says "Invalid credentials", so your username/password is not correct

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rayray519
Posts: 18
Joined: Thu Jan 31, 2013 6:12 am

Re: LDAP help

Post by rayray519 »

Yes, thank you Thorsten. I used the domain\username format and it worked
Post Reply