Problem with LDAP support

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
three_sixteen
Posts: 11
Joined: Mon Jan 22, 2007 11:42 pm
Contact:

Problem with LDAP support

Post by three_sixteen »

Howdy,

Been using phpmyfaq for quite awhile now, I've made my own themes for it and everything -- but I have not yet played with the LDAP support, and wouldn't you know it.. the time has come for me to figure it out.

I am not, however, very familiar with active directory and so I am unsure how to proceed with getting it to function properly.

My problem I think lies in the ldap_base declaration in dataldap.php, I'm not sure what to put in there. I've been able to determine that all of the other settings are correct, as I get connection errors when I change any one of the other values to an incorrect one -- I'm almost certain that my problem lies in the ldap_base section.

I've tried 'DC=domain, DC=com' but get this error when I try to use any part of the FAQ, I think I'm not understanding what the DN should be.

Code: Select all

Warning: ldap_search() [function.ldap-search]: Search: Operations error in C:\wamp\htdocs\faq\inc\ldap.php on line 89

Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in C:\wamp\htdocs\faq\inc\ldap.php on line 90

Warning: ldap_get_values(): supplied argument is not a valid ldap result entry resource in C:\wamp\htdocs\faq\inc\ldap.php on line 91

Warning: ldap_search() [function.ldap-search]: Search: Operations error in C:\wamp\htdocs\faq\inc\ldap.php on line 110

Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in C:\wamp\htdocs\faq\inc\ldap.php on line 111

Warning: ldap_get_values(): supplied argument is not a valid ldap result entry resource in C:\wamp\htdocs\faq\inc\ldap.php on line 112
I am unsure where to begin trouble shooting, and was hoping I could get some help here.
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which version do you use? I could add some detailed error handling to the current functions so you would get better error messages.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
three_sixteen
Posts: 11
Joined: Mon Jan 22, 2007 11:42 pm
Contact:

Post by three_sixteen »

I'm running version 1.6.8
Post Reply