使用plsql 的ldap包DBMS_LDAP 访问ad服务器取得用户,其中关键的方法:
DBMS_LDAP.search_s(ld => l_session,
base => l_ldap_base, --the starting point for the search
scope => DBMS_LDAP.SCOPE_SUBTREE
filter => 'objectclass=*',
attrs => l_attrs,
attronly => 0,
res => l_message)
其中的l_ldap_base是查找的起始点,为什么不能设置为中文呢,英文可以的,中文就报错
DBMS_LDAP.search_s(ld => l_session,
base => l_ldap_base, --the starting point for the search
scope => DBMS_LDAP.SCOPE_SUBTREE
filter => 'objectclass=*',
attrs => l_attrs,
attronly => 0,
res => l_message)
其中的l_ldap_base是查找的起始点,为什么不能设置为中文呢,英文可以的,中文就报错
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货