Locking and unlocking users in apex
Hi,
I have a table with users.
I want to lock users after 3 invalid attempts of typing password.
And then later unlock these users.
Does anyone have any idea how i can do this?
-Diana-
Diana,
These are not Application Express user accounts, right? You'll need to maintain account status (like locked/unlocked) in your users table. Then you'll have to add code to your login process to count invalid (consecutive) password guesses and set the account status to locked when it exceeds three attempts. Then add code to prevent logins for locked accounts. Then figure out a way to unlock the accounts (probably by an admin).
This is simply a matter of programming, i.e., taking your requirements and making your program conform to those requirements, so I'm not sure why you are asking the question.
Scott
Similar Messages
-
Restrict SU01 to only lock and unlock user passwords
how to restrict SU01 to only lock and unlock user passwords,(should not have acces to create users) What is the auth.obj I need to change ? please suggest.
Thanks
sr
Message was edited by:
sunny rajRestrict authorization object S_USER_GRP to activity '05'
Cheers,
Ben -
Lock and Unlock user for a period of time
I need to lock a specific su01 user for a specific period of time each day. Does anyone have any idea how to accomplish this task?
Hi Lye and Elvira,
I am not logged on, but fairly certain that calling FM BAPI_USER_GET_DETAIL will also deliver the lock status / reason and user existence check etc, which means that the program can react appropriately to the UFLAG lock and the reason for it (if coded to do so). It would also spare the select on USR02 which might change or even be blocked.
A bigger problem I see with preventing a user from doing something from a certain point in time onwards using this lock-approach, is that the user might already be logged on!
@ Elvira Knight and ELVIRA KNIGHT regarding points: You have 2 SDN ID's now. You need to logon as the ID which created the thread (Elvira Knight originally asked the question) either by using the P- or S-number from the registration or the email address (you might need to temporarily change ELVIRA KNIGHT's email address to do that). Then you will be able to assign points for the thread which you started as Elvira Knight.
Theoretically I could add the points for you, but I prefer not to interfer in the decisions and points of SDN members (it is a free world - unless there is points collaboration...). The future of the points-system is indeed also hanging in a bit of a balance because of that reason. You can email me via the address in my business card if you need some help.
Cheers,
Julius -
Capability or admingroup to lock and unlock views
Hi all,
I am trying to lock and unlock users via
lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object
but I get the error:
WavesetException : com.waveset.util.WSAuthorizationException: View access denied to Subject AGROUPE1 on User: UTEST1.I tried to create an admingroup with this permission
<Permissions>
<Permission type='User' rights='View'/>
</Permissions>But it didn't change the error.
Any idea so that it could work ?You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
i need to create a function is_user_blocked(p_user varchar2). this functions should handle the lock and unlock users on DB level. Returns 0 if the user is not blocked, returns 1 if the user is blocked, please help me in this
regards
mkhaleelA function with a name like is_user_locked should not make any changes. If you want to lock/unlock users then create an extra function for that.
Having said that, your checking function could look like this
function is_user_locked(p_user in varchar2)
return varchar2
is
ret varchar2(32);
BEGIN
select account_status
into ret
from dba_users
where username = p_user;
return ret;
END is_user_locked; Btw: I consider a blocked user something totally different. A user session, that is blocked by another session and therefore can't continue work. -
Statement for Lock and Unlock an Oracle user (Urgent)
Hi DBAs.
I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
Thanks
HassanHey,
SQL> alter user <USERNAME> account lock;
and
SQL> alter user <USERNAME> account unlock;
Cheers,
Marcello M.
Sorry Justin, same answer........
Message was edited by:
Marcello M. -
Hello All,
I have a scenario where locking and unlocking a user in a specific child system has to be done through CUA. The TCode SCUM allows to do that. However, I'm looking for the underlying BAPIs corresponding to this TCode, so that my external application can directly invoke that.
Any pointers will be highly appreciated.
Best regards,
BalaAre you wanting to lock selectively (only in some child systems and not others)?
What is the reason for not using SCUM?
The BAPI is like a gun, where you enter only the user ID as the bullet (a silver one with the user's name on it).
You then aim the gun at a target (in the destination parameter of the FM).
When you pull the trigger, the user is locked in the target.
The caliber of the gun depends on the authorizations of the user in the destination server connection.
Whether or not you hit the user, will depend on how good a marksman you are on the client server.
Cheers,
Julius
Edited by: Julius Bussche on Apr 2, 2009 1:02 PM -
Locking and unlocking mass users
Hello
How can we lock and unlock mass users?
Edited by: Mohammed Siddiqui on Jul 16, 2008 2:37 PMHi Siddique,
Follow the below link
Re: locking users while implementing support packs
Regards
Zam -
Hi how to handel the lock and unlock the table
Hi,
i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
regards,
Hari.Hi,
i assume it's in table JEST
so select:
SELECT * FROM JEST
WHERE OBJNR = aufk-OBJNR
AND STAT IN S_STATI
Andreas -
Is it possible to lock and unlock a transaction?
Hi SDN,
Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?Hi,
It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
* For locking
CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
EXPORTING
TCODE = TSTC-TCODE
LOCK = 'X'.
* For unlocking
CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
EXPORTING
TCODE = TSTC-TCODE
UNLOCK = 'X'.
Regards,
Ferry Lianto -
FM to Lock and Unlock the Tcode CJ02
Hi,
I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
loop at it_src into wa_src.
Lock the Tcode 'CJ02'.
Perform BDC Recording to Create Settlement Rule.
Unlock the Tcode 'CJ02'.
endloop.
Regards,
Deepthi.Hi, you can block the Subproject with Lock Object, you can create this under SE11
after you have created this, use these FM for Enqueue/Dequeue,
call function 'ENQUEUE_EZ_ODAPROF_PO'
exporting
mode_ztma_odaprof_po = 'E'
mandt = sy-mandt
ebeln = cod_oda
ebelp = cod_pos
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
call function 'DEQUEUE_EZ_ODAPROF_PO'
exporting
mode_ztma_odaprof_po = 'E'
mandt = sy-mandt
ebeln = cod_oda
ebelp = cod_pos -
Lock and Unlock a table:AFVU
Hi Folks.
I want to modify a standard table (AFVU ) with new user dates from User.For this,First I need to lock and unlock the table.
When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
Is there any way to find out the lock object for a particular table?
How to proceed for this?
Any Pointers are much helpful.Hi,
Go to SE11 and display your table - do a where used list and select lock objects.
I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
Gareth. -
Lock and unlock sharing DAQ PCI-6036E
Is there an example for lock and unlock a DAQ resource (PCI-6036e)? I'd like to protect it from different threads.
Well, I have LabVIEW 6.1 and TestStand 2.01f
Does NI-DAQmx come with LV7?
My application has one serial port,one PCI-6036E connecting to one SCXI with 16 thermocouple and 10 force sensors.
motor controller pc board (MC)
PC with TestStand and LabVIEW (master)
| |
RS485 COM1 PCI-6036E
| | | | SCXI CHASSIS
slave MC1 MC2 MC3 MC4 TEMPERATURE SCXI-1102
| | | | | | | | Strain gauge SCXI-1520
Stepper 1-3
Brushless
The PC is the master,
MC1 2,3,4 are slave motor controller, they don't initiate communication but they take a command and execute it and they can return mo
tor status encoder position.
MC1 can controll four motors, serial command has MC1 address and individual motor sub-address.
The four motors connect to MC1 are stepper and small.
The motors connect to MC2 are brushless type
The two motors connect to MC3 are stepper and medium size. Different manufacturers, but they all have encoder feedback and take about 4 - 15 seconds to move to commanded position.
Strain gauges for measuring the force of the linear motors. Most motors have one strain gauge, but three motors have two strain gauges. (Fwd 1 inch with 8psi to a cork screw, once finding the corkscrew resistance, punch thru it with 50 psi and 1/2 inch)
The test is life analysis and motor force.
The test cycles the motors continuously and collecting data (encoder, temperature, force, cycles)
What are the ways for doing the test?
How should the graphical User interface be? this is the thing that the project managers care about. Only three seconds to impress them. -
Locking and Unlocking an Object
Hi all,
I have a requirement of chaging the characteristics of the Equipment but when i use the BAPI BAPI_OBJCL_CHANGE by passing the Equipment number and the required values i get a return message saying that the equipment is locked by User WF-BACTH but when i open the same equipment using the IE02 i do not see any locks........
i want to know the funstion modules which can be used to put a lock and unlock an Equipment...........
Regards,
Ravi GhI
Enqueue and Dequeue using BAPI can be used to lock an object.
For example :
If we need to lock and employee number to be edited only by the person who set the lock, we can use a BAPI.
Do read the documentation of 'BAPI_EMPLOYEE_ENQUEUE'. It will give you a better idea of how to implement Enqueue for a BAPI.
Refer the link -
Re: Enqueue and Dequeue consept----Please explain urgent -
Locking and unlocking photo books
When I creat a photo book and walk away from it for a while, I cannot get back into and continue my work. It automatically locks the book and thinks I am done. How can I lock and unlock? I want to be able to spend a few days working on a book but so far I have to complete it in one sitting. Also, when I had a lower version of Iphoto I could lock and unlock without a problem.
Thank you for your help.
DebraDebra:
Welcome to the Apple Discussions. What do you mean by "lock" and "unlock". Never heard of that. Do you mean open? What happens when you close iPhoto and then reopen it again. Can't you click on the book icon in the Source pane and get it back open to work on it?
Do you Twango?
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
Maybe you are looking for
-
How to set the number of seconds a servlet is allowed to run
I use JSP to generate a report, but it will take about 10 minutes to search. IE Client screen displays an error message what is "Cannot find out your page" after 8 minutes. How to set the number of seconds a servlet is allowed to run.
-
Installing Flex 4 SDK on Eclipse IDE
Hi, I want to use Eclipse IDE with Flex 4 SDK but am unable to do so. I have looked at various blog posts & threads dealing with the same, most of them are obsolete(in the sense posted way back in 2005/07 with very old Eclipse releases) or I am not g
-
How do i re download photoshop and light room i had to replace my computer?
how do i re download photoshop and light room i had to replace my computer?
-
HTMLDB from a DBA's point of view - any docs available ?
Hi, I'm looking for some documentation for an experienced Oracle DBA who, not being a HTMLDB developer, will soon have to manage HTMLDB workspaces, users, developers, etc. while continuing to manage the larger Oracle database environment. Apart from
-
HT204053 changing your apple id in icloud
I changed my apple id and now I can't change my iCloud id, and can't access iCloud because my apple id is changed. How do I chang my id in iCloud?