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

相关推荐
铁蛋Q11 分钟前
进程的状态
linux·服务器·ubuntu
sunxunyong28 分钟前
Linux 删除文件不释放空间问题处理
大数据·linux·运维·服务器
一只特立独行的猪6111 小时前
Java面试——集合篇
java·开发语言·面试
让开,我要吃人了2 小时前
HarmonyOS开发实战(5.0)实现二楼上划进入首页效果详解
前端·华为·程序员·移动开发·harmonyos·鸿蒙·鸿蒙系统
讓丄帝愛伱2 小时前
spring boot启动报错:so that it conforms to the canonical names requirements
java·spring boot·后端
weixin_586062022 小时前
Spring Boot 入门指南
java·spring boot·后端
DC_BLOG3 小时前
IPv6(四)
运维·服务器·网络·ip
shelby_loo3 小时前
通过 Docker 部署 MySQL 服务器
服务器·mysql·docker
everyStudy3 小时前
前端五种排序
前端·算法·排序算法
ZBzibing4 小时前
[游戏技术]L4D服务器报错解决
服务器·游戏