Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

LDAP Authentication Scheme : Always ORA-31204: DBMS_LDAP: PL/SQL - Invalid LDAP Session

BlueForest85Feb 14 2023 — edited Feb 14 2023

Hello everyone,

APEX VERSION NUMBER : 22.1.0

I'm trying to authenticate via LDAP. Here are the information I have :

host : myhost (it's not the real host as it's confidential)
port : 389
base dn : dc=xxx,dc=xx
for users : ou=people,dc=xxx,dc=xx

Does the DN should be :
cn=%LDAP_USER%,ou=people,dc=xxx,dc=xx
or
uid=%LDAP_USER%,ou=people,dc=xxx,dc=xx

?

However I always get this error : ORA-31204: DBMS_LDAP: PL/SQL - Invalid LDAP Session

I found this video (https://www.youtube.com/watch?v=NuP9sAg6dn8), and at 3:37 he talks about ACL.

On the other hand, in the APEX documentation (https://docs.oracle.com/en/database/oracle/apex/22.1/htmig/enabling-network-services-in-Oracle-db11g-or-later.html#GUID-CA19B8DF-B210-46FC-BC3A-F0DC76AE5625), I executed :

BEGIN
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
host => '*',
ace => xs$ace_type(privilege_list => xs$name_list('connect'),
principal_name => 'APEX_220100',
principal_type => xs_acl.ptype_db));
END;
/

But when I select this :

SELECT ACL, PRINCIPAL
FROM DBA_NETWORK_ACLS NACL, XDS_ACE ACE
ORDER BY PRINCIPAL ASC

I can't see my APEX_220100 user…

I still get ORA-31204: DBMS_LDAP: PL/SQL - Invalid LDAP Session error.

Does someone have a hint ?

This post has been answered by Billy Verreynne on Feb 14 2023
Jump to Answer

Comments

Post Details

Added on Feb 14 2023
4 comments
68 views