Problems to restrict access to a page when the user belong to more than 1 group

I have realized that Dreamweaver on a coldfusion document only works fine when the user only belongs to a single group, this is because the code supplied by dreamweave when you use the option "Restrict access to a page" at "Server behaviors" it assumes that the user only have one group as you can see on this line created automaticly by dreamweaver:
<cfif MM_Username EQ "" OR MM_UserAuthorization EQ "" OR ListFind("admin",MM_UserAuthorization) EQ 0>
MM_UserAutorization has the value of the field assigned for the list of groups or levels, as you can see it could work if we reverse the parameters of the listfind function but the problem would be if we grant the access to more than one group because the sentence would be like this:
<cfif MM_Username EQ "" OR MM_UserAuthorization EQ "" OR ListFind("Admin,Manager",MM_UserAuthorization) EQ 0>
so both paramethers are lists therefore no user will get access to the page.
I am trying to make a work around to fix this problem but I don't know how to get the name of the page since the Application.cfc so I can validate the access to this page against tables on my database.
Does someone have a work around or a tip how to fix this problem?
Thanks in advance.
AG

Seems like you have a problem with your group names.ctxLdap.modifyAttributes(groupName,member);Ensure that the value of your variable groupName is a a valid distinguished name.
Note that an OU (organizationalUnit) is not a group. You do not add users to OU's, you create users in OU's.

