Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL accessing LDAP server
M Rothwell wrote:
> I am trying to get information from an LDAP server using the DBMS_LDAP
> package. I got the following code from the sample directory that came
> with the Oracle dist.
>
> I have the correct LDAP server and port. I can init and bind, but when
> I get to the search_st procedure it errors out with the following message:
>
> Error Message : ORA-31202: DBMS_LDAP: LDAP client/server error: No such
> object
>
> I'm using Oracle 9i R2 on HP-UX.
>
> I have tried different filters and scopes, but still get the same error.
> Any help would be much appreciated.
[...]
> ldap_base := 'cn=Users,o=mycomp,dc=com';
> -- end of customizable settings
[...]
It's been a while since I've used this, but is it possible your ldap_base isn't quite right? It would be easy to test without the "cn=Users" piece.
-Mark Bole Received on Thu Feb 17 2005 - 11:05:36 CST