Forum Discussion

markj_58101's avatar
markj_58101
Icon for Nimbostratus rankNimbostratus
Feb 09, 2016

AD Group Resource Assign APM

Looking for some assistance with setting up assignments of resources based on the users AD group. I want it so that when a user is a member of a specifc group, they are assigned a specific resource.

 

I currently have this for my visual policy editor:

 

 

In my AD resource Assign, I have some groups AD groups mapped to some resources. After that, I have an Advanced Resource Assign section (which is currently blank) I have also tried adding a Webtop in there but that didn't work either, it complained that there were no resouces. I saw another article on Devcentral saying to have Advanced Resource Assign with a blank expression placed after the AD Resource Assign (This was to assign a webtop) I am currently getting this error in /var/log/apm

 

notice apd[21572]: 01490005:5: bba6fed8: Following rule 'fallback' from item 'Advanced Resource Assign' to ending 'Allow'

 

notice apd[21572]: 01490102:5: bba6fed8: Access policy result: LTM+APM_Mode

 

In the browser, I get a "Page Can't be Displayed"

 

I can't seem to find any documentation detailing how to set this up end to end to not sure if I am doing something wrong here. I am currently running 11.6 HF6.

 

Any help appreciated.

 

9 Replies

  • You will need to have an AD Query after your AD Auth Action. The AD Query will populate the variable needed to do the assignments.

     

    Can you give that a try and see if you have better results?

     

    The log statement saying "LTM+APM_Mode" means that no resources were assigned to the session. If you still have issues can you please post screenshots of the config inside the assigns?

     

    -Seth

     

  • Thanks for your response Seth. I was wondering what the LTM+APM means but makes sense now, thanks.

     

    I did try with the AD query in before but I wasn't having any luck (_Access was denied by the access policy. This may be due to a failure to meet access policy requirements_)

     

    I have attached a screenshot of how I setup the AD query and the resource assign. I left the search filter blank because I believe that way it just retrieves all the groups? To give you some background on what I want to do. At the beginning of the policy editor, I want to have multiple URI's, each URI will be it's own branch on the policy editor. Then, I want to create a macro for the AD query and resource assign. Then I want each branch to be able to call the macro to assign the resources for it's webtop. Not sure how that will work for the Webtop, I don't think you get a generic Webtop that can be used in the macro and where you would assign the Webtop?

     

     

    Many thanks

     

    • GMB_284399's avatar
      GMB_284399
      Icon for Nimbostratus rankNimbostratus

      I had to delete then re-add the Resource Assignment in the macro, it worked after that.

       

  • You really need to review the logs to see what is happening. Please turn the log level to "Informational" if it is not already and run a test. Look for the session ID in the logs and follow the VPE flow by the log statements. If you don't see anything that stands out please post the logs (just for the session that failed) here if you want and we can give them a look.

     

    -Seth

     

  • Thanks Seth

     

    I have been looking at the logs and it seems that it fails on the AD Query:

     

    Feb 10 14:50:44 testapm1 notice apd[21572]: 01490005:5: ad9e33e0: Following rule 'fallback' from item 'AD Query' to ending 'Deny'

     

    Feb 10 14:50:44 testapm1 notice apd[21572]: 01490102:5: ad9e33e0: Access policy result: Logon_Deny

     

    Right after that, it returns:

     

    Feb 10 14:50:44 testapm1 info apd[21572]: 01490004:6: ad9e33e0: Executed agent '/Common/Access-Policy_end_deny_ag', return value 0

     

    Then it starts returning all the details about my account (act_active_directory_query_ag.attr.xxxxxx) After it's finished returning all the AD session variables, the logs stop. That's when I get an error on the web page.

     

    It's a bit strange, because for some reason it fails on the AD query but then it returns all the details about my account after that. I would have thought if it failed on the AD Query then it would stop right there because that branch goes straight to a Deny.

     

  • I actually managed to get it working now. I ended up moving AD group resource assignment to the fallback leg of the AD Query. Not sure if that is by design or not.