<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged ldap</title>
<link>https://www.question2answer.org/qa/tag/ldap</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to make LDAP plugin work with Global Catalog?</title>
<link>https://www.question2answer.org/qa/95022/how-to-make-ldap-plugin-work-with-global-catalog</link>
<description>

&lt;p&gt;I have given the LDAP server name and port as&amp;nbsp;3268.&amp;nbsp; But when I enabled LDAP debug, I see that ldap_connect() is still connecting to port 389&lt;/p&gt;

&lt;p&gt;I enabled LDAP debug with the following line in&amp;nbsp;ActiveDirectoryLDAPServer.php:&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/95022/how-to-make-ldap-plugin-work-with-global-catalog</guid>
<pubDate>Thu, 29 Jul 2021 13:30:22 +0000</pubDate>
</item>
<item>
<title>What happen to the internal users if  I setup LDAP authentication?</title>
<link>https://www.question2answer.org/qa/91238/what-happen-to-the-internal-users-setup-ldap-authentication</link>
<description>We have an active Q2A site with internal user authentication enabled. There are at least 30 users. I would like to setup LDAP authentication using qa-ldap-login. Will the existing users be able to login using the internal accounts once I setup LDAP? Will those users be removed/overwritten from the database? What happens to the score of the users ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/91238/what-happen-to-the-internal-users-setup-ldap-authentication</guid>
<pubDate>Fri, 26 Feb 2021 04:43:33 +0000</pubDate>
</item>
<item>
<title>I am packaging Question2Answer for YunoHost, are there any quirks that I should know about? And about LDAP Login?</title>
<link>https://www.question2answer.org/qa/91146/packaging-question2answer-yunohost-quirks-should-about-about</link>
<description>

&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm creating a package to allow easy installation of Q2A on &lt;a rel=&quot;nofollow&quot; href=&quot;https://yunohost.org&quot;&gt;YunoHost&lt;/a&gt; , I plan to add ldap integration to it, is the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/zakkak/qa-ldap-login&quot;&gt;LDAP Login plugin&lt;/a&gt; maintained? Where can I find its stable versions? How stable is that plugin?&lt;/p&gt;

&lt;p&gt;My current version of the package can be found at &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/nils-van-zuijlen/question2answer_ynh&quot;&gt;github.com/nils-van-zuijlen/question2answer_ynh&lt;/a&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/91146/packaging-question2answer-yunohost-quirks-should-about-about</guid>
<pubDate>Tue, 23 Feb 2021 09:52:52 +0000</pubDate>
</item>
<item>
<title>How to fix Error: External login mapped to more than one user ?</title>
<link>https://www.question2answer.org/qa/62837/how-to-fix-error-external-login-mapped-to-more-than-one-user</link>
<description>Please&lt;br /&gt;
&lt;br /&gt;
Out of the blue my application starts to send this message at login :&lt;br /&gt;
&lt;br /&gt;
Question2Answer fatal error:&lt;br /&gt;
&lt;br /&gt;
External login mapped to more than one user&lt;br /&gt;
&lt;br /&gt;
Stack trace:&lt;br /&gt;
&lt;br /&gt;
require() in index.php:27&lt;br /&gt;
require() in qa-index.php:183&lt;br /&gt;
qa_check_login_modules() in qa-page.php:829&lt;br /&gt;
check_login() in qa-page.php:101&lt;br /&gt;
qa_log_in_external_user() in ldap-login.php:33&lt;br /&gt;
&lt;br /&gt;
Version 1.7.2</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62837/how-to-fix-error-external-login-mapped-to-more-than-one-user</guid>
<pubDate>Mon, 12 Mar 2018 14:04:42 +0000</pubDate>
</item>
<item>
<title>1.7 LDAP plugin</title>
<link>https://www.question2answer.org/qa/44781/1-7-ldap-plugin</link>
<description>

&lt;p&gt;I am trying to use the LDAP plugin here:&lt;/p&gt;

&lt;p&gt;&lt;a target=&quot;_blank&quot; class=&quot;vt-p&quot; rel=&quot;nofollow&quot; href=&quot;https://github.com/zakkak/qa-ldap-login&quot;&gt;https://github.com/zakkak/qa-ldap-login&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, the instructions are for pre:1.7 implementations and they reference placing some code into the qa-page-login.php file which is deprecated.&lt;/p&gt;

&lt;p&gt;Can someone tell me how to enable this plugin for version 1.7?&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;

