directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Directory Server v1.5 > 1.4.2 Changing the server port for LDAP
Date Wed, 28 Oct 2009 16:18:01 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=DIRxSRVx11&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/DIRxSRVx11/1.4.2+Changing+the+server+port+for+LDAP">1.4.2
Changing the server port for LDAP</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~seelmann">Stefan
Seelmann</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <div class='panelMacro'><table class='noteMacro'><colgroup><col
width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/warning.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Work
in progress</b><br /><p>This site is in the process of being reviewed and
updated.</p></td></tr></table></div>
<style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
class='ScrollbarPrevIcon'><a href="/confluence/display/DIRxSRVx11/1.4.1+Configuration+of+ApacheDS+with+Spring"><img
border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td
width='33%' class='ScrollbarPrevName'><a href="/confluence/display/DIRxSRVx11/1.4.1+Configuration+of+ApacheDS+with+Spring">1.4.1
Configuration of ApacheDS with Spring</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/DIRxSRVx11/1.4.+Basic+configuration+tasks"><img border='0'
align='middle' src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/DIRxSRVx11/1.4.+Basic+configuration+tasks">1.4. Basic configuration
tasks</a></td><td width='33%' class='ScrollbarNextName'>&nbsp;<a
href="/confluence/display/DIRxSRVx11/1.4.3+Changing+the+admin+password">1.4.3 Changing
the admin password</a></td><td class='ScrollbarNextIcon'><a href="/confluence/display/DIRxSRVx11/1.4.3+Changing+the+admin+password"><img
border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>

<h1><a name="1.4.2ChangingtheserverportforLDAP-ChangingtheserverportforLDAP"></a>Changing
the server port for LDAP</h1>

<p>This section describes how to change to port for the LDAP protocol.</p>

<div>
<ul>
    <li><a href='#1.4.2ChangingtheserverportforLDAP-Thetaskandhowtoaccomplishit'>The
task and how to accomplish it</a></li>
    <li><a href='#1.4.2ChangingtheserverportforLDAP-Resources'>Resources</a></li>
</ul></div>

<h2><a name="1.4.2ChangingtheserverportforLDAP-Thetaskandhowtoaccomplishit"></a>The
task and how to accomplish it</h2>

<p>By default the LDAP server listens on port 10389 (unencrypted or StartTLS) and 10636
(SSL). It is quite common to run LDAP on 389, which is the well-known port for this protocol.
Of course other options are imaginable as well. Changing the LDAP port is a good example for
adjusting the existing Spring configuration as introduced in the last section.</p>

<p>Just pick the "ldapServer"-bean from the <em>server.xml</em> file</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
  &lt;ldapServer id=<span class="code-quote">"ldapServer"</span>
            ...&gt;
    <span class="code-tag">&lt;transports&gt;</span>
      <span class="code-tag">&lt;tcpTransport address=<span class="code-quote">"0.0.0.0"</span>
port=<span class="code-quote">"10389"</span> nbThreads=<span class="code-quote">"8"</span>
backLog=<span class="code-quote">"50"</span> enableSSL=<span class="code-quote">"false"</span>/&gt;</span>
      <span class="code-tag">&lt;tcpTransport address=<span class="code-quote">"localhost"</span>
port=<span class="code-quote">"10636"</span> enableSSL=<span class="code-quote">"true"</span>/&gt;</span>
    <span class="code-tag">&lt;/transports&gt;</span>
    ...
  <span class="code-tag">&lt;/ldapServer&gt;</span>
</pre>
</div></div>

<p>and change the values of <em>port</em> to your needs. You have to restart
the server afterwards in order to take this change effect.</p>

<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16"
align="absmiddle" alt="" border="0"></td><td>Due to traditional Unix security
restrictions, ports less than 1024 were "trusted". Thus on a Unix-System, a non-root process
must listen on a port greater than 1023.</td></tr></table></div>


<h2><a name="1.4.2ChangingtheserverportforLDAP-Resources"></a>Resources</h2>

<ul>
	<li><a href="/confluence/display/DIRxSRVx11/5.2.2.+Configuration+Parameters+Reference"
title="5.2.2. Configuration Parameters Reference">Configuration Parameters Reference</a>:
A Description of all configuration parameters in <em>server.xml</em></li>
</ul>

     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/DIRxSRVx11/1.4.2+Changing+the+server+port+for+LDAP">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=55546&revisedVersion=8&originalVersion=7">View
Change</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message