hello all, just installed 1.5 rc4 and I am trying to get LDAP to work. I need to be able to make it so that you can browse the FAQ non-authenticated but have to authenticate to ask a question or post a new entry.
I have an Active Directory environment and would like to use that so that the form is prepopulated with their name & email. How can I require authentication for questions and entries and make it use LDAP? I have the LDAP setup and the checkbox checked in the admin backend but that just generates ldap_search errors when I go to a "add" page because there is no "remote user" seen as they haven't authenticated yet.
Thanks!
LDAP & User Authentication
Moderator: Thorsten
Hi,
could you please post your LDAP errors?
An authentication via LDAP will be available in phpMyFAQ 1.6.
bye
Thorsten
could you please post your LDAP errors?
An authentication via LDAP will be available in phpMyFAQ 1.6.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Code: Select all
Warning: ldap_get_values(): supplied argument is not a valid ldap result entry resource in /www/ithd.current.inet/html/phpmyfaq/inc/ldap.php on line 91
Warning: ldap_get_values(): supplied argument is not a valid ldap result entry resource in /www/ithd.current.inet/html/phpmyfaq/inc/ldap.php on line 112
Hi,
thanks a lot for debugging!
bye
Thorsten
thanks a lot for debugging!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Here's what I did to solve my problem.
I created an .htaccess file that auths to my Active Directory, unfortunately everyone has to authenticate even to view the files but I guess if I have to have that for now I do.
But I also had to make changes to inc/ldap.php
I changed the search strings in ldap_getEmail & ldap_getCompleteName to read the following:
Notice that it is searching on 'samaccountname' instead of 'uid'
This works for a 2003 Active Directory structure.
I created an .htaccess file that auths to my Active Directory, unfortunately everyone has to authenticate even to view the files but I guess if I have to have that for now I do.
But I also had to make changes to inc/ldap.php
I changed the search strings in ldap_getEmail & ldap_getCompleteName to read the following:
Code: Select all
$sr = ldap_search($this->ds, $this->base, 'samaccountname='.$username, array('cn'));
This works for a 2003 Active Directory structure.
Hi,
thanks a lot. I think, this should be editable, so everyone can change it.
bye
Thorsten
thanks a lot. I think, this should be editable, so everyone can change it.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
this is what I thought, too.
bye
Thorsten
this is what I thought, too.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist