From commits-return-23452-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Wed Oct 28 16:22:27 2009 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 80813 invoked from network); 28 Oct 2009 16:22:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Oct 2009 16:22:27 -0000 Received: (qmail 12106 invoked by uid 500); 28 Oct 2009 16:22:27 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 12050 invoked by uid 500); 28 Oct 2009 16:22:27 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 12041 invoked by uid 99); 28 Oct 2009 16:22:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 16:22:27 +0000 X-ASF-Spam-Status: No, hits=-8.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,MIME_HTML_ONLY,OBFUSCATING_COMMENT,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 16:22:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E030C234C046 for ; Wed, 28 Oct 2009 09:22:01 -0700 (PDT) Date: Wed, 28 Oct 2009 16:22:00 +0000 (UTC) From: confluence@apache.org To: commits@directory.apache.org Message-ID: <1143467181.754.1256746920014.JavaMail.www-data@brutus> Subject: [CONF] Apache Directory Server v1.5 > 1.4.2 Changing the server port for LDAP MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Auto-Submitted: auto-generated

1.4.2 Changing the server port for = LDAP

Page edited by Stefan Seelmann

=20

Changing the server port for LDAP

This section describes how to change to port for the LDAP protocol.

The task and how to accomplish it

By default the LDAP server listens on port 10389 (unencrypted or StartTL= S) and 10636 (SSL). It is quite common to run LDAP on 389, which is the wel= l-known port for this protocol. Of course other options are imaginable as w= ell. Changing the LDAP port is a good example for adjusting the existing Sp= ring configuration as introduced in the last section.

Just pick the "ldapServer"-bean from the server.xml file

  <ldapServer id=3D"ldapServer"
            ...>
    <transports>
      <tcpTransport address=3D"0.0.0.0" port=3D"10389"=
 nbThreads=3D"8" backLog=3D"50" enableSSL=3D"false"/>
      <tcpTransport address=3D"localhost" port=3D"10636" enableSSL=3D"true"/>
    </transports>
    ...
  </ldapServer>

and change the values of port to your needs. You have to restar= t the server afterwards in order to take this change effect.

3D""Due to traditional Unix security restric= tions, ports less than 1024 were "trusted". Thus on a Unix-System, a non-ro= ot process must listen on a port greater than 1023.

Resources