Deutsches Application Express Forum (ApEx) -- Installation , Engine / SQL , Anwendungen
HTMLDB Engine :  Oracle Apex The fastest message board... ever.
Alles in HTMLDB, Applikationen, Berichte, SQL ... 
LDAP
geschrieben von: durii (217.110.99.---)
Datum:

hi,

i have 2 problems.

1)
I can use the apex authentification service for the login, that runs good.
But when i want to create my authentification by code, that runs nothing. I get not error message, because the function give me only back true or false.

Example:
FUNCTION AUTHENTICATE(
p_username IN VARCHAR2 DEFAULT NULL,
p_password IN VARCHAR2 DEFAULT NULL,
p_search_base IN VARCHAR2,
p_host IN VARCHAR2,
p_port IN VARCHAR2 DEFAULT 389)
RETURN BOOLEAN;

my code:
BEGIN
IF APEX_LDAP.authenticate
( p_username => 'test'
, p_password => 'test123'
, p_search_base => 'CN=XX,OU=XX,OU=XX,DC=XX,DC=XX,DC=XX'
, p_host => 'XX.XX.YY.XX'
, p_port => 389
)
THEN
DBMS_Output.put_line('ok');
ELSE
DBMS_Output.put_line('not ok');
END IF;
END;

2)
my second problem is, that i need to authentificate by the sAMAccountName and not the cn.
have anyone an idea ? ;)



Thema Neugierige geschrieben von geschrieben
LDAP 2743 durii


In diesem Forum dürfen nur registrierte Benutzer schreiben.
This forum powered by Phorum.