配置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

相关推荐
云飞云共享云桌面41 分钟前
8位机械工程师如何共享一台图形工作站算力?
linux·服务器·网络
逐·風43 分钟前
unity关于自定义渲染、内存管理、性能调优、复杂物理模拟、并行计算以及插件开发
前端·unity·c#
Devil枫1 小时前
Vue 3 单元测试与E2E测试
前端·vue.js·单元测试
Yaml42 小时前
Spring Boot 与 Vue 共筑二手书籍交易卓越平台
java·spring boot·后端·mysql·spring·vue·二手书籍
小小小妮子~2 小时前
Spring Boot详解:从入门到精通
java·spring boot·后端
hong1616882 小时前
Spring Boot中实现多数据源连接和切换的方案
java·spring boot·后端
尚梦2 小时前
uni-app 封装刘海状态栏(适用小程序, h5, 头条小程序)
前端·小程序·uni-app
aloha_7892 小时前
从零记录搭建一个干净的mybatis环境
java·笔记·spring·spring cloud·maven·mybatis·springboot
GIS程序媛—椰子2 小时前
【Vue 全家桶】6、vue-router 路由(更新中)
前端·vue.js
记录成长java3 小时前
ServletContext,Cookie,HttpSession的使用
java·开发语言·servlet