List all conntection handlers (see also here: http://docs.oracle.com/cd/E19476-01/821-0506/to-display-connection-handlers.html) :
% dsconfig -h localhost -p 11998 -D "cn=Manager" -w <password> -n list-connection-handlers --trustAll Connection Handler : Type : enabled : listen-port : use-ssl -------------------------:------:---------:-------------:-------- HTTP Connection Handler : http : false : 8080 : false JMX Connection Handler : jmx : true : 11997 : false LDAP Connection Handler : ldap : true : 11999 : false LDAPS Connection Handler : ldap : false : 636 : true LDIF Connection Handler : ldif : false : - : -
Change Listen Ports (see also here: http://docs.oracle.com/cd/E19476-01/821-0506/configuring-the-ldap-connection-handler.html) :
# JMX Port dsconfig -h localhost -p 11998 -D "cn=Manager" -w <password> -n set-connection-handler-prop \ --handler-name "JMX Connection Handler" --set listen-port:17497 --trustAll # LDAP Port dsconfig -h localhost -p 11998 -D "cn=Manager" -w <password> -n set-connection-handler-prop \ --handler-name "LDAP Connection Handler" --set listen-port:17499 --trustAll # Admin Port dsconfig -h localhost -p 11998 -D "cn=Manager" -w <password> -n set-administration-connector-prop \ --set listen-port:17498 --trustAll