Oracle Internet Directory - Version 11.1.1.7.0 and later
1. Issue a ldapsearch like the following:
ldapsearch -h hostname -p 3060 -D cn=orcladmin -w %pwd -b "" -s sub -L "cn=oid1" orclnonsslport > modifyport.ldif
2- Open the modifyport.ldif with vi and you should see the following:
dn: cn=oid1, cn=odsldapd,cn=subconfigsubentry
orclnonsslport: 3060
3- Modify this file so it looks like the following
(setting the non-sslport to 3070)
dn: cn=oid1, cn=odsldapd,cn=subconfigsubentry
changetype: modify
replace: orclnonsslport
orclnonsslport: 3070
4- Run ldapmodify on the file modifyport.ldif
example:
ldapmodify -h hostname -p 3060 -D cn=orcladmin -w pwd -f modifyport.ldif
Output like#
modifying entry cn=oid1,cn=osdldapd,cn=subconfigsubentry
5- Stop OID
opmnctl stopproc ias-component=oid1
6- Restart OID
opmnctl startproc ias-component=oid1
6- test a ldapbind on the new port
ldapbind -h hostname -p 3070
bind successful
For LDAP Options
https://docs.oracle.com/cd/E22289_01/html/821-1279/ldapmodify.html
1. Issue a ldapsearch like the following:
ldapsearch -h hostname -p 3060 -D cn=orcladmin -w %pwd -b "" -s sub -L "cn=oid1" orclnonsslport > modifyport.ldif
2- Open the modifyport.ldif with vi and you should see the following:
dn: cn=oid1, cn=odsldapd,cn=subconfigsubentry
orclnonsslport: 3060
3- Modify this file so it looks like the following
(setting the non-sslport to 3070)
dn: cn=oid1, cn=odsldapd,cn=subconfigsubentry
changetype: modify
replace: orclnonsslport
orclnonsslport: 3070
4- Run ldapmodify on the file modifyport.ldif
example:
ldapmodify -h hostname -p 3060 -D cn=orcladmin -w pwd -f modifyport.ldif
Output like#
modifying entry cn=oid1,cn=osdldapd,cn=subconfigsubentry
5- Stop OID
opmnctl stopproc ias-component=oid1
6- Restart OID
opmnctl startproc ias-component=oid1
6- test a ldapbind on the new port
ldapbind -h hostname -p 3070
bind successful
For LDAP Options
https://docs.oracle.com/cd/E22289_01/html/821-1279/ldapmodify.html
No comments:
Post a Comment