<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Web-Site-Scripts.com - LDAP</title>
        <link>https://www.web-site-scripts.com/knowledge-base/category/106</link>
        <description><![CDATA[Root / KnowledgeBase Manager Pro / Integration & Customization / LDAP]]></description>
        <language>en-us</language>
        <generator>KnowlageBase RSS Generator</generator>

         
                <item>
                        <title>Alternative method for LDAP groups mapping</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00667</link>
                                    <description><![CDATA[<p>This method could be more flexible if you have a large number of groups on the LDAP server (thousands of groups), it also allows searching for LDAP groups by name, and even quick mapping of a LDAP group by its ID (ObjectGUID).</p><p>Before mapping groups using this method, make sure that you have <a href="ARTICLE_URL#400##AA-00439#" target="">set up and enabled connection to the LDAP server</a>.</p><p>Go to Users &amp; Groups &gt; Staff &gt; Manage Staff Groups.</p><p>Click Edit against the desired group.</p><p>Click on the LDAP Groups Mapping (if you do not see this tab, it means that LDAP connection is not set up or disabled).</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00667/mazio.png" alt="" title="" width="558" height="174" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p><p>Right now there are no LDAP groups shown here.</p><p>Click "Map LDAP Groups".</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00667/mazio2.png" alt="" title="" width="562" height="224" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p><p>You will see the list of groups from your LDAP server. You can click "Add" against a group to map it to a KMP group.</p><p>Search field allows to find LDAP groups by name (or its part) or by ObjectGUID.</p><p>Once you're finished with mapping, click red cross button.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00667/mazio3.png" alt="" title="" width="558" height="224" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p><p>Here you can see all mapped LDAP groups now.</p><p>If you'd go to Administration &gt; General Settings &gt; LDAP Settings, you'll see the same LDAP groups mapped to the same KMP category.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00667/mazio4.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>]]></description>
                                    <pubDate>Thu, 21 Apr 2011 16:28:49 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00667</guid>
                    </item>
                <item>
                        <title>Import LDAP users from different OUs</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00621</link>
                                    <description><![CDATA[<p><p><font size="5" color="#4F81BD">Q</font>: Our users are in different OUs under a single company DN. How can I set up the LDAP settings so that users from different OUs can authenticate?</p><p>For example, we have users in&nbsp;</p><p>OU=ABC,DC=MyCompany,DC=com&nbsp;</p><p>as well as in&nbsp;</p><p>OU=DEF,DC=MyCompany,DC=com</p><p><br></p><p><font size="5" color="#4F81BD">A</font>: You can omit the OU and use this for BaseDN:</p><p>DC=MyCompany,DC=com</p><p><div class="info">
<div class="infoHeader">Note</div>
<div class="infoContent">
<p>
You should use LDAP v3 and "LDAP version 3" option must be turned on in LDAP connection setting in KMP.
</p>
</div>
</div>
<p><br></p><br></p></p>]]></description>
                                    <pubDate>Mon, 10 Jan 2011 11:10:40 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00621</guid>
                    </item>
                <item>
                        <title>LDAP Troubleshooting</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00572</link>
                                    <description><![CDATA[<p>If you&nbsp;experience the following&nbsp;problems use this troubleshooting guide to resolve them.</p><p></p><ul><li><span style="line-height: 16px; "><a href="#mapping" target="">mapping of KMP and LDAP groups</a></span></li><li><span style="line-height: 16px; "><a href="#login" target="">LDAP users are unable to login to KMP</a></span></li><li><span style="line-height: 16px; "><a href="#login" target="">you cannot import&nbsp;LDAP users&nbsp;to KMP</a></span></li><li><a href="#other" target="">other issues</a></li></ul><p></p><h2><a name="mapping" ></a>Group Mapping Issues</h2><p>If you do not see any groups under the LDAP Group entry in Group Mappings section, this probably means that you have specified incorrect LDAP connection details.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/no-groups.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>Check the following settings first:</p><p></p><ul><li><span style="line-height: 16px;">Allow Follow Referrals</span></li><li><span style="line-height: 16px;">LDAP Version 3</span></li><li><span style="line-height: 16px;">Negotiate TLS</span></li><li><span style="line-height: 16px;">Base DN</span></li><li><span style="line-height: 16px;">Connect Username</span></li><li><span style="line-height: 16px;">Connect Password</span></li></ul><h2><a name="login" ></a>LDAP Users Import or Login Issues</h2><p></p><div class="info">
<div class="infoHeader">To import or not to import</div>
<div class="infoContent">
<p>
Please note that you do not necessarily import users from the LDAP server. If you finished setup connection to the LDAP server and groups mapping,&nbsp;try to login as one of the users from mapped groups. If all settings are correct, you'll be able to login using username and password from the LDAP server. Account in KMP will be created automatically&nbsp;upon login.</p>
</div>
</div>
<p>If you specify OU (Organizational Unit) in Base DN, make sure that LDAP users that you want to import belong to this OU as well as their parent groups. Otherwise, they won't be imported. Try to remove OU to check if that's the cause of the problem.</p><p></p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/ou.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>Remember that LDAP users that you want to import must have all these required attributes: account name, first name, last name, email. Otherwise they won't be imported. Make sure that attributes here in KMP preferences (LDAP&nbsp;Synchronization&nbsp;Preferences) match user attributes on the LDAP server.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/sync.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><h2><a name="other" ></a>Other issues</h2><p>KMP has built-in log for all LDAP operations, which helps to troubleshoot any issue with connection to your LDAP server.</p><p>To enable the log, edit the <b>/admin/config.inc.php</b> file and change LOG_LDAP_OPERATIONS flag from "FALSE" to "TRUE":</p><p></p><div class="preformatted">
<div class="preformattedContent">
define('LOG_LDAP_OPERATIONS', <span style="background-color: rgb(255, 255, 0);">TRUE</span>);<br></div>
</div>
<p>Then try to reproduce the issue (try connecting to the LDAP server if you have an issue with connection, or try to import LDAP users if you have an issue with users import).</p><p>Log file will be generated and saved to the <b>/admin/tmp/</b> folder in this format:&nbsp;<i>ldap_log-YYYY-MM-DD.txt</i></p><p>You can now open this file and check for errors or <a href="http://www.web-site-scripts.com/knowledge-base/askQuestionForm" target="">send it to us for investigation</a>.</p><p></p>]]></description>
                                    <pubDate>Wed, 17 Nov 2010 18:49:44 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00572</guid>
                    </item>
                <item>
                        <title>Setting up LDAP integration</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00439</link>
                                    <description><![CDATA[<p>This article describes how to setup LDAP integration in Knowledgebase Base Manager Pro.&nbsp;</p>
<p></p>
<div class="info">
<div class="infoHeader">What is "LDAP"?</div>
<div class="infoContent">
<p>
</p>
<p style="padding: 0px; margin: 0px 0px 17px; font-size: 12px; line-height: 1.4em;">LDAP stands for Lightweight Directory Access Protocol, and allows usage of single user account directory to login to various applications.</p>
<p style="padding: 0px; margin: 0px 0px 17px; font-size: 12px; line-height: 1.4em;"></p>
<p style="padding: 0px; margin: 0px 0px 17px; font-size: 12px; line-height: 1.4em;">&nbsp;&nbsp;You can use existing LDAP server to manage user integration and authentication with following options:</p>
<ul class="onelevel" style="padding: 0px 0px 0px 40px; margin: 0px 0px 17px; font-size: 12px; list-style-position: outside; line-height: 1.6em;"><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">Authorization</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">Group Mapping</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">Synchronization of User Details</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">Synchronization of Groups</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">User Group Assignment</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">LDAP version 3 support</li><li style="padding: 1px 0px; margin: 0px; font-size: 12px; list-style-type: disc; line-height: inherit;">And much more is available with LDAP support now.</li></ul>
<p></p>
<p style="padding: 0px; margin: 0px 0px 17px; font-size: 12px; line-height: 1.4em;">As well as integration, user account details can be synched and LDAP groups can be mapped with KnowledgeBase Manager Pro groups for role-based permissions.</p>
<p></p>
</div></div>
<p></p>
<h2><font color="#366092">&nbsp;Setup Instructions</font></h2>
<p></p>
<ol><li>Go to the "<b>LDAP Settings</b>" section in <b>Administration &gt; General Settings</b>.</li><li>First of all tick the "<b>Enable LDAP Authentication</b>" checkbox to start and select a&nbsp;<b>LDAP platform.</b><br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/enable-and-platform.png" alt="Enable LDAP authentication and select LDAP platform" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="82" hspace="0" vspace="0" width="376"><br><br></li><li>Specify correct <b>LDAP host</b> and <b>port</b>. <br><br><div class="attention">
<div class="attentionHeader">LDAP Host and Port<br></div>
<div class="attentionContent">
<p>Double check these settings because application may freeze for 10 minutes if you try to connect to&nbsp;nonexistent&nbsp;LDAP server.&nbsp;</p>
</div></div><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/host-and-port.png" alt="LDAP host and LDAP port" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="54" hspace="0" vspace="0" width="620"><br><br><div class="info">
<div class="infoHeader">LDAPS (LDAP via SSL)</div>
<div class="infoContent">
<p>
If you would like to enable LDAPS (LDAP via SSL) you may need to follow the instructions in <a href="ARTICLE_URL#715##AA-00754#" target="">this guide</a>&nbsp;(for IIS and Apache on Windows 2003/2008).</p></div></div></li><li>Specify additional connection settings.<br>If your LDAP server hold references to other servers you may want to enable "<b>Allow Follow Referrals</b>" option.<br>Enable "<b>LDAP Version 3</b>" option if you would like to use LDAPv3 protocol.<br>The "<b>Negotiate TLS</b>" option allows establishment of Transport Layer Security on the connection.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/additional-options.png" alt="Follow referals, LDAP version 3, negotiate TLS" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="74" hspace="0" vspace="0" width="246"><br><br></li><li>If you would like to get users by certain parameters, you may want to modify the "<b>Search String</b>" value. Otherwise, left the default value.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/search-string.png" alt="Search string" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="26" hspace="0" vspace="0" width="624"><br><br></li><li>Usually "<b>Base DN</b>" consists of two parts: OU (Organizational  Unit, "company" in our example), and dc (Domain Component, "example" and "com" in our example; if your LDAP server name includes more domain levels, there will be more dc's).<br>You may not specify OU and get full tree of directory groups then.<br><div class="attention">
<div class="attentionHeader">Object Unit<br></div>
<div class="attentionContent">
<p>If you specify OU (Organizational Unit), make sure that LDAP users that you want to import belong to this OU as well as their parent groups. Otherwise, they won't be imported.</p>
</div>
</div>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/base-dn.png" alt="Base DN" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="24" hspace="0" vspace="0" width="624"></p>
</li><li>Setup username and password for connection on the LDAP server. This user must have permission to see LDAP entries.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/username-password.png" alt="Connection username and password" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="50" hspace="0" vspace="0" width="624"><br><br></li><li>Check the mapping attributes.<br><br><div class="attention">
<div class="attentionHeader">Mapping Attributes<br></div>
<div class="attentionContent">
<p>Remember that LDAP users that you want to import must have all these required attributes: account name, first name, last name, email. Otherwise they won't be imported. Make sure that attributes here in KMP preferences match user attributes on the LDAP server.</p>
</div>
</div>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/attributes-mapping.png" alt="Attributes mapping" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="140" hspace="0" vspace="0" width="652"></p>
</li><li>Setup synchronization options.<br>If you would like KMP to inactivate user account if he gets deleted from the LDAP server, set the "<b>Disable User When Deleted</b>" checkbox.<br>If you would like to synchronize LDAP user details and LDAP groups each time a LDAP user log in, set checkboxes accordingly. If these checkboxes are not set, account and group information will be synchronized upon the first login only.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/sync-options.png" alt="Syncronization options" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="76" hspace="0" vspace="0" width="262"><br><br></li><li>Check "Group Mapping Settings".<br>A user that belongs to a LDAP group that is not mapped to any KMP group will be assigned to the group set in "<b>Default Group Mapping Action</b>".<br>Check the "<b>LDAP Group Member Attribute</b>" to match the group entry that stores a list of group members.<br>Check all LDAP settings, click "<b>Save</b>" above and mark the "<b>Enable LDAP Group Mapping</b>" to start mapping.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/mapping-settings.png" alt="" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="116" hspace="0" vspace="0" width="800"><br><br></li><li><a name="map" ></a>You will see the tree of LDAP groups on the left upon&nbsp;successful&nbsp;connection and the tree of KMP groups on the right. Now you need to map some groups from the LDAP server with groups in KMP. Mapping of LDAP group A to KMP group B means that users from LDAP group A will be assigned to the KMP group B.<br>Just drag-n-drop a LDAP group to a KMP group to map them. You can map several LDAP groups to one KMP group. Click "<b>Save</b>" above when finished.<br><br><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/LDAP/group-mapping.png" alt="Group mappings" title="" style="margin: 0px; border-width: 0px;" align="" border="0" height="342" hspace="0" vspace="0" width="880"><br><br><br></li><li>After successful mapping you can proceed with one of the two approaches.</li></ol><ul><ul><li><span style="line-height: 16px;">You can go to Users &amp; Groups &gt; Manage Users and click the "</span><b style="line-height: 16px; ">Get LDAP Users</b><span style="line-height: 16px;">" button to import LDAP users to KMP immediately. </span><b style="line-height: 16px; ">Please note that usage of the&nbsp;<span style="line-height: 19px; "><span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 16px; ">"</span><b style="line-height: 16px; ">Get LDAP Users</b><span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 16px; ">" button&nbsp;</span></span>is not required</b><span style="line-height: 16px;"><b>&nbsp;for successful integration of KMP with your LDAP directory</b> - there is no need to import all LDAP users at once, especially considering limited number of user accounts in KMP. When someone tries to login to KMP and KMP doesn't have this user account in its database, it asks the LDAP server and if a user with these username and password&nbsp;exists&nbsp;on the LDAP server, the account in KMP will be created automatically. Also, "Get LDAP Users" has some limitations due to limits of LDAP servers - they often do not allow to get more than a 1000 users at a time remotely, and if you're using "Get LDAP Users" button while having thousands of users on the LDAP server, you may not find the user that you wanted to import. This doesn't mean that LDAP or KMP functions incorrectly - simply use it another way as specified below:</span></li><li><span style="line-height: 16px;">Or you can skip the "Get LDAP Users" step and try to login as one of the users from mapped groups. If all settings are correct, you'll be able to login with username and password of this user gotten from the LDAP server. Account in KMP will be created automatically&nbsp;upon login.</span></li></ul></ul><div>If you have any issues with LDAP integration, check the <a href="ARTICLE_URL#533##AA-00572#" target="">LDAP&nbsp;troubleshooting&nbsp;guide</a>.</div>
<p></p>]]></description>
                                    <pubDate>Mon, 21 Dec 2009 08:41:59 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00439</guid>
                    </item>
                <item>
                        <title>I am unable to change any LDAP settings. They're all greyed out.</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00428</link>
                                    <description><![CDATA[<p>This means that PHP LDAP module is not enabled. Follow these steps to enable it:<br></p>
<ol>
<li>Check the "ext" directory where PHP extensions are stored. There should be the php_ldap.dll file. If it doesn't exist you should run PHP installation and add this module.</li>
<li>Open the php.ini configuration file and find following line there:<br>
<div class="preformatted">
<div class="preformattedContent">
;extension=php_ldap.dll
</div>
</div>
</li>
<li>Uncomment it, or if there is no such a line, just add the following one:<br>
<div class="preformatted">
<div class="preformattedContent">
extension=php_ldap.dll
</div>
</div>
</li>
<li>Restart your web server.</li>
</ol>
<p></p>]]></description>
                                    <pubDate>Thu, 12 Nov 2009 09:14:34 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00428</guid>
                    </item>
                
    </channel>
</rss>