Custom log in on 11g

I have used Configure ADF Security Wizard to cofigure web.xml, jsp-config.xml, jazn-data.xml.....
Then I have changed jsp-confing.xml and in Login Modules section I have added customLogin -
code:
<serviceInstance name="customLogin" provider="jaas.login.provider">
<property value="theNameOfMyClass" name="loginModuleClassName"/>
<property name="jaas.login.controlFlag" value="REQUIRED"/>
<property name="debug" value="true"/>
<property name="addAllRoles" value="true"/>
<property name="someproperty" value="somevalue"/>.....
<property name="log.level" value="FINEST"/>
</serviceInstance>
then I have changed properties for default security context to look like:
<jpsContexts default="NAME">
<jpsContext name="NAME">
<serviceInstanceRef ref="credstore"/>
<serviceInstanceRef ref="customLogin"/>
<serviceInstanceRef ref="anonymous"/>
<serviceInstanceRef ref="policystore.xml"/>
<serviceInstanceRef ref="idstore.xml"/>
</jpsContext>
<jpsContext name="anonymous">
<serviceInstanceRef ref="credstore"/>
<serviceInstanceRef ref="anonymous"/>
<serviceInstanceRef ref="anonymous.loginmodule"/>
</jpsContext>
</jpsContexts>
First I have tested my customLogin on application module changing "jbo.security.enforce" to "Auth" and setting "jbo.security.logingmodule" to "customLogin" and it worked just fine.
Then I defined some rules for accessing pages in jazn-data.xml based on roles that have the same name as roles defined in database (because my customLogin (class that implements LoginModule) actually go to data base and checked for right username and password )....and nothing ....it seams that my customLogin isn't triggered at all. What am I missing?

Hi,
unless you are on a Technology Preview build, the following has changed in JDeveloper 11 production
- custom LogiNModules are no longer configured in jps-config. Instead they need to be defined as authentication providers in WLS. This is supposed to change to the better in a future release, but for now its the way it is.
- jbo.security.enforce" to "Auth" is no longer used when ADF Security is enabled. The configuration is read from the adf-config.xml file in the .adf\META-INF directory
You may want to have a look at the recodings posted here
http://www.oracle.com/technology/products/jdev/tips/fnimphius/
Frank

