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

相关推荐
co0t3 分钟前
计算机网络(14)ip地址超详解
服务器·tcp/ip·计算机网络
brief of gali5 分钟前
记录一个奇怪的前端布局现象
前端
计算机毕设指导69 分钟前
基于 SpringBoot 的作业管理系统【附源码】
java·vue.js·spring boot·后端·mysql·spring·intellij-idea
淡水猫.9 分钟前
Fakelocation Server服务器/专业版 ubuntu
运维·服务器·ubuntu
Gu Gu Study10 分钟前
枚举与lambda表达式,枚举实现单例模式为什么是安全的,lambda表达式与函数式接口的小九九~
java·开发语言
Chris _data13 分钟前
二叉树oj题解析
java·数据结构
牙牙70519 分钟前
Centos7安装Jenkins脚本一键部署
java·servlet·jenkins
量子网络22 分钟前
debian 如何进入root
linux·服务器·debian
时光の尘25 分钟前
C语言菜鸟入门·关键字·float以及double的用法
运维·服务器·c语言·开发语言·stm32·单片机·c
paopaokaka_luck26 分钟前
[371]基于springboot的高校实习管理系统
java·spring boot·后端