Is Custom_authentication blocking me to retrieve password from custom tabl
Hi
All i am using custom authentication function which i got in forum and is as below:
/* Formatted on 2007/02/28 16:54 (Formatter Plus v4.8.0) */
CREATE OR REPLACE FUNCTION custom_auth (
p_username IN VARCHAR2,
p_password IN VARCHAR2
RETURN BOOLEAN
IS
l_password VARCHAR2 (4000);
l_stored_password VARCHAR2 (4000);
l_expires_on DATE;
l_count NUMBER;
BEGIN
-- First, check to see if the user is in the user table
--select count(*) into l_count from ap_users where login_id like p_username;
SELECT COUNT (*)
INTO l_count
FROM my_table
WHERE UPPER (user_name) = UPPER (p_username);
IF l_count > 0
THEN
-- First, we fetch the stored hashed password & expire date
SELECT PASSWORD, expires_on
INTO l_stored_password, l_expires_on
FROM my_table
WHERE UPPER (user_name) = UPPER (p_username);
-- Next, we check to see if the user's account is expired
-- If it is, return FALSE
IF l_expires_on > SYSDATE OR l_expires_on IS NULL
THEN
-- If the account is not expired, we have to apply the custom hash
-- function to the password
-- l_password := custom_hash (p_username, p_password);
-- Finally, we compare them to see if they are the same and return
-- either TRUE or FALSE
IF p_password = l_stored_password
THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
ELSE
RETURN FALSE;
END IF;
ELSE
-- The username provided is not in the DEMO_USERS table
RETURN FALSE;
END IF;
END;
I have created a user table my_table for managing user . I have created a from on table with report for creating,updating,deleting users .
Whenever i am trying to update the first name which is one column of my custom table then for each update asking for password but my client want that once he login as an employee without asking password he should update any column.
If he desire he can change the password also .
but when i am enetring as an employee and trying to update any user each time asking password . So is it due to Custom_Auth function or any other problem.
Please can any one tell me the reason.
Thanks in advance,
Amit
Hi all my problem get solved thanks i am allowing this report to admin so making password as text field working fine thanks
Similar Messages
-
When I retrieve returnpack from customer, stock type should be blocked
Hello,
When I retrieve returnpack from customer, I want stock type should be blocked. When I use standart movement type 622, stock type is unrestricted use. Are there any way for this? I couldn't find any movement type which retrieve returnpack stock from customer stock (for example 622v) to storage location stock (for example 622).
Best regards,
Yasar UnalpBADI ME_PROCESS_PO_CUST .
here you can add the Logic . -
Hi,
I am working on a report where I have to retrieve data from 3 tables(marc,mara,makt).For this I have used 3 select statements for retriving data from 3 tables.There r some fields which r not present in marc table where as present in mara and makt tables.So added thos fields in marc internal table t_marc.I have looped at marc table and used the read statement to read the data from mara table using the key field matnr from both the tables.This read statement is giving the sy-subrc value as 4.Could u pls tell me why this is happening?I am sending my code.
SELECT matnr
werks
pstat
lvorm
FROM marc
INTO TABLE t_marc
PACKAGE SIZE 500
WHERE matnr IN s_matnr
AND werks IN s_werks.
IF NOT t_marc[] IS INITIAL.
SELECT matnr
ersda
laeda
meins
FROM mara
INTO TABLE t_mara
FOR ALL ENTRIES IN t_marc
WHERE matnr = t_marc-matnr
AND ersda IN s_ersda
AND laeda IN s_laeda.
IF NOT t_mara[] IS INITIAL.
SELECT matnr
maktx
FROM makt
INTO TABLE t_makt
FOR ALL ENTRIES IN t_mara
WHERE matnr = t_mara-matnr.
LOOP AT t_marc INTO wa_marc.
READ TABLE t_mara INTO wa_mara WITH KEY matnr = t_marc-matnr.
IF sy-subrc IS INITIAL.
wa_marc-meins = wa_mara-meins.
MODIFY t_marc.
APPEND wa_marc TO t_output.
ENDIF.
READ TABLE t_makt INTO wa_makt WITH KEY matnr = t_marc-matnr.
IF sy-subrc IS INITIAL.
wa_marc-maktx = wa_makt-maktx.
MODIFY t_marc.
APPEND wa_marc TO t_output.
ENDIF.
ENDLOOP.hi hema,
Dont use three select stements for this scenario.
Just use innerjoin and join all the three tables.
Three tables should contain MATNR (material number).
By using that retrieve data from 3 tables by using a single select statement.
Eg:
SELECT DISTINCT a~matnr "MATERIAL NUMBER
a~ersda "CREATED ON
a~mtart "MATERIAL TYPE
a~meins "BASE UNIT OF MEASURE
a~bstme "ORDER UNIT
b~maktx "MATERIAL DESCRIPTION
c~bwkey "VALUATION AREA
c~lbkum "TOTAL VALUED STOCK
c~salk3 "VALUE OF TOTAL VALUED STOCK
c~stprs "STANDARD PRICE
c~peinh "PRICE UNIT
c~bklas "VALUATION CLASS
INTO TABLE it_matdetails
FROM mara AS a INNER JOIN makt AS b ON a~matnr = b~matnr
INNER JOIN mbew AS c ON a~matnr = c~matnr
INNER JOIN marc AS d ON a~matnr = d~matnr
INNER JOIN mard AS e ON a~matnr = e~matnr
WHERE b~spras = sy-langu AND a~matnr IN matnr AND d~werks IN werks AND e~lgort IN lgort.
pls reward if helpful. -
How to Retrieve data from Variant Table
Can anyone help me by telling how to retrieve data from variant table which was created by user. I am able to see data of variant table only thru cu60 transaction but not se11. I s there any function module to do this?
Hello Mohan,
if u already have data and u want to populate it in F4 help then use below code -
u Have to make use of FM - 'F4IF_INT_TABLE_VALUE_REQUEST'
REPORT ZGILL_VALUE_REQUEST .
data: begin of lt_all occurs 0.
include structure DYNPREAD.
data end of lt_all.
data: begin of lt_selected occurs 0.
include structure DDSHRETVAL.
data: end of lt_selected.
DATA: BEGIN OF lt_code OCCURS 0,
code LIKE zgill_main-PERNR,
END OF lt_code.
data no_dyn like sy-dynnr.
Parameters : ECODE like zgill_main-PERNR.
*parameters: pernr like pa0001-pernr .
no_dyn = sy-dynnr. "give the scren no directly or sy-dynnr in case of report.
At selection-screen on value-request for ECODE.
select PERNR into table lt_code from zgill_main.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ECODE'
dynpprog = sy-repid
dynpnr = no_dyn
dynprofield = 'ECODE'
window_title = 'Employee Details'
value_org = 'S'
DISPLAY = 'F'
TABLES
value_tab = lt_code
RETURN_TAB = lt_selected.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*if sy-subrc eq '0' .
write: 'success'.
*endif.
read table lt_selected index sy-tabix.
move lt_selected-fieldval to ECODE. -
How to retrieve data from catsdb table and convert into xml using BAPI
How to retrieve data from catsdb table and convert into xml using BAPI
Points will be rewarded,
Thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
This is not your requirment but u can try this :
CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
GRANT READ ON DIRECTORY text_file TO fah;
GRANT WRITE ON DIRECTORY text_file TO fah;
DROP TABLE load_a;
CREATE TABLE load_a
(a1 varchar2(20),
a2 varchar2(200))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY text_file
ACCESS PARAMETERS
(FIELDS TERMINATED BY ','
LOCATION ('data.txt')
select * from load_a;
CREATE TABLE A AS select * from load_a;
SELECT * FROM A
Regards
Faheem Latif -
Retrieve data from cluster tables
hi
can any one explain me how to retrieve data from cluster tables
Regards
sachinyou can write a select
select * from KONV
into table it_konv
where <condition>
you cant join.. cluster tables.. -
Retrieve data from nested tables
Hi All,
I have big trouble to retrieve data from nested tables..
From java code developer are passing struct data type to Oracle procedure.. So equal data type in oracle has been created as created as object
CREATE OR REPLACE TYPE TXNDATA AS OBJECT
TRAN_ID NUMBER ,
EVENT_ID NUMBER ,
EVENT_CD VARCHAR2(10 BYTE))and create a procedure which has a IN parameter as TXNDATA
now i need to retrieve the column data's through SELECT clause such as
TYPE Proc_txn IS TABLE OF TXNJOURNALDATA;
EVENT_JOURNAL_SEQ Proc_txn;
select * from table(cast(EVENT_JOURNAL_SEQ));but above SQL will give all column data's but i need to retrieve only 2 column values such as
select EVENT_ID , EVENT_CD from table(cast(EVENT_JOURNAL_SEQ))how can i achieve the above result set?
Thanks & Regards
Sami.use a table alias in your query
SQL> set serveroutput on
SQL> create TYPE TXNDATA AS OBJECT
2 (
3 TRAN_ID NUMBER ,
4 EVENT_ID NUMBER ,
5 EVENT_CD VARCHAR2(10 BYTE));
6 /
Type created.
SQL>
SQL> create type txnjournaldata
2 as table of txndata;
3 /
Type created.
SQL>
SQL> declare
2 txn txnjournaldata := txnjournaldata (
3 txndata(10, 20, 'One')
4 ,txndata(10, 20, 'Two')
5 );
6 begin
7 for rec in (select tx.event_id
8 , tx.event_cd
9 from table (txn) tx
10 )
11 loop
12 dbms_output.put_line (rec.event_id||' - '||rec.event_cd);
13 end loop;
14 end;
15 /
20 - One
20 - Two
PL/SQL procedure successfully completed.Edited by: Alex Nuijten on Oct 24, 2011 12:24 PM -
Hi, experts. I want retrieve data from 8 tables
Hi, experts. I want retrieve data from 8 tables.
On which table i have to write for all entries query.
Thanks in advance.Hai Reddy,
Actually IF we Use Join's Actually The Performance Will Be Good For 4 tables.
So It Is Better To Create Two Joins With 4 Tables Each.
First Retrive The Data For First View.
Then Use For ALL Entries For First Table And Then Get Data For Second data.
Reward If Found usefull.
Regards.
Eshwar. -
Retrieve data from oracle table, table name passed in runtime into JSP
Hello All,
I am new to JSP, i have a requirement,
I need to retrieve data from oracle table, here table is passed at random. how to get the data displayed in JSP page.
can any one help me in that
thanks1) Learn SQL.
2) Learn Java.
3) Learn JDBC.
4) Learn DAO.
5) Learn HTTP.
6) Learn HTML.
7) Learn JSP/Servlet.
8) Learn JSTL.
9) Apply learned things and develop.
Whenever you stucks, please come back and post the specific coding/technical problem here. -
How to retrieve data from edcauditentity table?
Hello!
I am interested how to connect to edcauditentity table and retrieve data from this table.
I have sql query but i don't have idea how to start. For now i can connect to LiveCycle and retrieve policy name.
Thank in advance!Hello Mohan,
if u already have data and u want to populate it in F4 help then use below code -
u Have to make use of FM - 'F4IF_INT_TABLE_VALUE_REQUEST'
REPORT ZGILL_VALUE_REQUEST .
data: begin of lt_all occurs 0.
include structure DYNPREAD.
data end of lt_all.
data: begin of lt_selected occurs 0.
include structure DDSHRETVAL.
data: end of lt_selected.
DATA: BEGIN OF lt_code OCCURS 0,
code LIKE zgill_main-PERNR,
END OF lt_code.
data no_dyn like sy-dynnr.
Parameters : ECODE like zgill_main-PERNR.
*parameters: pernr like pa0001-pernr .
no_dyn = sy-dynnr. "give the scren no directly or sy-dynnr in case of report.
At selection-screen on value-request for ECODE.
select PERNR into table lt_code from zgill_main.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ECODE'
dynpprog = sy-repid
dynpnr = no_dyn
dynprofield = 'ECODE'
window_title = 'Employee Details'
value_org = 'S'
DISPLAY = 'F'
TABLES
value_tab = lt_code
RETURN_TAB = lt_selected.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*if sy-subrc eq '0' .
write: 'success'.
*endif.
read table lt_selected index sy-tabix.
move lt_selected-fieldval to ECODE. -
Retrieve password from public database-link
In the past we have created a public database-link to another database. Unfortunately we forgot the password and want to have it back. Sice the database-link is public, the password can not be found in user_db_links.
Is it possible to retrieve a password from a public database-link?Hi,
I know resetting in an Option for you but in worst case. Coming to the point you can get from "sys.link$" But how far will work on 10g verison did not checked. Try and see
Ahh. sorry Why you try "select dbms_metadata.get_ddl(’DB_LINK’,’TEST’,user) from dual
it will give the script. If the password in encripted for 10g try with "link$" it will work.
- Pavan Kumar N
Edited by: Pavan Kumar on Nov 18, 2008 3:57 PM -
Retrieving records from a Data Block same as retrieving records from cursor
Dear Gurus,
Is it possible to retrieve records from a datablock same as retrieving records from a cursor,
Eg:
I am having two data blocks in two different tabs, Say B1 in Tab1, B2 in Tab2
B1 is filled with two records, now when I switch to Tab2,
I want all records of B1 in B2, assuming that blocks are having the same structure.
The code I wish to write is,
Goto B1,
Take all the records like a cursor,
Goto B2,
loop
insert
end loop;
Is this possible???I need to show it before saving,
I tried this and it is successful somehow, do not know about any further problems,
I took the record count of both blocks
if :B1.reccount <> :B2.reccount
then
go_block('B1');
first_record;
for i in 1..:B1.reccount
loop
go_block('B1');
go_record(i);
assign values from B1 to variables.
go_block('B2');
assign values from variables to B2
next_record;
end loop;
clear_record;
end if;
This is working, Now I just want to know, if my block is having numerous fields, say more than 100 (may not be a value for large databases)
how can I replace these variables here.
I mean is it possible to declare something like a cursor record type.
For eg : r1 cursor%rowtype -
How to retrieve passwords from sapinst_dev.log?
SDN experts:
I remember that I could retrieve the password from sapinst_dev.log.
But I forget what is the tool I used to deciper the encrypted password.
Could you share your ways?
Thanks!Are you using the default providers? How are you creating users? Won't the
user be authenticated by the relevant container?
PaulF.
[email protected] (sun) wrote in news:d7d36a26.0208291721.75a64516
@posting.google.com:
We are in the process of developing an application using Weblogic 7.0.
The application requires us to create users dynamically in the
Embedded LDAP. We have been successful in creating users, but are
unable to find an API to retrieve the user's password. What is the way
to authenticate a username, password against the Embedded LDAP?
Thanks
Sunny -
Can retrieve password from OID?
Can i get password from Oracle Internet Directory? Is there any tools available? I found that using command 'ldifwrite' can convert information residing in an Oracle Internet Directory to LDIF file. Can this command retrieve password as well? Im using Windows and ldifwrite.exe doesn't exist in my oracle_home/bin, so i can't execute this command. Any solution? Thanks...
mass retrieval of user passwords is not possible for as far as I know. The passwords of the users you have added to the OID are encrypted, so there is not much use anyway. Passwords for a couple of services/database users are unencrypted, but for some reason I do not think this is what you are looking for...
-
Retrieving values from a table
Hi all,
I need to retrieve values from CSKS-KOSTL for values containing the pattern entered by the user. For example, if the user enters 1, need to retrieve all the KOSTL values starting with 1. But when i write a SELECT statement mentioning where kostl in '1', it is ignoring all the values like (0000001, 00001034, 0012334, and others). Only values starting with 1 is only retrieved as this is a character field and due to conversion routine, zeroes are prefixed while storing in the database.
Could any one let me know how to retrieve the values from the database in this situation?If you want to use IN operator in your where clause then you should define a range variable(R_KOSTL) which refers to CSKS=KOSTL and populate the range as below
R_KOSTL-SIGN = 'I'.
R_KOSTL-OPTION = 'CP'.
R_KOSTL-LOW = '1*'.
APPEND R_KOSTL.
and then write your select statement as .... WHERE kostl IN r_kostl.
The approach suggested by Amit should also work fine.
Thanks
Kiran
Maybe you are looking for
-
Navigation does not work correctly
I am implementing a table view with navigation. When the first row is selected, it should navigate to a second view with a "back" button in the navigation bar. In my case, when the cell or row is selected in the table, it does not do anything (does n
-
I am new to OCI programming, but have read the manuals on reading objects, but can not figure out how to do what I want to do from that documentation. I am using oracle 9.2.0.7 I have a package that produces a bunch of data. Currently this data is st
-
Photoshop Elements 8 will not allow me to sign in. I get an error message
My operating system is Windows 7 Professional using Google Chrome browser. My Photoshop Elements 8 serial # is 1057-1150-6317-4223-0314-8582 When I try to sign in to the program I get this message "Service is currently unavailable. Please try again
-
Slow work after update to 10.6
Hello. I have macmini 2.1 Core Duo 1.8 GHz 1 GB Ram. Earlier macmini worked on OS 10.5, but i needed 10.6 Macmini work in Domain Windows 2008 R2. After upgrade to 10.6.8 sometimes i have slow work during login, open separate menu in General Setting.
-
Music/tv shows not authorizing ?
I have a problem which is frustrating so perhaps someone may be able to help me. I have recently re-installed all my iTunes library in 2 new macs. 27" iMac and 13" macbookpro. About 75% of the music and tv shows bought in the iTunes store are workin