Similar Messages

  • !csComponentDataNotFound, when enabling a custom compoent in UCM 11g.

    Hi,
    I am seeing following exception when enabling custom component in UCM 11g (through component manager). Any pointers on what could be the issue.
    intradoc.common.ServiceException: !csComponentDataNotFound, DV_Eloqua
    After enabling when i restart the server, i don't see this exception again and in the component manager the component looks enabled.
    Logs are not clear on what is causing this. Can i Ignore this?
    Thanks in advance,
    Seshan K.

    Hi,
    I see this issue with install of all the custom components. The exception I pasted in previous post was just one of the many.
    To give you some back ground,
    This was done as part of migration effort from UCM 10gR3 to UCM 11g.
    There custom components were developed for UCM 10gR3, we have updated the code to use RIDC and  as part of migration to 11g.
    Custom components were then installed to 11g using component manager.
    This issue is not see in of the component installed, even that component was migrated from 10gR3.
    Thanks and Regards,
    Seshan K.

  • Custom log of rejects in BPC data manager package

    dear All
    we have custom package which loads records from flat file.
    The package is using a stored procedure for all calculations and log errors..
    The error codes are logged for duplicates, invalid member IDs..
    When we tested for small number of records, the log used to display in package view status.
    But if there are huge number of reccords we were unable to display log in the pacakge status. Is there any limitation?
    the error log file ranging from 8Mb to 25MB.
    Please advise.
    BPC 7.5 MS version.
    regards
    Prasad

    hi Roberto
    thanks for your reply.
    yes i am trying to display the log file of private publications only. it consists of rejects with custom logs.
    this is requirement from client, they wantrd to see in package view status itself.. so is why we got stuck
    during testing it was able to display but during uat there were huge rejects where it wasnot able display anthing.
    is there any sap  note so that I can share to client,n or specifications of sap?
    any workaround please advise
    regards
    Prasad

  • Want to Generate custom logs with Log4J within Java Embedding activity

    Hi Gurus,
    i want to Generate custom logs with Log4J within Java Embedding activity. For that i have performed some steps, but the log file has not been created.
    ServerSide Configuration:
    *===============*
    1. I have copied the log4j-1.2.15.jar file to the "oracle.soa.ext_11.1.1" location and recreate the oracle.soa.ext.jar file using an-script, which appends the log4j.jar file to the classpath.( That was created successfully)
    2. Specify a File location in log4j.xml for creating the log file. (e.g. (<middleware_home>/config/customLog.log)
    3. Then create a folder and add log4j.xml and log4j.dtd file under the folder.
    4. Modify the startManagedWeblogicServer by adding JAVA_OPTIONS="-Dlog4j.configuration=<middleware_home>/config/log4j.debug.xml”
    5. Then restart the SOA server.
    log4j.xml :
    I have used fileAppender.
    DevelopmentSide Configuration:
    *===================*
    1. Create synchronous BPEL process and Add "JAVA Embedding Activity" inbetween receiveInput and replyOutput activity.
    2.Import the log4j-1.2.15.jar to the project libs
    3.In the BPEL source code, import the Logger class.
    4.Insert the code in the JAVA Embedding Activity
    Logger logger = Logger.getLogger("CustomLog");
    logger.info("CustomeLog " + getTitle());
    Compile and deploy the project into the SOA_server and test it. Test status is completed but log is not created in the mentioned location.
    Ref: http://blog.andrade.inf.br/search/label/Log4j
    Is there any other way to achieve this requirement. Please suggest.
    Thanks in Advance,
    Sharmistha

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • User change password after first logging in Oracle 11g

    Hi
    Can you help someone in connection with this problem:
    user can not change password after first logging in Oracle 11g
    All the best
    Ragip Avdijaj

    Sounds like they are not getting logged in at all, so they are never getting to the point where they can change the password, but we need to see more detail to give a better answer (an example or copy-paste of a sqlplus session might help)

  • How to implement custom logging using log4j in Webcenter Portal Application

    I need to implement custom logging and export it to a new log file in Oracle 11.1.1.5 (Webcenter portal application). Please tell me the steps to implement this functionality.

    Please post questions for WebCenter Portal in it's own forum:
    WebCenter Portal

  • Single file custom logging for portal service in 7.31

    Hello Experts,
    I have a portal service.
    The service writes sensitive data to the DB and therefore I need tracing mechanism.
    Until now I've used a custom txt file but now I want to use the SAP J2EE logging infrastructure (for performance, identifying user sessions etc...)
    Since the severity of the messages will be set to 'info' I don't want to write the log entries to 'defaultTrace.trc', I want to write it to a custom file.
    I'm aware of 'ForceSingleTraceFile' parameter but where can I set the logging properties? (in older portals I could use logger.xml in my portal component project and set a custom log file but as far as I understand 'logger.xml' is not supported anymore and its parameters are ignored).
    Where can I find the documentation for setting logging properties for portal service in 7.31?
    J2EE/Portal version is 7.31 SP7.
    Regards,
    Omri

    hi omri,
    please have a look at this documentation (SpecificDestinationLogControllers - http://help.sap.com/saphelp_nw73ehp1/helpdata/de/2b/09343e32ff1033e10000000a114084/frameset.htm)
    regards,
    christian

  • Custom Logging

    Hello,
    I have a simple runbook that I use to delete machines from both AD and Config MGR. I currently run this runbook manually on a weekly basis but would like to make this runbook available to a few more folks. My input for this runbook is a csv and since there
    isnt anything stopping someone from deleting a workstation they shouldn't I would like to do some custom auditing on this runbook. I can very easily pass the date / time, and the machine name and write it to a SQL DB but how do I get who ran the runbook. It
    seems like this should be easy to get but I cant think how. Has anybody out there tried this type of custom logging?

    Hey Rooster,
    When we talk about making automation available to our end users usually it makes sense to put some sort of request system infront of the automation and do detailed logging there. That system then has permissions to invoke Orchestrator (or place a generated
    CSV file in the fileshare location your Orchestrator WF is monitoring)
    Here are some blog posts talking about this.
    http://blogs.technet.com/b/systemcenter/archive/2014/01/14/service-management-automation-and-sharepoint-mvp.aspx
    http://opalis.wordpress.com/2013/04/03/triggering-orchestrator-runbook-from-service-manager/

  • Custom logging formatter not used (XML instead).

    I use the built in Java logging API to write log messages to a file. As the SimpleFormatter does not quite the format we would like to have, I wrote a custom formatter and set it in the logging properties file:
    java.util.logging.FileHandler.formatter = my.LogFormatter
    This works well in a standalone application. But using the same in my servlet application, the log fie does not use my custom formatter but the (default?) XML formatter. I multichecked the JAR that is in cluded in the WAR file and it has my custom LogFormatter class (as the JAR is exactly the same that works in the standalone application).
    Does the servlet expect a custom logging formatter somewhere else? I tried adding it to the root directory within the WAR but this also doesn't work.

    By default, the LogManager reads its initial configuration from a properties file "lib/logging.properties" in the JRE directory.
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/LogManager.html

  • Display link if wholesaler logged in or alternate link if customer logged in?

    Hi,
    I have a website that sells products to customers and wholesalers.
    I have setup a separate secure area for both the customer and the distributor. (to view past orders/specials etc)
    In top right of my site - they can click a "Login/Register" button that takes then to the login / registration page.
    Here they login as a customer (or if a wholesaler they are asked to go to the wholesaler Login Page).
    Once logged in the top right "Login/Register' button changes to a "Hello Name" and an "Account Overview" link.
    The problem is I have to hard code the "Account Overview" link so it can only link to either the customer or wholesaler secure area overview page.
    Is there anyway I can set it to recognize if a Wholesaler or a Customer logs in and display the appropriate link?
    Any help would be appreciated.

    anonymous - See Application Link
    Scott

  • Using log4j to create custom log level in standalone batch application

    Hi all,
    I would like to use Log4j to create a custom log level so that from my standalone java batch process application, whatever error messages I can log to a log file.
    Can any one give me any pointer on this.
    Appreciate any help.

    This doesn't seem to warrant a 'custom level'. Just use Log4J as is... create a Logger object and use its error() or warn() or whatever methods are appropriate for the logging you want to do. I don't understand the reason for the question.

  • Custom Log Handler - Using Database

    Hi,
    Is it right options to store the logs details like logged in user, severity, time stamp and exception message in database, in terms of application efficiency? .. We will be using ADF BC for doing this. Just want to confirm if it will add any overhead to the application expecting the logger will be added in info, sever and fine level as and when required in the code.
    Thanks

    Log4j DB Appender is another option I can think of.
    You can also write your custom Log handler that extends java.util.logging.Handler and write to a DB Table.
    As Timo said try avoiding ADF BC. You will have to deal with transactions. Multiple AMs might slow you down
    Talking about writing to a DB. You have to weigh in the pros and cons based on your application hits, Processing it does, time it takes to insert.....
    DB operations are slower than appending to a file. If you plan to do multiple inserts on every request? It might take a hit on the App.
    If its just one DB insert per request(including redirects)/login. Based on how heavily the App used, I think its ok to write to a DB.
    I know a lot of applications that inserts a record to a table and they just work fine. An additional 30 - 60 millis will not be noticeable (Keep a dedicated connection for this activity).
    You can also think of keeping this activity async, like writing to a queue or appending to a file and have some Background Program process this.

  • Custom Logging - Either via Console or a Tool...

    Anyone know of a way to create custom logs in the Console? I am trying to audit specific events and would like to create a log that would show just those. Anyone know of a tool that logs events such as: failed attempts to read files, delete files, run programs, etc. I use ARD to run usage reports, but a specific tool or ability to log would be awesome. Thanks for any help!

    we use kiwi log viewer (about $30). currently it allows you apply color filters based on words, grep searches, etc., but there's no way to filter out stuff you don't want to see or to only display search results. developer says it's on the roadmap. other options are splunk (no experience, full blown version is very expensive, there's a free version...kiwi is more reasonably priced).
    don

  • How to handle logging in SOA 11g

    Hi All,
    I have a SOA Suite 11g R3 installation running on WLS in Windows. Can someone help me in refering on how can we set log levels in SOA11g. In 10g, we had to set this at the BPELConsole and for certain others using EM, but im not able to locate a corresponding knob in 11g to control logging. Sometimes the server starts logging and everything is sent to the command window that i start the soa_server in and chockes the environment.
    Kindly let me know the corresponding equivalent of handling logging in SOA 11g as what we did in SOA10g using BPELConsole.
    Many thanks,

    In the em, go to SOA --> SOA-Infra
    Right click on SOA-Infra and go to Logs --> Log Configuration
    In Log levels tab, expand oracle.soa --> oracle.soa.bpel
    Now you may set the desired log level here.
    You may be interested in -
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10226/bp_mon.htm
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e13739/logging_services.htm#i1172535
    Regards,
    Anuj

  • Locking Transcation and customized log messages

    Hi
    I wanna to lock a specific transcation and if users are executing the transaction code then a customized log meesage should popup or display and the transaction should terminate. Is there a way to do by std way instead of handeling it in coding? I dont wanna to create authroization objects as it is not a time to experiment with that considering the system landscape complexity.
    thkx
    Prabhu

    Hi,
    Use Authority Check statement.If the authority check fails raise an message.
    Regards
    Krishna

Maybe you are looking for