Delay login for sometime if users fails for three times in apex
i have a requirement in apex 4.1,
suppose a user login to it and if he fails for three times consequetively than he will not able to login for next 30 minutes.this is the function i am using for doing authentication.
i want to show timer at the top of the login page as user fails to login for three times continously..same functionality which is present in Apex 4.2.
create or replace
FUNCTION LWM_CHECK_CREDENTIALS(P_USERNAME IN VARCHAR2,P_PASSWORD IN VARCHAR2)
RETURN boolean
IS
LC_USERNAME_1 LWN_LOGIN.USERNAME%TYPE;
LC_PASSWORD_1 LWN_LOGIN.PASSWORD%TYPE;
LN_COUNT NUMBER:=0;
LN_COUNT1 NUMBER;
LC_SQLERRM VARCHAR2(500);
LN_COUNT2 NUMBER;
BEGIN
SELECT USERNAME,PASSWORD INTO LC_USERNAME_1, LC_PASSWORD_1
FROM LWN_LOGIN
WHERE UPPER( USERNAME) = UPPER(P_USERNAME)
AND PASSWORD = (P_PASSWORD);
UPDATE LWN_LOGIN SET COUNT= LN_COUNT
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
-- apex_util.set_authentication_result(0);
RETURN true;
EXCEPTION
WHEN OTHERS THEN
SELECT COUNT INTO LN_COUNT1
FROM LWN_LOGIN
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
if ln_count1 <=2 then
UPDATE LWN_LOGIN SET COUNT = LN_COUNT1 +1 ,
TIMESTAMP = SYSTIMESTAMP --to_char(SYSdate,' HH24:MI:SS')
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
end if;
LC_SQLERRM:=SQLERRM;
SELECT COUNT INTO LN_COUNT2 FROM LWN_LOGIN
WHERE UPPER(USERNAME)=UPPER(P_USERNAME);
IF LN_COUNT2=3 THEN
--APEX_UTIL.SET_AUTHENTICATION_RESULT(6);
DBMS_LOCK.SLEEP(6);
-- null;
--INSERT INTO XXSAQUIB_TEST(A,B,C) VALUES(LC_SQLERRM,LN_COUNT2,'max attempt');
end if;
return false;
END;
Can any one provide me any link related to this which is helpful for me.
Thanks in advance.
Edited by: 969314 on 05-Nov-2012 03:17
Edited by: 969314 on 05-Nov-2012 04:02
Hi,
When your authentication fails, stamp a "last failure" time on the record. Then check in your authorization that if the number of attempts is > X then the last failure timestamp must be less than sysdate - 30 mins.
Then set the message text to be something like "you cannot log in for (x) minutes" where (x) is calculated based on sysdate and the last failure date.
Similar Messages
-
Does your iPhone disable for 24 hours when failing a few times to enter your passcode?
Does your iPhone disable for 24 hours when failing a few times to enter your passcode?
Hello Hayema0,
After reviewing your post, I have located an article that can help with iOS passcodes. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
About iOS passcodes - Apple Support
Forget your passcode?
If you or someone else enters the wrong passcode too many times, your device will disable itself temporarily. Get help if you forgot your passcode or your device is disabled.
Learn what to do if you forgot your Restrictions passcode.
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
During R12 upgrade adworker for patch u6678700.drv fails for afopp002.sql
Hi Experts,
During R12.1.1 upgrade from 11.5.10.2 adworker for patch u6678700.drv fails for afopp002.sql
The exact error being faced is
sqlplus -s APPS/***** @/u03/oracle/CRP1PROD/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/afopp002.sql &un_fnd &pw_fnd
Connected.
declare
ERROR at line 1:
ORA-20000: Oracle Error Mkr1= -24018 - ORA-24018: STOP_QUEUE on
APPLSYS.FND_CP_GSM_OPP_AQ failed, outstanding transactions found
ORA-06512: at line 15
I even tried restarting the worker,bounced the database and even tried running u03/oracle/CRP1PROD/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/afopp002.sql manually which hangs for indefinitely.
Any suggestion.Hi Srini,
Let me walk you through briefly regarding the upgrade process:
Initially the existing instance was 11.5.10.2 with 9.2.0.6 database.Last year the database was upgraded to 11.2.0.1 and configured with 11.5.10.2
However the 11g database upgrade steps specifically for EBS 11i(interoperatibility notes for 11i with 11g database) was not followed properly.
And one of the major key issue identified was the 11g Example CD was not installed on top of 11g software during database upgrade.Which is the pre-req for 11g upgrade in EBS
And as per my experience it creates issues during R12 upgrade (patch u6678700) and giving errors pertaining to oracle text error.
SR was raised for the same and was suggested, since there is no other option kindly install the Oracle 11g software and on top of that 11g Example CD and map the 11g database and go ahead with the R12 upgrade.
Now coming back to the core issue being faced, Pre-req followed properly.No errors in alert logs.
Can missing the Example CD installtion be the issue?
Regards,
Aman Vats -
BAPI/FM for setting the user status for the Project definition and WBS elem
Hi,
I have to set the User Status for the Project Definition and the WBS elements in that project.
The User status to be set is the same for the project and wbs elements.
Please let me know if there is any BAPI/FM to set the user status..
Thanks in advance.
Regards
ShivaHi Shkithija,
There is a dump encoutered in the form "PS_FLAG_GET_GLOBAL_FLAGS" for 'chk_precommit_ok' in the "BAPI_PS_PRECOMMIT".
But it is showing SY-SUBRC = 0 when used along with BAPI_TRANSACTION_COMMIT.
May i know what are input parameters we need to pass it to "BAPI_PS_PRECOMMIT".
Do you have any idea.
Please let me know
Regards
vishnu -
Email notification works for one email address fails for another
Hi,
I have OEM 10.2.0.3 - one email address works fine, but another fails with message
[email protected]: Test failed with message: "E-mail Address is invalid: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay"
Now the weired thing is, that using the same SMTP gateway, I can send emails ok to this address via outlook etc.
Anyone any ideas ? The xxxxxxxxxx in the address is actually a mobile number, but, as I say, it IS valid.
CheersThanks for the reply, however, this is what I dont understand.
The SMTP server is the same one I use for our email, ie, it is our exchange server, and from outlook, I am able to send email
to the same address that is failing with EM. I'm not aware I need any authentication, or how it would need authentication only
for external accounts ?
you are correct howver, that it is an external account, and the same test fails for any external account. I'm just not sure how to fix this ?
A manual session connecting to the SMTP server is as follows
telnet smtp_server_name.com.au 25
Trying 192.168.6.2...
Connected to smtp_server_name.com.au (192.168.6.2).
Escape character is '^]'.
220 smtp_server_name.com.au Microsoft ESMTP MAIL Service ready at Fri, 5 Sep 2008 15:38:00 +1000
helo
250 smtp_server_name.com.au Hello [192.168.6.15]
mail from: [email protected]
250 2.1.0 Sender OK
rcpt to: [email protected]
550 5.7.1 Unable to relay
quit
221 2.0.0 Service closing transmission channel
Connection closed by foreign host.
$ -
Battery Information:
Model Information:
Serial Number: W02085DE4D3LA
Manufacturer: SMP
Device Name: bq20z451
Pack Lot Code: 0
PCB Lot Code: 0
Firmware Version: 201
Hardware Revision: 000a
Cell Revision: 165
Charge Information:
Charge Remaining (mAh): 4725
Fully Charged: Yes
Charging: No
Full Charge Capacity (mAh): 4820
Health Information:
Cycle Count: 161
Condition: Normal
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 12440
System Power Settings:
AC Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 10
Wake on AC Change: No
Wake on Clamshell Open: Yes
Wake on LAN: Yes
Current Power Source: Yes
Display Sleep Uses Dim: Yes
PrioritizeNetworkReachabilityOverSleep: 0
RestartAfterKernelPanic: 157680000
Standby Delay: 4200
Standby Enabled: 0
Battery Power:
System Sleep Timer (Minutes): 0
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 0
Wake on AC Change: No
Wake on Clamshell Open: Yes
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes
RestartAfterKernelPanic: 157680000
Standby Delay: 4200
Standby Enabled: 0
Hardware Configuration:
UPS Installed: No
AC Charger Information:
Connected: Yes
ID: 0x0100
Wattage (W): 60
Revision: 0x0000
Family: 0x00ba
Serial Number: 0x00bfc33b
Charging: Nosometimes switches off once or three times at the same time while it is on charge
Might be the adapter > Apple Portables: Troubleshooting MagSafe adapters -
this computer has two logins, my grandma's (which is the administrator) and mine, itunes is on both logins but on my login i have some music there and hers i have my other music.. i want to be able to redownload my music on my ipod touch with out having to resync back and forth between libraries.. how do i combine the libraries because if i go with one or the other i lose my music i have purchased, on both libaries the music belongs to me not my grandma,
Also, a few weeks ago, I loaned the IPOD to somebody and they told me that evidently the IPOD had been hacked and that it had lost all the music. When I got it back, I re-synced it and got some of the music back. After talking to other people, I now suspect that my "friend" tried to do something he wasn't suppose to to and the IPOD shut down or that he was trying to create an Apple ID of his own without paying for it. Now that I have it back, I just want to get the music back that I paid for that is already associated with my ID and that is in my two libraries. I can see them in there (on the computer), I just can't access them to download them on the IPOD. Can you help?There are actually a few methods for using more than one iPod on a single computer: How To Use Multiple iPods with One Computer
Just to summarise what's in the link above:
Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries.
Method two is to set your preferences so that either one or both iPods get updated with only certain playlists within one library. If you've had no success with this you can have a look through the guide on this page: Loading songs onto iPod automatically
Another option when using a single library is to set one or both of the iPods to manual update: Managing content manually on iPod
You can read about Windows user accounts here: Using Windows XP User Accounts -
Steps for customization and user part for STO
Hi,
I want to configure STO in our system can u give thelink or all the steps required for customization for STO and also can u give the detail for user part how to process it from PO to invocie.
regards,
zafarHello,
Please refer to link below, check wether it helps.
Intercomapany STO
Also please try & search the forum for more as this question has been posted earlier too.
Regards,
Akshay -
Login screen sometimes without user icon & apple logo animation
Sometimes when I boot my MacBook Pro the login screen doesn't show my user icon and the apple logo is in it's final position without the sliding up animation. Is this a general know bug/isssue in lion? Luckily the password field is shown...
Still facing this problem running OS X Lion 10.7.2. No one else having this kind of bug?
-
What is the cost for a multi user agreement for CS3
Purchased CS3 for Mac from eBay, seems I can install it on 2 computers. What is the cost involved if I wanted to add another?
What is the cost involved if I wanted to add another?
There is no such thing. Another user simply means another full license. It's irrelevant, though. As Steve already said, CS3 is now 5 versions behind and other than used copies cannot be bought officially from Adobe or their resellers.
Mylenium -
What are the major challenges for the end-user in using Positive Time Management
Hi Seniors,
Can anybody please provide me some data on the same.
Thanks.Hi,
Positive time management is slightly difficult to implement compared to negative time management.
In negative time management, you use planned working times + deviations in time evaluation.
In positive time management, you record actual times through time recording system. You have to bring these times to SAP through an interface and then evaluate the actual times against the planned times and accordingly pay them out. You would need to pay attention regarding the integration between SAP R/3 and time recording system.
Building rules for positive time management is slightly more challenging compared to negative time management.
Kindly go through the below documents on positive time management which will give you more idea about the same.
Integration of Time Recording Terminals with SAP R/3
Determination of First Clock In & Last Clock Out in Positive Time Evaluation
Late Coming, Early Going and Unauthorized absence
Prorated Grant of Absence Quota for Contract Period in Time Evaluation
Splitting of Overtime Hours after X Hours in Time Evaluation
Rounding off Overtime Hours Generated via T510S table in Time Evaluation
Public Holiday Calendar and Work Schedule Rules
I hope these are helpful to you.
Thanks and regards,
Vivek Barnwal -
I'm moving all my managed files to be referenced so I can access from both Aperture and lightroom. Needed to do a rename on 16,000 files to get rid of backslashes in the file names. Most of the time it worked but for 1093 files it gave OSSStatus -43. I've tried googling the error and got nothing. Any ideas where to begin looking?
Thanks
JimHow are you renaming the files? In the "File > Relocate original file" dialog panel? Are you using a custom name format?
Have you checked in Aperture, if the originals, that are giving you the error message, are still inside the Aperture library? -
TS3276 I cannot send mail. the server keeps asking for my password/user id for IMAP
Is there a way to have no passwords for either e-mail accounts.
Why am I continuously prompted for my IMAP and I do not know what that password is.Who is the provider of this email account? It can be very hard to distinguish between a PW prompt instigated by the Incoming server vs the Outgoing server. What are the recommended ports to use for each from this provider?
Ernie -
Creation of Public Sector Planning application fails for LDAP user
The environment is on Windows 2008 R2 & EPM 11.1.2.2.302 of Planning. The creation of "general" planning applications works fine, regardless of the method of creation, Native User/LDAP User or Classic/EPMA. The creation of Public Sector Planning application using Classic Administration fails when using an LDAP user.
It works when using a Native User. It also works fine if EPMA is used, for both Native as well as LDAP users.
Our developers are not comfortable with EPMA yet, so want/need the ability to create the applications using Classic Administration.
Looking at the Planning sysout log, the only error message indicates a timeout with Calculation Manager:
Calc manager rules initialization failed. Please load and deploy the rules from Calc Manager UI
ERROR:Error while loading rules in Calc Manager. <HTML><HEAD><TITLE>Weblogic Bridge Message</TITLE></HEAD> <BODY><H2>Failure of server APACHE bridge:</H2><P><hr>No backend server available for connection: timed out after 10 seconds or idempotent set to OFF or method not idempotent.<hr> </BODY></HTML>
Calculation Manager itself seems to be working fine.
Any suggestions/thoughts anyone?
Thanks,
AndyHi Vivek,
The LDAP port is open to all the servers in the environment. LDAP users have no issues logging in to any of the tools that they have access to.
I think it has something to do with how Classic Planning passes the security token to Calculation Manager for an LDAP user. For a "general" Planning app, there is no evidence of such a transfer, because the Rules are created after the app has been created. And there the user logs in directly to Calculation Manager to create the rules.
When using EPM Architect, it would lead to reason that such a token is also passed, however, that mechanism does not seem to have any trouble.
This is the first time I am using a pre-packaged application like PSB, and have so far worked with only with "general" Planning apps. Wanted to see if anyone else has created PSB apps using external users successfully, so I can trade environment notes and may be come to a cause/solution.
Thanks,
Andy -
Hello Experts
i am having a requirement where in i will have to perform certain validations before posting PO and material document (MIGO). If these validations fail, PO or Material document should not be posted.
i managed to find certain BADI and user-exits (MB_CF001 and MB_DOCUMENT_BADI) typically for MIGO but when tested they use to get triggered once these doucment numbers are generated.
what i am looking at is cancel the process by giving the hard-error.
thanks in advance.
regards
rajeevHi,
<b>User exits for MIGO:</b>
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read From RESB and RKPF For Print List in MB26
MBCFC003 Maintenance of batch master data for goods movements
MBCFC004 Maintenance of batch specifications for goods movements
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
<b>User eits for PO:</b>
These are the User exit for CO01 ( Create PO)
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting
I am giving you the list of all user exits available for ME21N:
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
For your purpose you can probably try MM06E005. Or you can also try BADI ME_PROCESS_PO_CUST.
You can also check this BADI available for PO:
EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
ME_BAPI_PR_CHANGE_01 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan
ME_BAPI_PR_CHANGE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan
ME_BAPI_PR_CREATE_01 BAdI: Enjoy BAPIs for Purchase Requisitions
ME_BAPI_PR_CREATE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Crea
ME_BSART_DET Change document type for automatically generated POs
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standa
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Cust
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Custom
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PURCHDOC_POSTED Purchasing Document Posted
ME_RELEASE_CREATE BAdI: Release Creation for Sched. Agreemnts with Rel. Do
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_REQ_POSTED Purchase Requisition Posted
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Orde
SMOD_MRFLB001 Control Items for Contract Release Order
Transaction codes for BADI are:
SE18 - Business Add-ins(BADIs): Definition transaction
SE19 - Business Add-ins(BADIs): Implementation transaction
SE24 - Class Builder
Link for all user exits in SAP:
http://www.easymarketplace.de/userexit.php
Pls reward helpful points.
Regards,
Ameet
Maybe you are looking for
-
Insert result of query into a table with unique constraint
Hi, I have a query result that I would like to store in a table. The target table has a unique constraint. In MySQL you can do insert IGNORE into myResultTable <...select statement...> The IGNORE clause means if inserting a row would violate a unique
-
Korg Legacy M1 in multi mode in Logic?
I have a Korg Legacy M1 plugin. Although there are multiple outputs selectable in the gui of the plugin, there is no multi out version available in the instrument menu in Logic's channel strip, only stereo. Is this just not implemented in Logic, or a
-
Latest Solaris 9 and 10 versions
Hi guys, Got a simple question: what are latest versions (releases) of Solaris 9 and 10? I'm asking this cause : -according to oracle.com and wikipedia.com, the latest version of Solaris 10 is Solaris 10 8/11; but http://wesunsolve.net/bundles states
-
How to server-push to a JSP?
I want to refresh the content of a JSP as and when a collection available in server session is updated. The JSP displays the messages from this collection. Presently, I am using a meta tag, which refreshes the page after a specified time. But, this i
-
MacBook Doesn't sleep when lid closed, then grey screen
When I close the Mac Book it does not go to sleep. In other words, the Apple light on top does not go out. When I open it, that grey multi-language screen is there that says to restart. This is a new problem. I've been running SL since day one.