&lt;p&gt;Rick&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/44781/1-7-ldap-plugin</guid>
<pubDate>Wed, 15 Apr 2015 16:10:45 +0000</pubDate>
</item>
<item>
<title>How do I disable the forgot password link?</title>
<link>https://www.question2answer.org/qa/44672/how-do-i-disable-the-forgot-password-link</link>
<description>Right now, I use the QA LDAP Plugin to manage user access (vs. using the built in user database).&lt;br /&gt;
&lt;br /&gt;
As a result, passwords are not managed by Q2A itself.&lt;br /&gt;
&lt;br /&gt;
For this reason, I'd like to disable the forgot my password link, or instead perhaps change it to say something like &amp;quot;User accounts are controlled externally. Please use blah blah LDAP to change your password.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
How do I do this?&lt;br /&gt;
&lt;br /&gt;
(I haven't yet seen what happens when I try to reset my password with the plugin installed, but I am not trying to screw up the app).</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/44672/how-do-i-disable-the-forgot-password-link</guid>
<pubDate>Thu, 09 Apr 2015 18:27:42 +0000</pubDate>
</item>
<item>
<title>LDAP plugin turns all page view counting to 1</title>
<link>https://www.question2answer.org/qa/43226/ldap-plugin-turns-all-page-view-counting-to-1</link>
<description>

&lt;p&gt;After successfully install &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/zakkak/qa-ldap-login&quot;&gt;LDAP plugin&lt;/a&gt;&amp;nbsp;from Zakkak, the view counts of my questions become all to be 1 (one). The IP of the viewers are all to be the LDAP server IP.&lt;/p&gt;

&lt;p&gt;How can I get view couting work normally with LDAP login?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43226/ldap-plugin-turns-all-page-view-counting-to-1</guid>
<pubDate>Sun, 25 Jan 2015 05:36:05 +0000</pubDate>
</item>
<item>
<title>How to prevent users from changing their username or email</title>
<link>https://www.question2answer.org/qa/43176/how-to-prevent-users-from-changing-their-username-or-email</link>
<description>I am using the qa-ldap-plugin to do user management. If a user exists in the LDAP directory, then they can log in with their credentials. All new users etc. are managed through that LDAP directory.&lt;br /&gt;
&lt;br /&gt;
The qa-ldap-plugin creates a user in the MySQL database if they exist in the LDAP directory but have never logged in before. This way, all user credentials etc are totally managed by LDAP.&lt;br /&gt;
&lt;br /&gt;
However, a user could still go in to their profile and edit their username or email address. This may cause issues from an administration standpoint, because I need this information to always stay consistent with the LDAP directory. How do I prevent a user from modifying this info?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43176/how-to-prevent-users-from-changing-their-username-or-email</guid>
<pubDate>Fri, 23 Jan 2015 16:34:58 +0000</pubDate>
</item>
<item>
<title>After using QA-LDAP-Plugin, I get a redirect loop after logging in. How do I fix?</title>
<link>https://www.question2answer.org/qa/43169/after-using-ldap-plugin-get-redirect-loop-after-logging-how</link>
<description>I recently installed the qa-ldap-plugin to my question2answer instance, and I went to test it out, and after logging in, I got a redirect loop on my browser. I did some diagnostics to check that my LDAP configuration was working correctly, and did not find that to be an issue. Has anyone faced a similar issue?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43169/after-using-ldap-plugin-get-redirect-loop-after-logging-how</guid>
<pubDate>Fri, 23 Jan 2015 12:49:50 +0000</pubDate>
</item>
<item>
<title>Special characters in users' names displayed incorrectly</title>
<link>https://www.question2answer.org/qa/39285/special-characters-in-users-names-displayed-incorrectly</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
my problem is that names of users (as displayed next to questions etc.) containing special characters such as &amp;quot;ö&amp;quot; (German) are displayed with cryptic character codes in Q2A. For example, my own name, which should be &amp;quot;lukas_könig&amp;quot; is shown as &amp;quot;lukas_k%c3%b6nig&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
My Q2A platform is set up within wordpress. Q2A receives user data from wordpress which in turn gets the users over an LDAP interface, so the names Q2A gets are given from outside. (lukas_könig is not the user name in word press, but given as first and surname, so Q2A seems to construct the name to display by putting a &amp;quot;_&amp;quot; in between.)&lt;br /&gt;
&lt;br /&gt;
I tried to fix the problem by changing the &amp;quot;public name&amp;quot; in wordpress to one without special characters, but it didn't work (although wordpress itself displays special characters correctly). Also, as I am expecting several hundreds of users, I am looking for a more general solution to the problem.&lt;br /&gt;
&lt;br /&gt;
Is there a way to solve this once and for all?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
Lukas</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/39285/special-characters-in-users-names-displayed-incorrectly</guid>
<pubDate>Fri, 10 Oct 2014 08:25:05 +0000</pubDate>
</item>
<item>
<title>Who can provide a working LDAP integration Plugin?</title>
<link>https://www.question2answer.org/qa/35276/who-can-provide-a-working-ldap-integration-plugin</link>
<description>Who can provide a working LDAP integration Plugin for q2a v1.6.3?&lt;br /&gt;
&lt;br /&gt;
The only one I found is for 1.5 maybe and it's out of date and can not be used for 1.6.3.&lt;br /&gt;
&lt;br /&gt;
I have problems with both login and logout even after a lot of change to the code.&lt;br /&gt;
&lt;br /&gt;
Any one can share a working plugin for LDAP that can be used on 1.6.3?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/35276/who-can-provide-a-working-ldap-integration-plugin</guid>
<pubDate>Fri, 20 Jun 2014 15:02:49 +0000</pubDate>
</item>
<item>
<title>Have you detailed instructions anywhere</title>
<link>https://www.question2answer.org/qa/34552/have-you-detailed-instructions-anywhere</link>
<description>

&lt;p&gt;
	Can you provide more complete instructions - it is not clear.&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;Insert the following line of code above the if statement near line 59 of qa-include/qa-page-login.php&lt;/em&gt;&lt;/p&gt;


&lt;p style=&quot;box-sizing: border-box;box-sizing: border-box; margin: 15px 0px;&quot;&gt;
	&lt;em&gt;require_once QA_INCLUDE_DIR.'../qa-plugin/qa-ldap-login/qa-ldap-process.php';&lt;/em&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Please indicate exactly what line of code this should be before (blank login php page when this line is added to this file)?&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Also, see below for the details of two users I have added in LDAP:&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;Distinguished Name: cn=User Foo,ou=Users,dc=example,dc=org&lt;/em&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;Distinguished Name: cn=User Bar,ou=Users,dc=example,dc=org&lt;/em&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;em&gt;Their uid's would be userfoo and userbar respectively.&lt;/em&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;What&amp;nbsp;Generic LDAP search strings and&amp;nbsp;Generic LDAP search authenticate attribute should be entered.&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Thanks.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/34552/have-you-detailed-instructions-anywhere</guid>
<pubDate>Thu, 22 May 2014 02:26:32 +0000</pubDate>
</item>
<item>
<title>working ldap</title>
<link>https://www.question2answer.org/qa/29998/working-ldap</link>
<description>

&lt;div&gt;
	hello&lt;/div&gt;


&lt;div&gt;
	Please help me with the plugin &quot;ldap login.&quot;&lt;/div&gt;


&lt;div&gt;
	Download, install, in prescribing settings ldap writes that can not be found.&lt;/div&gt;


&lt;div&gt;
	Give what you can do?&lt;/div&gt;


&lt;div&gt;
	PS system centos + apache + php + mysql&lt;/div&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29998/working-ldap</guid>
<pubDate>Thu, 19 Dec 2013 09:49:59 +0000</pubDate>
</item>
<item>
<title>Q2A LDAP login not working</title>
<link>https://www.question2answer.org/qa/26411/q2a-ldap-login-not-working</link>
<description>

&lt;p&gt;
	Hello,&lt;/p&gt;


&lt;p&gt;
	I am attempting to setup LDAP Authentication for an internal company Q2A site. I found and installed this plugin:&amp;nbsp;&lt;a href=&quot;https://github.com/robkub/qa-ldap-login&quot; rel=&quot;nofollow&quot;&gt;https://github.com/robkub/qa-ldap-login&lt;/a&gt;. I added the following line to&amp;nbsp;&lt;span style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25px;&quot;&gt;qa-include/qa-page-login.php. Hopefully its in the right spot... The instructions said around line 59&lt;/span&gt;&lt;/p&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (qa_clicked('dologin') &amp;amp;&amp;amp; (strlen($inemailhandle) || strlen($inpassword)) ) {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.'qa-app-limits.php';&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;background-color:#ffff00;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.'../qa-plugin/qa-ldap-login/qa-ldap-process.php';&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (qa_user_limits_remaining(QA_LIMIT_LOGINS)) {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.'qa-db-users.php';&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.'qa-db-selects.php';&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;p&gt;
	If i start up tshark and attempt a login, i can actually see the ldap authenticaiton succeed, but the q2a page just takes me to the login page agian (/?qa=login).&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=10624725146767944724&quot; style=&quot;width: 600px; height: 228px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	Any ideas what the problem might be? Are any assitance in how to troubleshoot it? I know very little php.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/26411/q2a-ldap-login-not-working</guid>
<pubDate>Wed, 07 Aug 2013 15:07:47 +0000</pubDate>
</item>
<item>
<title>Page Not Found on Logout after custom Login Module</title>
<link>https://www.question2answer.org/qa/22628/page-not-found-on-logout-after-custom-login-module</link>
<description>

&lt;p&gt;
	Hi all,&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	I have created a small plugin module (based on this &lt;a href=&quot;https://github.com/zakkak/qa-ldap-login&quot; rel=&quot;nofollow&quot;&gt;ldap_plugin&lt;/a&gt;) for auto login via NTLM results for my intranet. It logs users in under the supplied credentials but when the user clicks logout I get a 400 Bad Request error.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Can anyone shed some light?&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	I have included my plugin code below:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	ntlm_login.php{&lt;/p&gt;


&lt;p style=&quot;margin-left: 40px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div&gt;
	&amp;lt;?php&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	class ntlm_login {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; function load_module($directory, $urltoroot)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; $this-&amp;gt;directory=$directory;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; $this-&amp;gt;urltoroot=$urltoroot;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; } // end function load_module&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; // check_login checks to see if user is already logged in by looking for&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; // a cookie or session variable (dependent on 'remember me' setting&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; function check_login()&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; if(!isset($_COOKIE[&quot;qa-login_fname&quot;]) &amp;amp;&amp;amp; !isset($_SESSION[&quot;qa-login_fname&quot;])) {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.&quot;../qa-plugin/qa-ldap-login/qa-ntlm-func.php&quot;;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; if($user_data = get_user_data())&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $fname = $user_data[0];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $lname = $user_data[1];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $email = $user_data[2];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $username = $user_data[3];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; if(isset($inremember)) {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if($inremember == 'true') {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setcookie(&quot;qa-login_lname&quot;, $lname, time() + $expire, '/');&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setcookie(&quot;qa-login_fname&quot;, $fname, time() + $expire, '/');&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setcookie(&quot;qa-login_email&quot;, $email, time() + $expire, '/');&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setcookie(&quot;qa-login_user&quot;, $user, time() + $expire, '/');&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $_SESSION[&quot;qa-login_lname&quot;] = $lname;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $_SESSION[&quot;qa-login_fname&quot;] = $fname;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $_SESSION[&quot;qa-login_email&quot;] = $email;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $_SESSION[&quot;qa-login_user&quot;] = $user;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; if(isset($_COOKIE[&quot;bdops-login_fname&quot;])){&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $fname = $_COOKIE[&quot;qa-login_fname&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $lname = $_COOKIE[&quot;qa-login_lname&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $email = $_COOKIE[&quot;qa-login_email&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $username = $_COOKIE[&quot;qa-login_user&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $fname = $_SESSION[&quot;qa-login_fname&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $lname = $_SESSION[&quot;qa-login_lname&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $email = $_SESSION[&quot;qa-login_email&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $username = $_SESSION[&quot;qa-login_user&quot;];&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $source = 'ldap';&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $identifier = $email;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $fields['email'] = $email;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $fields['confirmed'] = true;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $fields['handle'] = $username;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; $fields['name'] = $fname . &quot; &quot; . $lname;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; qa_log_in_external_user($source,$identifier,$fields);&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; }&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; } // end function check_login&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; function match_source($source)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; return $source=='ldap';&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; } // end function match_source&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; function login_html($tourl, $context)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; } // end function login_html&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; function logout_html ($tourl)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; {&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; require_once QA_INCLUDE_DIR.&quot;qa-base.php&quot;;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; $_SESSION['logout_url'] = $tourl;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; $logout_url = qa_path('auth/logout', null, qa_path_to_root());&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; echo('&amp;lt;a href=&quot;'.$logout_url.'&quot;&amp;gt;'.qa_lang_html('main/nav_logout').'&amp;lt;/a&amp;gt;');&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; } // end function logout_html&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	} // end class ldap_login&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22628/page-not-found-on-logout-after-custom-login-module</guid>
<pubDate>Tue, 26 Mar 2013 02:03:20 +0000</pubDate>
</item>
<item>
<title>Please create simple LDAP plugin</title>
<link>https://www.question2answer.org/qa/22619/please-create-simple-ldap-plugin</link>
<description>I would pay a small fee to have a simple way to setup/install an LDAP plugin. &amp;nbsp;I have tried that one that is in the plugins, but no luck. &amp;nbsp;If there was a way to get it work by plugging in the various settings needs, that would be ideal.&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Ray</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22619/please-create-simple-ldap-plugin</guid>
<pubDate>Mon, 25 Mar 2013 17:38:52 +0000</pubDate>
</item>
<item>
<title>How do I increase the user handle size?</title>
<link>https://www.question2answer.org/qa/22267/how-do-i-increase-the-user-handle-size</link>
<description>I have a site set up with LDAP. &amp;nbsp;It works great for most North American names. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, we have several staff with names longer than 20 characters. &amp;nbsp;Besides widening the qa_users.handle field, any suggestions for what else I should be looking at to get the Q2A core to work with a wider handle (say 64 chars)?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22267/how-do-i-increase-the-user-handle-size</guid>
<pubDate>Fri, 15 Mar 2013 16:12:33 +0000</pubDate>
</item>
<item>
<title>Who has a working LDAP plugin working?</title>
<link>https://www.question2answer.org/qa/21896/who-has-a-working-ldap-plugin-working</link>
<description>Could really use some help getting the LDAP plugin working.&lt;br /&gt;
&lt;br /&gt;
Please help.&lt;br /&gt;
&lt;br /&gt;
Thanks,</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21896/who-has-a-working-ldap-plugin-working</guid>
<pubDate>Sun, 03 Mar 2013 15:29:04 +0000</pubDate>
</item>
<item>
<title>Getting &quot;User not found&quot; error</title>
<link>https://www.question2answer.org/qa/21491/getting-user-not-found-error</link>
<description>I have the ldap plugin setup as described and now I am getting user not found erors.&lt;br /&gt;
&lt;br /&gt;
Does anyone know how to fix this?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21491/getting-user-not-found-error</guid>
<pubDate>Sat, 16 Feb 2013 00:58:45 +0000</pubDate>
</item>
<item>
<title>Does anyone have LDAP authentication working?</title>
<link>https://www.question2answer.org/qa/21312/does-anyone-have-ldap-authentication-working</link>
<description>

&lt;p&gt;
	Does anyone have it working? &amp;nbsp;If so, would you mind helping me with my setup? &amp;nbsp;I have my environment setup but I am getting a couple of errors that I can't seem to fix. &amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Fatal error: Call to undefined function ldap_connect() in C:\UniServer\www\qa-lab\qa-plugin\qa-ldap-login\qa-ldap-process.php on line 20&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Line 20 from qa-ldap-process.php is:&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div&gt;
	// Establish link with LDAP server&lt;/div&gt;


&lt;div&gt;
	$con = &amp;nbsp;ldap_connect($ldap_hostname,$ldap_port) or die (&quot;Could not connect to ldap host.&quot;);&lt;/div&gt;


&lt;div&gt;
	if (!is_resource($con)) trigger_error(&quot;Unable to connect to $hostname&quot;,E_USER_WARNING);&lt;/div&gt;


&lt;div&gt;
	ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);&lt;/div&gt;


&lt;div&gt;
	ldap_set_option($con, LDAP_OPT_REFERRALS, 0);&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&lt;strong&gt;Here is my ldap config:&lt;/strong&gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	

&lt;div&gt;
		&amp;lt;?php&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		$ldap_search_strings = array( 'uid=username,dc=domain,dc=net' );&lt;/div&gt;
	

&lt;div&gt;
		$ldap_hostname = 'ldap://ldap.domain.net/';&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		$ldap_port = 389;&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		?&amp;gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;
	Is there a better way to handle the LDAP login for the Q2A site? &amp;nbsp;I really need some help.&lt;/p&gt;


&lt;p&gt;
	Thanks!&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/21312/does-anyone-have-ldap-authentication-working</guid>
<pubDate>Sat, 09 Feb 2013 12:17:35 +0000</pubDate>
</item>
</channel>
</rss>