title: How to change open ldap defalt port in linux
body: <p>How to change open ldap default port(389 ) in Linux. 
  We used now default port 389 need to change the port to new one. how can we do that.</p>
  
  <pre><code>database        mdb                                                                                                         
  maxsize         1073741824                                                                                                  
  suffix          "dc=example,dc=com"                                                                                         
  rootdn          "cn=Manager,dc=example,dc=com"                                                                              
  # Cleartext passwords, especially for the rootdn, should                                                                    
  # be avoid.  See slappasswd(8) and slapd.conf(5) for details.                                                               
  # Use of strong authentication encouraged.                                                                                  
  rootpw          secret                                                                                                      
  # The database directory MUST exist prior to running slapd AND                                                              
  # should only be accessible by the slapd and slap tools.                                                                    
  # Mode 700 recommended.                                                                                                     
  directory       /usr/local/var/openldap-data                                                                                
  # Indices to maintain                                                                                                       
  index   objectClass     eq 
  </code></pre>