Similar Messages

  • Restrict the user to put more than 22 digits

    hi Friends,
    i am using jdeveloper 11.1.1.6.0.
    using below code for price , i want to restrict the user to give more than 22 digits.
    if user will put more than 22 digits , system won't allow to write the digits.
    <af:inputText value="#{rate.Price}" id="it2"
    autoSubmit="true"
    disabled="#{pageFlowScope.PriceBean.updatesAllowed ne 'Y'}"
    rendered="#{rate.RateType eq 'F'}">
    <af:convertNumber type="number"
    maxIntegerDigits="22" maxFractionDigits="12" groupingUsed="false"/>
    </af:inputText>
    but it is not working.
    any useful comments .
    Edited by: 964331 on Mar 22, 2013 4:06 AM

    Hi,
    use maximumLength="22"
    <af:inputText value="#{rate.Price}" id="it2" maximumLength="22"
    autoSubmit="true"
    disabled="#{pageFlowScope.PriceBean.updatesAllowed ne 'Y'}"
    rendered="#{rate.RateType eq 'F'}">
    <af:convertNumber type="number"
    maxIntegerDigits="22" maxFractionDigits="12" groupingUsed="false"/>
    </af:inputText>
    in your inputtext
    Regards,
    Vikas
    Edited by: 812903 on Mar 25, 2013 12:32 AM
    Edited by: 812903 on Mar 25, 2013 12:32 AM
    Edited by: 812903 on Mar 25, 2013 12:58 AM
    Edited by: 812903 on Mar 25, 2013 12:58 AM

  • Wmi script to find out the time when the user was added to local administration group

    Hi Friends,
    i need a script/query based on wmi/wql that find out the time when the user was added to local administration group on this computer
    Regards
    Tanoj
    OSLM ENGINEER - SCCM 2007 & 2012

    WMI does not keep security information.
    Unless you have enabled auditing, this information is not retained in any way.
    If auditing is enabled, you can write a powershell script to look for the specific event in the eventlog. More specifically, you should look for all security events with id 4732 containing the group.
    this one command does the trick
    get-eventlog -logname security -instanceid 4732 -message *administrators*
    https://technet.microsoft.com/en-us/library/dd772663(v=ws.10).aspx
    MCP/MCSA/MCTS/MCITP

  • How to map when the Context node has more than one element

    Dear SDN Community,
      I am develping a WebDynpro java application with Adobe forms. My goal is to present a user a screen with 10 records of customer details and submit. I have created a context element for the customer(Cust#, address details etc) and mentioned the cardinality as 1..n. Now How do I bind these 10 records in my data view to first element, second element... 10th element of the context. Once the user submits, I need to write the 10 record values to Z table. Can you please advice me here.
    Thanks!
    Surya.

    solved this problem by going through the Interactive forms tutorial.

  • How to create lock object  when the total length is more than 300bytes?

    Dears:
    I want to create lock object for a add-on table , and the total length of  table's fields is more than 300 bytes.
    When I acitve this object, it will show "Total length of lock argument for table ZTEST_XXX longer than 300" error message in log.
    Is there any way  which can create  lock object when total length > 300bytes? 
    Thanks in advance.
    Best regards
    Lily

    Hi, Sudhi Karkada Sandeep Kumar 
    Thank you very much for your help.
    When the total length of  keys is more than 150bytes, lock object can't be created.
    Best regards,
    Lily

  • How to add a new excel sheet  when the row count exceed more than 65 k

    am working on business intellignence am able to export the data to excel sheet but my data exceeds the sheet limit so how to add to another sheet when the last row is hit ..???
    any suggestions warm welcome...
    help me to fix this issue...

    You've not specified how you're generating the Excel file. Are you using POI? JExcel? What?
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Problem with Query when I try to do more than one group

    Hi Sap Experts,
    Hopefully somebody can suggest a way to make my query work a bit better. I have built a stock warehouse query which prompt for item groupcode
    see below
    SELECT T1.[ItemCode] AS 'Item No.', T1.[ItemName] AS 'Item Description', T1.[BuyUnitMsr] AS 'Purchasing UoM', T1.[AvgPrice] AS 'Item Cost', T2.[OnHand] AS 'In Stock', T2.[OnHand] * T1.[AvgPrice] AS 'On-Hand Qty*Unit Price', T1.[PurFactor1] AS 'Purchasing Factor 1', T2.[OnHand] * T1.[PurFactor1] AS 'On-Hand*Purchase Factor', T2.[WhsCode] AS 'Warehouse Code', T3.[WhsName] AS 'Warehouse Name' FROM  [dbo].[OITB] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.[ItmsGrpCod] = T0.[ItmsGrpCod]   INNER  JOIN [dbo].[OITW] T2  ON  T2.[ItemCode] = T1.[ItemCode]   INNER  JOIN [dbo].[OWHS] T3  ON  T3.[WhsCode] = T2.[WhsCode]   WHERE (T0.[ItmsGrpNam] >= (N'[%0]' ) ) AND  (T0.[ItmsGrpNam] <= (N'[%1]' ) ) AND  (T2.[OnHand] > (0 ) )  ORDER BY T2.[WhsCode]
    At the moment this is working fine when I select to and from a group with the same ItemCode- however I now would like to to add 2/3 itemgroupcodes to the same query.
    So at the moment if I run this - it promts for the Item Group Code - I enter the to/from itemcode - the query gives me a breakdown of the item group , warehouse location for that item and if there is stock on hand for each location
    However I would like to be able to select 3 distinct Item groups but don't see to be able to when I adjust the query - can you add multiple parameter to add the 3 distinct itemgroup codes
    If any one could suggest a way to alter the query to allow to choose 3/4 distinct groups either using the [%1] selections or simply built into the query that would be great
    thanking you in advance for any suggestions you may have
    Paul

    Hi Gordan,
    I have been playing with the query and the conclusion i have come to is this - this way works selecting one itemgroupcode
    SELECT T1.[ItemCode] AS 'Item No.', T1.[ItemName] AS 'Item Description', T1.[BuyUnitMsr] AS 'Purchasing UoM', T1.[AvgPrice] AS 'Item Cost', T2.[OnHand] AS 'In Stock', T2.[OnHand] * T1.[AvgPrice] AS 'On-Hand Qty*Unit Price', T1.[PurFactor1] AS 'Purchasing Factor 1', T2.[OnHand] * T1.[PurFactor1] AS 'On-Hand*Purchase Factor', T2.[WhsCode] AS 'Warehouse Code', T3.[WhsName] AS 'Warehouse Name' FROM  [dbo].[OITB] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.[ItmsGrpCod] = T0.[ItmsGrpCod]   INNER  JOIN [dbo].[OITW] T2  ON  T2.[ItemCode] = T1.[ItemCode]   INNER  JOIN [dbo].[OWHS] T3  ON  T3.[WhsCode] = T2.[WhsCode]   WHERE (T2.[OnHand] > (0 ) )  AND  (T1.[ItmsGrpCod] = (N'130' )) 
    This query works by it self and selects the Item Group Code that I need to see.
    However I can't seem to get it to work If I try to add a further group code? see code below
    SELECT T1.[ItemCode] AS 'Item No.', T1.[ItemName] AS 'Item Description', T1.[BuyUnitMsr] AS 'Purchasing UoM', T1.[AvgPrice] AS 'Item Cost', T2.[OnHand] AS 'In Stock', T2.[OnHand] * T1.[AvgPrice] AS 'On-Hand Qty*Unit Price', T1.[PurFactor1] AS 'Purchasing Factor 1', T2.[OnHand] * T1.[PurFactor1] AS 'On-Hand*Purchase Factor', T2.[WhsCode] AS 'Warehouse Code', T3.[WhsName] AS 'Warehouse Name' FROM  [dbo].[OITB] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.[ItmsGrpCod] = T0.[ItmsGrpCod]   INNER  JOIN [dbo].[OITW] T2  ON  T2.[ItemCode] = T1.[ItemCode]   INNER  JOIN [dbo].[OWHS] T3  ON  T3.[WhsCode] = T2.[WhsCode]   WHERE (T2.[OnHand] > (0 ) )  AND  (T1.[ItmsGrpCod] = (N'130' ))  AND  (T1.[ItmsGrpCod] = (N'135' ))
    It just seems to fail even though I know there is data for both groups - Have i missed something in the code?
    I would like to be able to add 3 further group codes to the query as it will be for a report showing stock on hand once a month in the various locations
    Any suggestion as to who to tweak the addtional groups
    thanks
    Paul

  • Maintenance Windows - When a client belongs to more than one collection

    Hi,
    I am a little confused with maintenance windows as I have never had to use them before. I have client that belongs to Collection A with no maintenance window, and Collection B with a maintenance window.   I typically push out apps during
    the day (after they have been tested) so I never use maintenance windows.  I am deploying an application to Collection A (no MW), but it shows in the status that it is waiting for a maintenance window. I assumes it's in this state due to me creating Collection
    B with a maintenance window because I need to push something out this weekend and can only perform this from 10pm to 2am.  If you are deploying an app to a collection, shouldn't look at the maintenance window for THAT collection, instead of
    looking at all the NW for collections a client is added to?  Is there anyway around this?
    Thanks!

    Maintenance Windows are applied to and enforced by the client agent itself. The client enforces the MWs on any and all activity it performs regardless of collection targeting. In fact, clients don't know anything about collections at all. 
    Jason | http://blog.configmgrftw.com

  • How do I post to a new page when the 1st page is full?

    How do you create a bul. board where the posts go on a 2nd
    page when the first page is filled ...and 3rd page when 2nd is
    full, etc ... Maybe I can stick a wordcount in a while loop before
    the CFOutPUT Tag? Is there such a variable that holds a word count
    or better still, a line count?
    thnx a billion, please, please help!

    Check out this code-Use a cfc which will be the same for you
    and then change my query for yours in the .cfm HTHs:
    functions.cfc:
    <cfcomponent output="yes">
    <!--- Next x record function --->
    <cffunction name="nextXpage" access="public"
    returntype="struct" hint="Next x page function" output="No">
    <cfargument name="recordcount" required="Yes" default="0"
    type="numeric" hint="The total numbers of records / values">
    <cfargument name="page" required="Yes" type="numeric"
    default="0" hint="The page number that you are currently on. (for
    example URL.page)">
    <cfargument name="maxrows" required="No" type="numeric"
    default="10" hint="The maximum records / values to be displayed per
    page">
    <!--- Define the return structure --->
    <cfset var nextXpage = structNew()>
    <!--- Calculate how much page are available according to
    the maxrows displayed --->
    <cfset nextXpage.pagecount =
    CEILING(arguments.recordcount / arguments.maxrows)>
    <!--- Set the maximum rows to be displayed --->
    <cfset nextXpage.maxrows = arguments.maxrows>
    <!--- Set the currentpage --->
    <cfset nextXpage.currentpage = arguments.page>
    <!--- Set the currentpage --->
    <cfset nextXpage.recordcount = arguments.recordcount>
    <!--- Set the startrow value --->
    <cfif arguments.page eq 1>
    <cfset nextXpage.startrow = 1>
    <cfelse>
    <cfset nextXpage.startrow = (arguments.page *
    arguments.maxrows) - (arguments.maxrows -1)>
    </cfif>
    <!--- Define the previous and next values. --->
    <!--- Next values --->
    <cfif arguments.page neq nextXpage.pagecount>
    <cfset nextXpage.next = true>
    <cfset nextXpage.nextpage = arguments.page + 1>
    <cfelse>
    <cfset nextXpage.next = false>
    <cfset nextXpage.nextpage = 1>
    </cfif>
    <!--- Previous values --->
    <cfif arguments.page eq 1>
    <cfset nextXpage.previous = false>
    <cfset nextXpage.previouspage = 1>
    <cfelse>
    <cfset nextXpage.previous = true>
    <cfset nextXpage.previouspage = arguments.page - 1>
    </cfif>
    <!--- Return the structure --->
    <cfreturn nextXpage>
    </cffunction>
    </cfcomponent>
    Then on your output page where you have the info:
    .cfm page:
    <cfquery name="qrysales"
    datasource="davanzo_villa.admindb" >
    SELECT DISTINCT
    clientinfo.Id, clientinfo.RemoteAddress, clientinfo.visit,
    clientinfo.country
    FROM clientinfo
    order by clientinfo.Id
    </cfquery>
    <!--- display hit counter --->
    <cfquery name="GetHits">
    SELECT * FROM hit_counter
    </cfquery>
    <cfparam name="URL.page" default="1">
    <!--- Determine the navigation parameters --->
    <cfset functions =
    createobject("component","functions")>
    <cfset nav =
    functions.nextXpage(qrysales.recordcount,URL.page,15)>
    <table width="792">
    <h4>Total Hits: <CFOUTPUT
    query="GetHits">#hit_count#</cfoutput></h4>
    <h4>Total Unique Visitors:
    <cfoutput>#qrySales.RecordCount#</cfoutput></h4>
    </table>
    <table width="792">
    <tr><td>
    <cfoutput>Unique Visitors: #nav.recordcount# (page
    #nav.currentpage# of #nav.pagecount#)
    <cfif nav.previous>
    <a
    href="hitcount.cfm?page=#nav.previouspage#">Previous</a>
    <cfelse>
    Previous
    </cfif>
    <cfif nav.next>
    <a
    href="hitcount.cfm?page=#nav.nextpage#">Next</a>
    <cfelse>
    Next
    </cfif>
    <ul>
    <cfloop From = "1" To = "#nav.pagecount#" index =
    "pagenumber">
    <cfoutput>
    <a
    href="hitcount.cfm?page=#pagenumber#">#pagenumber#</a></cfoutput>
    </cfloop>
    </ul>
    </cfoutput>
    </td></tr>
    </table>
    <table width="792">
    <tr>
    <td>Date</td>
    <td>Visitor Number</td>
    <td>Visitor`s IP Address</td>
    <td>Visitor`s Country</td>
    <td>Path Taken</td>
    </tr>
    <cfoutput query="qrysales" startrow="#nav.startrow#"
    maxrows="#nav.maxrows#">
    <tr>
    <td>#qrySales.visit#</td>
    <td>#qrySales.id#</td>
    <td>#qrySales.RemoteAddress#</td>
    <td><cfif qrysales.country neq ""><a
    href="country.cfm?Remote_Addr=#qrysales.RemoteAddress#">#qrySales.country#</a><cfelse><a
    href="country.cfm?Remote_Addr=#qrysales.RemoteAddress#">Find
    country</a></cfif></td>
    <td><a href="hitpathdetails.cfm?id=#id#">See path
    taken</a></td>
    </tr>
    </cfoutput>
    </table>

  • You have attempted to access a secure page without the appropriate authorization. I have used this website every week and today received this error message. I can access it with Internet Explorer.

    I received an error message after attempting to log in to a website. Access prohibited. You have attempted to access a secure page without the appropriate authorization.
    I access this website at least twice a week and now I get this error message. I am able to access this website through Internet Explorer. Is there something I can do to fix this problem, so I can use Firefox?

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • Is there a way to restrict access to who can change the TVARVC table?

    Hi experts,
    We have a requirement where we need to restrict access to who can maintain the variables in tvarv table.
    How do we go about it?

    Hi,
    We had kind of a same scenario. We have table where we enter the Average Item values week wise. We wanted to restrict change and delete access to users for the entries which has already been saved. For this purpose we had created an ABAP program in the "Table Maintenace Generator".  The basic idea about this program is when you create an entry in the table or delete it, a specific event generates. We check the event id whether its "delete" or "change" on the click of save button. If it is Delete or Change, then an error message will be generated saying "You dont have authorization for deleteing or changing the data".
    You can try this approach.
    - Jaimin

  • How to access to configuration page of the router through the windows phone 7 ?

    Hi all
    I'd like to know if there's a way to access to configuration page of the router through my windows phone 7.
    I usually access the router by laptop as following: "192.168.1.1". but sometimes when I'm on my phone  I need to reboot the router through my phone other then the laptop which is not near me...
    I looked up for applications that should do the work, but unfortunately I got no positive result, so I'm reaching out to this very forum in order to find help and tricks so that I can figure it out
    thank you in advance

    Hi Happydz,
    For help using Windows Phone please post in the Windows Phone forums on
    http://answers.microsoft.com .
    The MSDN Windows Phone Development forums are for developers to discuss writing their own Windows Phone apps.
    That said, I'd expect you could connect to 192.168.1.1 from the phone's browser the same way you would from the laptop's browser.

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • How do I invoke an ActionListener on a page when the page initially loads?

    How do I invoke an ActionListener on a page when the page initially loads?
    Page 1: A user clicks on a h:commandButton and is navigated to Page 2.
    Page 2: When the page loads and goes through RESTORE_VIEW, APPLY_REQUESTS and RENDER_RESPONSE, I need to call an ActionListener in the managed bean for Page 2.
    However, if the user comes in from any other page than Page 1, the ActionListener cannot be invoked intially when the page loads. The user has a choice to click on the h:commandButton on Page2 to invoke the ActionListener.
    What is an example of invoking a method with the ActionListener signature in Java code?
    Where would I put the code to invoke the ActionListener, in a beforePhase or afterPhase, constructor?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Interesting. You're right. It doesn't happen when I click away from this site and then return. Maybe I'm barking up the wrong tree. Maybe it's the specific website I was thinking of and not Firefox. Unfortunately, I have to use that site all the time for work. I'll try contacting their webmaster. Thanks for your help.

  • How to access my hard drive when the system does not work

    how to access my hard drive when the system does not work

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

