Creating securityContext manually after successfull authentication
Hi,
We have a requirement to integrate ADF application with LDAP. We were able to authenticate but we will not get any roles from LDAP. It's just for authentication purpose only.
So we need to get roles from DB using authenticated user id. Is there any way to set the roles to ADF Security context once authenticated and get the roles from DB so that i can access roles easily from any page or object using securitycontext.
Thanks in advance.
Regards,
Satya.
After authentication, there is no place inside the application where you can set the security context. Security context must be set by the authenticator providers registered in weblogic.
See this Re: Creating securityContext manually after successfull authentication
Please provide some details regarding how you are authenticating the users and how you want to pass the authenticated user to weblogic for deriving roles.
As your roles reside in DB, you have two options:
1. Standard approach is to use OVD database adapter, for getting roles.
2. If you don't have OVD, then I will suggest create a custom weblogic MBean authenticator and register it in weblogic security realm as a authentication provider. See this post
In your case, you have done the authentication part already so you just need to set the principals for the subject calling your database logic:
1. Implement AuthenticationProvider interface
2. Implement LoginModule interface and override doLogin method. Inside this method call you custom db logic to fetch roles.
Edited by: Sachin Saxena on Sep 6, 2012 12:26 PM
Similar Messages
-
Restric Access to Captive Portal after successfull authentication
I have setup a WAP321 with the captive portal activated.
2 WLAN networks defined, one for the Normal-user and 1 Guest-user access (with captive portal).
The WAP Management is on its own vlan (vlan 1 ) , network 10.0.0.0 /24
The Normal network has a different vlan (vlan 14) , network 192.168.14.0/24
Guest user(s) are on VLAN143 , 172.16.10.0 /24
So when a guest connects to the wap, the management interface is openend (10.0.0.x), after successfull authentication the user is redirected to a predefined site.
What i would like to establish is to make it impossible for the Guest-user(s) to access the management portal.
Defining an acl on the management portal is not possible as i would like to use any ip adres on the Normal Network (192.168.14.0/24).
unfortunally you can only define 5 Fixed ipaddresses and not a (sub)-network.
regards
eddyGood morning Mr. Mulder,
It it possible to set and access-list on your WAP321 that restrict access from users on the complete network 172.16.10.0/24.
Let me share with you the information found on guide me section on this forum about this topic.
I encourage you to make use of this useful tool if you have any other question about configuration on the future.
http://sbkb.cisco.com/CiscoSB/ukp.aspx?vw=1&docid=c1a32843a14846af8c20a91532c39d16_acl.xml&pid=4&fcid=&fpid=&slnid=6
Check the section 6, where you could set the configuration using the network 172.16.10.0/24 as source address and 10.0.0.0 /24 as destination.
hope you find this answer useful, if it was satisfactory for you, please mark the question as Answered.
Thank you
Diego Rodriguez.
Cisco network engineer -
After successful authentication, Redirection is not working properly.
I am protecting an application with OAM 11g say http://ohs-host:7777/test/. If I am accessing http://ohs-host:7777
/test/, I am getting OAM login page. I have enabled SSL for OAM and the login page which I am getting is a https
url (https://LB-IP/oam/server/obrareq.cgi?encquery....). After successfull authentication it is redirecting me to https://ohs-host/obrar.cgi?encreply.... and I will get a 404 error.
Here after successfull authentication it is redirecting to https url and port number also removed from the url. If I change the url manually by changing https to http and add port number 7777, it will navigate me to the requested page.
please help !
regards
ShantanuHi,
Sorry to hear your issue.
Please remember always need to backup before updating.
You can use Nokia ovi service for this.
Can you give me so information to study this case:
1. I need to know which countryyou live
2. Which sw versions he has upgraded from and to
3. The product code of the phone (7 digit under the battery)
4. by which method has he upgraded the software? – FOTA, NSU, or at the Service Centre?
Br
Mahyav -
FPB7 Create Payment Lot after loading Manual Bank Statement
Hello Everyone,
My question is can we create payment lot after loading Manual Bank Statement(FF67).
Thanks,Hi Imitiyaz,
Transaction code-FF67 (Manual bank statement) is used to enter the bank statement data manually via dynpro. Moreover, since it contains no front end controls so it can be called via batch. You need to develop a custom program to cater the requirement.
You can create a program which creates batch input sessions for transaction FF67. Use transaction SHDB to record the transaction in order to see program, dynpro and field names.
Hope it helps...
Thanks,
Amlan -
After installing BI Content, do I need to create infopackage manually?
Hi folks.
I got a question as the title.
After installing BI Content, do I need to create infopackage manually?
Do I have to make every infopackage for every datasource manually?
Thanks for your answers in advance.Hi..
After installing BI Content, do I need to create infopackage manually?
Ans: Yeah..u have to create infopackage manually.
Do I have to make every infopackage for every datasource manually?
Ans: Yes
With the help of an InfoPackage, you determine the selection conditions in BW for the data request from a source system. In this section, you can select the contents of the InfoPackages so that it can be scheduled.
1.Highlight a source system in the InfoSource tree in the Administrator Workbench.
2.Choose Context menu (right mouse click) ® Create InfoPackage and enter any alphanumeric or numeric name for the InfoPackage.
Dialog box that follows will show you which source system you want to load data and to which InfoSource. You will see the DataSources that are assigned to the InfoSource to which data is to be loaded.
3.Select a DataSource for which you want to load data into BW.
If the InfoPackage is scheduled, data is loaded into BW from the DataSource selected here.
Hope this helps.
Regards,
SRIKANTH -
Connecting to new instance. to create DB manually
can any body send me the commands to create and connect to idle instance to create DB Manually, setp by step plz......
<sigh>
Oracle missed out on that one. Should have included that in the doc right? I dont know why I could see all this in the doc that you couldnt.
Step 1: Decide on Your Instance Identifier (SID)
Step 2: Establish the Database Administrator Authentication Method
Step 3: Create the Initialization Parameter File
Step 4: Connect to the Instance
Step 5: Create a Server Parameter File (Recommended)
Step 6: Start the Instance
Step 7: Issue the CREATE DATABASE Statement
Step 8: Create Additional Tablespaces
Step 9: Run Scripts to Build Data Dictionary Views
Step 10: Run Scripts to Install Additional Options (Optional)
Step 11: Back Up the Database.
No offense, but when it comes to reliability, confidence & faith regarding Oracle Databases, I would prefer Oracle Documentation on others anytime. Having said that, you are free to follow the guidelines of any XYZ as long as they are reliable and you have faith in them.
Your issue is resolved and that was important.
Best of Luck!
Rgds
Adnan -
Create Handling unit after receiving finished goods
Hello,
My client's requirement is that they do not want a TR or TO to get created at the time of Production order confirmation and neither they want to create the Handling unit at the time of confirmation.
They want to move the material from production to warehouse as one Handling unit after multiple confirmations. They want to create Handling unit manually after the receipt of materials.
What is the process of creating Handling unit after we have FG (multiple batches).
After creation of Handling units, my client wants to ship the same Handling unit out to customer.
How to create Handling unit
Regards
Prabhjot SinghDear
Please Follow this Steps
Process Cycle:
1)Create Material with WM View in Material Master (MM01)
2)Crearte Purchase Order(ME21N) consult MM
3)Release Purchase Order(ME29N, ME28)
4)Goods Receipts (MIGO)
5)Creating Transfer Request (note:- this will come Automatically while doing G/R)
6)Create Transfer Order (LB13)
7)Confirm Transfer Order (LT12)
10)Check Stock Overview in Warehouse (LS24)
Goods Issue Process from Warehouse:
1)Create Reservation (MB21)
2)Goods Issue W.R.T Reservation (MIGO)
3)Create Transfer Order (LT06)
4)Confirm Transfer Order (LT12)
After Doing all This Steps In MMBE At Stock Requirement List Click on the Selected Stock and Right Click u can See the WM stocks And Handling Unit
with Regards
Pushpalas -
Creating Form Manually w/Process that Contains Multiple Insert Statements
Hello,
I've been trying to create a form manually by following the instructions in the Users Manual under "Creating Form Manually - Creating a Process that Contains One or More Insert Statements." I have not had much luck and I think that it is because I'm not sure what is ment when said:
"Create a conditional process of type PL/SQL that executes when the user clicks the button."
Here is the PL/SQL that I used:
BEGIN
UPDATE T
SET first_name = :P1_FIRST_NAME,
last_name = :P1_LAST_NAME
WHERE ID = :P1_ID;
END;
I am not sure where to create this process,however. I've tried several areas (i.e. Processes under Page Processing, Processes under Page Rendering, Under Conditions on the Button, etc.) but will get errors or no effect at all.
Please let me know what i am doing wrong. If you could provide me with a simple example of how to create a form manually, that would be greatly appreciated.
Thanks.
Linda
Message was edited by:
lhudakHello Scott,
I followed your instructions and the error that I get is that nothing happens at all. I submit the page and nothing gets updated, deleted or added.
I have the table, report, processes and form in place. Here are the settings:
Process Point: is "on-submit, after computations...(in the Page Processing Section)
Type: PL/SQL anonymous block
Source: BEGIN
INSERT INTO T ( first_name, last_name )
VALUES (:P1_FIRST_NAME, :P1_LAST_NAME);
END;
Conditional Processing: When Button Pressed (Create (ADD))
For the Button:
Database Action: SQL Insert action
URL Redirect: No Target
Should I have any special settings on the Page Item? (i.e. under Default: Default Value Type: PL/SQL Expression) or maybe under Conditions: Condition Type - PL/SQL?
Please let me know.
Thanks
Linda -
Create Handling unit after receiving finished goods from production
Hello,
My client's requirement is that they do not want a TR or TO to get created at the time of Production order confirmation and neither they want to create the Handling unit at the time of confirmation.
They want to move the material from production to warehouse as one Handling unit after multiple confirmations. They want to create Handling unit manually after the receipt of materials.
What is the process of creating Handling unit after we have FG (multiple batches).
After creation of Handling units, my client wants to ship the same Handling unit out to customer.
How to create Handling unit
Regards
Prabhjot SinghHi,
If I understand right - customer wants a simple transfer of finished goods from production to warehouse, and latter pack into handling units.
Possible scenario:
1) Assign production order to non-WM and non-HU storage location. Post GR for production order using transaction MIGO (mvmt. type 101) for a whole quantity produced for production order.
2) Setup packing table in IMG (Logistic General > Handling Units > General > Setup packing table> ...) --> packing table is a functionality for packing goods into HU - it takes goods from predefined source non-WM/non-HU location, packs them into HU and places them in target WM-HUM location.
2) Maintain packaging instruction (trans. POP1 and POF1) to automate the packaging quantities.
3) Run packaging table by HUPAST, select your table and pack.
4) Packed HU ends up on WM-HUM location.
This process can be done either in SAP GUI (HUPAST) or you can build it in RF transaction and run it with mobile RF scanner (ABAP development required).
Hopefully this will be of any help.
Regards, Primoz -
Is it possible to change an item's create date manually?
When we upload some documents to PORTAL Content Area, Items' create Date is automatically set to sysdate. But our customer wants to preserve documents real creation date (in other system). Can we change this field manually after uploading documents or is there any other way to somehow give documents other date property? Many thanks...
The online help is a good place to start. Search the help for "custom attribute" or "custom item type". I also strongly recommend that you upgrade to Portal 3.0.9. There have been many bug fixes and enhancements between 3.0.6 and 3.0.9, and you'll need to be at 3.0.9 to upgrade to Release 2, when the R2 upgrade scripts are available.
Regards,
Jerry
PortalPM -
Can I remove sr3701x.data1 - sr3701x.data4 manually after EHP4 installed?
Dear Gurus,
During ERP6 EHP4 installation, EHPi create a shadow instance and I notice that sr3701x.data1 - sr3701x.data4 were created automatically but after EHP4 finished those data files still occurred.
root@sapdev # pwd
/sapdata/sapdata4
root@sapdev # ls -lR sr3701x_?
sr3701x_1:
total 40980032
-rw-r----- 1 oradev dba 20971528192 Mar 3 09:50 sr3701x.data1
sr3701x_2:
total 40980032
-rw-r----- 1 oradev dba 20971528192 Mar 3 09:50 sr3701x.data2
sr3701x_3:
total 40980032
-rw-r----- 1 oradev dba 20971528192 Mar 3 09:50 sr3701x.data3
sr3701x_4:
total 13812352
-rw-r----- 1 oradev dba 7068459008 Mar 3 09:50 sr3701x.data4
root@sapdev #
Can I remove sr3701x.data1 - sr3701x.data4 manually to free disk space for /sapdata and how?
Please suggest.
Best regards,
Choosak B.Hi,
It seem PSAPSR3701X isn't empty (Used[%] : 93.87) but I don't know why SAP don't remove it from EHP Installer when finished EHP4 installation.
List of database tablespaces
Pos. Tablespace Type Status ExtMan. SegMan. Backup Files/AuExt.
Total[KB] Used[%] Free[KB] MaxSize[KB] ExtSize[KB] FreeExt. Largest[KB]
1 - PSAPSR3 DATA ONLINE LOCAL AUTO NO 16/16
54138880 92.34 4144448 163840000 109701120 952 9246720:7966720:7946240:7905280:7905280+
2 - PSAPSR3701 DATA ONLINE LOCAL AUTO NO 14/14
54466560 0.00 54465664 143360000 88893440 20 9021440:8192000:8192000:8192000:8192000+
3 - PSAPSR3701X DATA ONLINE LOCAL AUTO NO 4/0
68342784 93.87 4186880 68342784 0 7 1403904:1221632:1069056:163776:163776
4 - PSAPSR3USR DATA ONLINE LOCAL AUTO NO 1/1
51200 6.25 48000 10240000 10188800 1 10188800+:48000:0:0:0
5 - PSAPTEMP TEMP ONLINE LOCAL MANUAL NO 1/1
1433600 0.00 1433600 10240000 8806400 0 8806400+:0:0:0:0
6 - PSAPUNDO UNDO ONLINE LOCAL MANUAL NO 1/1
7823360 0.00 7823296 10240000 2416640 311 2416640+:2041792:1814464:1433536:603072
7 - SYSAUX DATA ONLINE LOCAL AUTO NO 1/1
307200 91.81 25152 10240000 9932800 26 9932800+:13248:3072:2048:1280
8 - SYSTEM DATA ONLINE LOCAL MANUAL NO 1/1
993280 98.81 11840 10240000 9246720 2 9246720+:11200:640:0:0
Best regards,
Choosak B. -
JSF + Acegi + Spring error after sucessful authentication
I use JSF like presentation layer in my Spring application, and acegi to manage the security.
When the aplication try to authenticate a user and it sucess, the AbstractProcessingFilter do a response.sendRedirect(response.encodeRedirectURL(t argetUrl)); i've verified that the target url is the rigth one, it's supposed that after sucessfuly authenticated the user be redirected to the targetUrl specificated to the AuthenticationFilter, but instead it trows an Exception:
javax.servlet.ServletException: Cannot find FacesContext
at org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:848)
This is my faces navigation rules:
<navigation-rule>
<from-view-id>/welcome.jsp</from-view-id>
<navigation-case>
<from-outcome>otra</from-outcome>
<to-view-id>/secured.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
and this is the targetUrl that the AuthenticationFilter redirect to:
http://localhost:8080/MyApplication/secured.jsp
The user try to navigate from wellcome.jsp to secured.jsp, and then the acegi filters engine intercept the recuest, redirect to the authentication page, the user authenticate sucessfuly and the acegi filters send back the user to the original url, the targetUrl, and then the exception...
I think this is caused by the fact that there is not a faces context created when the AuthenticationFilter finish its work and return to the filter chain, and the filter chain finish too and try to return to the original thread of execution; like the filter is the first that manage the request, there is no faces context created and then the exception come in.
Is this correct? how can i aboid this difficulty?
Why this is happening? There is some kind of incompatibility between acegi and jsf?
I'll appreciate very much your answer.
Message was edited by:
maykellideas yeah, solution, ... maybe
Do you run the stuff as the local administrator, not a domain administrator.
Use runas administrator
Any option to take machine temporary out of the domain?
What does CSCOpx\bin\resolver.pl think of your hostname?
If you try this URL https://server_IP_obfuscated/cwportal/group/lms/lms-monitoring rather then relying on the redirect after the login.
Does that make any difference?
Tried firefox and IE? supported old version?
Cheers,
Michel -
LOG_FILE_NOT_FOUND when running cleaner manually after some data purge
I hit LOG_FILE_NOT_FOUND error when running cleaner manually after some data purge, I searched the forum, found someone also faced the same issue before, but cannot find any clue on how to fix it. Below is the error trace and followed by our configurations
Caused by: com.sleepycat.je.EnvironmentFailureException: (JE 4.1.6)
Environment must be closed, caused by:
com.sleepycat.je.EnvironmentFailureException: Environment invalid because of
previous exception: (JE 4.1.6) /scratch/tie/thirdeye/index/data-store
fetchTarget of 0x50f/0x3fb9dd6 parent IN=368491717 IN
class=com.sleepycat.je.tree.IN lastFullVersion=0x510/0x2ca7d18
parent.getDirty()=false state=0 LOG_FILE_NOT_FOUND: Log file missing, log is
likely invalid. Environment is invalid and must be closed.
at
com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureExcept
ion.java:196)
at
com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1439)
at com.sleepycat.je.Environment.checkEnv(Environment.java:2117)
at com.sleepycat.je.Environment.checkpoint(Environment.java:1440)
at
com.oracle.thirdeye.datastore.DataStoreManager.clean(DataStoreManager.java:402
at
com.oracle.thirdeye.infostore.InfoStoreManager.clean(InfoStoreManager.java:301
... 11 more
Caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid
because of previous exception: (JE 4.1.10)
/scratch/tie/thirdeye/index/data-store fetchTarget of 0x50f/0x3fb9dd6 parent
IN=368491717 IN class=com.sleepycat.je.tree.IN
lastFullVersion=0x510/0x2ca7d18 parent.getDirty()=false state=0
LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is
invalid and must be closed.
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1332)
at com.sleepycat.je.tree.IN.findParent(IN.java:2886)
at com.sleepycat.je.tree.Tree.getParentINForChildIN(Tree.java:881)
at com.sleepycat.je.tree.Tree.getParentINForChildIN(Tree.java:809)
at
com.sleepycat.je.cleaner.FileProcessor.findINInTree(FileProcessor.java:1152)
at com.sleepycat.je.cleaner.FileProcessor.processIN(FileProcessor.java:1090)
at
com.sleepycat.je.cleaner.FileProcessor.processFile(FileProcessor.java:538)
at com.sleepycat.je.cleaner.FileProcessor.doClean(FileProcessor.java:241)
at com.sleepycat.je.cleaner.Cleaner.doClean(Cleaner.java:463)
------------Configurations-------------------------
EnvironmentConfig.ENV_RUN_CLEANER -> false
EnvironmentConfig.CHECKPOINTER_HIGH_PRIORITY -> true
EnvironmentConfig.CLEANER_EXPUNGE -> false
Any hints are appreciated. I'm also working for Oracle CDC, feel free to call me at 861065151679 or drop me an email at [email protected] so that we can talk more in detail
AnferneeAnfernee, I will contact you via email.
--mark -
Creating a manual tabular form on an empty table
Hi all,
I am trying to create a manual tabular form on an empty table. Is it possible to display textboxes and column headers, when I run the report I get "no data found".
Regards,Hi Denes and thank you for your valuable input.
My problem is in fact that, I have created the tabular form by using a report region with a SQL query, something like,
select apex_item.display_and_save(1, p.bolge) bolge,
apex_item.display_and_save(2, p.hafta) hafta,
apex_item.display_and_save(3, p.yil) yil,
apex_item.display_and_save(4, p.mamul) mamul,
apex_item.display_and_save(5, p.tahmin1) tahmin1,
apex_item.display_and_save(6, p.tahmin2) tahmin2,
apex_item.display_and_save(7, p.tahmin3) tahmin3,
apex_item.display_and_save(8, p.tahmin4) tahmin4,
apex_item.display_and_save(9, p.tahmin5) tahmin5,
apex_item.display_and_save(10, p.tahmin6) tahmin6,
apex_item.display_and_save(11, p.revize4) revize4,
apex_item.display_and_save(12, p.revize5) revize5,
apex_item.display_and_save(13, p.revize6) revize6
from portal_link.v_planlama p
The problem is that, since there is no data in the table, when I run the page, I cant get the form to be rendered, and I get a nice "no data found". There should be a way to get the form rendered, hence making it available for data input.
Regards,
Onur -
Error while creating database manually
hi guru's i am getting error while creating database manually
my sql is SQL>create database lily
logfile group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
character set WE8ISO8859P1
national character set utf8
datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf'
size 50M
autoextend on
next 10M maxsize unlimited
extent management local
sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf'
size 10M
autoextend on
next 10M
maxsize unlimited
undo tablespace undo
datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf'
size 10M
default temporary tablespace temp
tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf'
size 10M;and i am getting following error
create database lily
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: control file could not be created
ORA-00202: control file: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\LILY\CONTROL01.CTL'
ORA-27038: created file already exists
OSD-04010: <create> option specified, file already exists
code}
Edited by: CHETAN YADAV on Jul 19, 2011 6:55 PMcreate database lily
logfile group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf' size 150M
sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf' 150 M
undo tablespace undo datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf' size 10M
default temporary tablespace temp tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf' size 10M;
remove the SQL> from the a.sql script also change the system datafile size to minimum of 100mb size
ALSO check/change the undotablespace name with your init parameter file it should match as it is in the init parameter file
Edited by: rajeysh on Jul 19, 2011 6:59 PM
Maybe you are looking for
-
I am not able to open a cd through my imac
I have an imac with a folder for Windows. I go back and forth and cannot remember how to get my cd to upload on my imac.
-
I upgraded my Firefox and my home page (which I love) is GONE. Not sure how to get it back. I still have my bookmarks though. Thanks in advance for helping me.
-
IP-sla udp-jitter / one-way delay no output
Hi *, i have a question regarding "ip sla udp-jitter". On some connectins i get an output for the "show ip sla stat" for the _one-way delay_ on other links i don't get an output. The Configuration is always the same and the Probes are running. NTP is
-
Error message NIPathDir property while installation
Hi, we are facing an error while installation of Lab VIEW 8.2.1 on windows vista. Each time an Fatal Error message appears ; "fatal error NIPathDir property....is undefined" Please tell me the solution for this error. Thanks Altaf
-
Branding the confirmation message after Self Registration in OIM
Hi All Can you please let me know how can I brand (change) the confirmation message I am getting after the user having the Self registration . I want to change the following message Congratulations, testuser Your registration request has been sent. Y