配置LDAP 用户连接Oracle

select *from dba_users,

用户显示 password项是global 不是password,不能使用aler user 修改密码,会导致password项改为password,LDAP登录失败

How to add LOCAL_LISTENER or REMOTE_LISTENER net service names into OID for LDAP Naming resolution.

SOLUTION

Valid LOCAL_LISTENER or REMOTE_LISTENER entries in TNSNAMES.ORA file like following :

LOCAL_LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM)(PORT = 1525))
)

Can not be seen via in Net Manager GUI tool, so can not be added to OID for LDAP naming, via the wizard.One solution is to add a ldif file

dn: cn=LOCAL_LISTENER,cn=OracleContext,dc=sample,dc=com
objectclass: top
objectclass: orclNetService
cn:LOCAL_LISTENER
orclNetDescString: (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM)(PORT =1525))))

And add to OID via ldapadd command

ldapadd -D "cn=orcladmin" -w <Password> -h <OID server> -p <Port#> -v -f <ldif file>

Example

C:\>ldapadd -D "cn=orcladmin" -w welcome1 -h sflood-uk2 -p 389 -v -f test.ldif
add objectclass:
top
orclNetService
add cn:
LOCAL_LISTENER
add orclNetDescString:
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM
)(PORT =1525))))
adding new entry cn=LOCAL_LISTENER,cn=OracleContext,dc=sample,dc=com
modify complete

At this point, a simple tnsping of the entry should yield OK:

tnsping LOCAL_LISTENER should return:

Used LDAP adapter to resolve the alias.

Then OK

相关推荐
hackeroink7 分钟前
【2024版】最新推荐好用的XSS漏洞扫描利用工具_xss扫描工具
前端·xss
迷雾漫步者2 小时前
Flutter组件————FloatingActionButton
前端·flutter·dart
向前看-2 小时前
验证码机制
前端·后端
xlsw_2 小时前
java全栈day20--Web后端实战(Mybatis基础2)
java·开发语言·mybatis
神仙别闹3 小时前
基于java的改良版超级玛丽小游戏
java
燃先生._.3 小时前
Day-03 Vue(生命周期、生命周期钩子八个函数、工程化开发和脚手架、组件化开发、根组件、局部注册和全局注册的步骤)
前端·javascript·vue.js
远游客07133 小时前
centos stream 8下载安装遇到的坑
linux·服务器·centos
黄油饼卷咖喱鸡就味增汤拌孜然羊肉炒饭3 小时前
SpringBoot如何实现缓存预热?
java·spring boot·spring·缓存·程序员
暮湫4 小时前
泛型(2)
java