Maybe you are looking for

  • Using formcalc i would like to pass a numeric value to a numeric field when a radio button = YES

    my images were blocked do to content??? clck here for yes example http://webgis.co.okaloosa.fl.us/website/okaloosagis/gm/yes.bmp clck here for no example http://webgis.co.okaloosa.fl.us/website/okaloosagis/gm/no.bmp I have tried both below and keep g

  • Adobe Presenter 9 installation issues

    I'm installing Adobe Presenter 9 on Windows 8 MS powerpoint 2010 and receive the following error messages - have tried rebooting and reinstalling and still receive these: Exit Code: 7 Please see specific errors below for troubleshooting. For example,

  • Find user login responsibility details

    Hi All, Can somebody help me in finding the details of responsibility of user logged in. It should include both form and html pages. As of now I am trying to figure out in FND_LOGINS and FND_LOGIN_RESPONSIBILITIES. But FND_LOGIN_RESPONSIBILITIES is n

  • Camera for Chatting

    I have an iBook G4 and I believe it was the last Mac made without a camera built into it. I would like to get a camera, but Mac stopped selling them through the store. Can you suggest a camera that I could get that works. I live in Italia and I went

  • Leader Dots

    I created a paragraph style for leader dots to align $ amounts. It's not a TOC, but part of a form. It said to right justify, but the leader dots are not going all the way across the text box. They stop in the middle. How can I fix this? Thanks!