Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
MICROSOFT DYNAMICS AX 2012 R3 SECURITY
MICROSOFT DYNAMICS AX 2012 R3 SECURITY

MICROSOFT DYNAMICS AX 2012 R3 SECURITY: A quick guide to planning, designing, and debugging operational-level security for Microsoft Dynamics AX 2012 R3 implementations

Arrow left icon
Profile Icon Ahmed Mohamed Rafik Moustafa
Arrow right icon
$27.98 $39.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Jun 2015 106 pages 1st Edition
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Ahmed Mohamed Rafik Moustafa
Arrow right icon
$27.98 $39.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Jun 2015 106 pages 1st Edition
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

MICROSOFT DYNAMICS AX 2012 R3 SECURITY

Chapter 2. Security Coding

In this chapter, we are going to illustrate X++ security coding and how to use Code Access Security (CAS). We will also talk about the new compiler enhancement in Microsoft Dynamics AX 2012 R3 and how it affects the compiling process within the system and the debugging tools. Finally, we will introduce the new features in Microsoft Dynamics AX 2012 R3.

The topics covered in this chapter are as follows:

  • The fundamentals of security coding using X++
  • Using Code Access Security
  • Security debugging
  • Security for the Display and Edit methods
  • The Table Permissions Framework

The fundamentals of security coding using X++

In this chapter, we will cover the trustworthy computing features of Microsoft Dynamics AX 2012 and how they affect security coding.

X++ is an object-oriented language like any other programming language, for example, C++. It allows developers to design data types, tables, queries, forms, menus, and reports. It also allows access to the application code by launching the X++ code editor.

X++ has a lot of features and tools that help you edit the structure of the application and avoid common programming pitfalls that can prevent you from implementing X++. It includes keywords that match most of the keywords in standard SQL.

Using Code Access Security

The CAS framework is a mechanism developed to protect systems from dangerous APIs that are invoked by untrusted code. It simply allows two pieces of code to communicate in a manner that can't be compromised.

To know what untrusted code is, we will first define what trusted code is. Trusted code is defined as code from the AOT running on the Application Object Server (AOS), meaning the code must be written by a trusted developer. This is because the developer privileges and permissions are the highest level of permission over the entire application. In other words, if you execute the code outside the AOS on a client, there is the possibility that it was altered on the client side before execution, thus rendering the code untrusted. The following figure demonstrates this mechanism:

Using Code Access Security

Tip

For more information on CAS, visit Microsoft MSDN: http://msdn.microsoft.com/en-us/library/ff648663.aspx.

The main purpose of CAS is securing the tunnel between an API and its consumer...

Security debugging

The debugger tool provides debugging capabilities for X++ developers and it also communicates with the Microsoft Dynamics AX client, .NET Business Connector, or batch jobs that run on the Microsoft Dynamics AX server.

We're going to illustrate the following:

  • Installing the debugger tool
  • Enabling the debugger tool
  • Adding users to the debugging user local group
  • The debugger user interface
  • Debugger shortcut keys

First you have to make sure you have installed the debugger tool from Microsoft Dynamics AX. Go to Setup | Install | Microsoft Dynamics AX components.

Installing the debugger

In this section, we will see how to install the debugger tool.

From the Microsoft Dynamics AX 2012 Setup window, you can install the debugger to add, remove, or modify any component that is installed or should be installed:

Installing the debugger

To begin installing the debugger component, go through the following steps:

  1. From the Microsoft Dynamics AX Setup window, go to Install | Microsoft Dynamics AX components.
  2. Provide...

Security for the display and edit methods

The display method is not a physical field in a table but is a method to display information from another table or resource. In simple words, it can expose data from any table that includes the display keyword as a method modifier. The methods that can use the display method modifier are as follows:

  • Table
  • Form
  • Report
  • Report Design
  • Data Source

Note

The display method modifier is any method that includes the display keyword as a method modifier. It indicates that the method has a return value that can appear on a form or a report.

The following example is a standard display method from the SalesTable table:

display CustName customerName()
{
    return this.partyTable_CustAccount().Name;
}

To create a display method, follow these steps:

  1. Place the display keyword in front of the method's return type. For example:
    display Amount amount()
  2. Determine the return type. The return type should be an extended data type. A display method returns a calculated value like...

The Table Permissions Framework

The Table Permissions Framework (TPF) enables administrators to add an additional level of security to tables that are located in the database and available through the AOT. TPF adds table-level security that verifies the access rights to the requested data. To enable TPF, the administrator must specify a value AOSAuthorization property on a specific table in the AOT, and the following table describes the possible values of the AOSAuthorization property:

Value

Description

CreateDelete

Create and delete authorization validation is performed on the AOS

UpdateDelete

Update and delete authorization validation is performed on the AOS

CreateUpdateDelete

Create, update, and delete authorization validation is performed on the AOS

CreateReadUpdateDelete

All operations are validated on the AOS

None

No AOS authorization validation is performed (default value)

You can also add additional rules for validation by using the following table methods (use...

The fundamentals of security coding using X++


In this chapter, we will cover the trustworthy computing features of Microsoft Dynamics AX 2012 and how they affect security coding.

X++ is an object-oriented language like any other programming language, for example, C++. It allows developers to design data types, tables, queries, forms, menus, and reports. It also allows access to the application code by launching the X++ code editor.

X++ has a lot of features and tools that help you edit the structure of the application and avoid common programming pitfalls that can prevent you from implementing X++. It includes keywords that match most of the keywords in standard SQL.

Left arrow icon Right arrow icon

Description

If you are a developer or IT administrator with background experience in a programming language with X++ and the MorphX development tool, this book is for you. The book assumes familiarity with basic security terminologies and the basics of Dynamics AX.

Who is this book for?

If you are a developer or IT administrator with background experience in a programming language with X++ and the MorphX development tool, this book is for you. The book assumes familiarity with basic security terminologies and the basics of Dynamics AX.

What you will learn

  • Develop and design a security artifact using the AOT, and validate and test security privileges
  • Learn how to use Code Access Security (CAS) to protect systems from dangerous APIs
  • Install the debugger tool to debug and validate the security roles within the AOT
  • Discover the use of the Table Permissions Framework to add an additional level of security to tables
  • Design extensible data security policies, set policy contexts, and debug and validate the XDS policies
  • Extend your organizational model to support ISV, partner customization, or configuration scenarios
  • Secure the access to the Enterprise Portal web elements and design data access security

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 19, 2015
Length: 106 pages
Edition : 1st
Language : English
ISBN-13 : 9781782175544
Vendor :
Microsoft

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jun 19, 2015
Length: 106 pages
Edition : 1st
Language : English
ISBN-13 : 9781782175544
Vendor :
Microsoft

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 169.97
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
$65.99
Microsoft Dynamics AX 2012 R3 Financial Management
$54.99
MICROSOFT DYNAMICS AX 2012 R3 SECURITY
$48.99
Total $ 169.97 Stars icon
Banner background image

Table of Contents

6 Chapters
1. MorphX Security System Chevron down icon Chevron up icon
2. Security Coding Chevron down icon Chevron up icon
3. Developing Extensible Data Security Chevron down icon Chevron up icon
4. Extending the Organization Model Chevron down icon Chevron up icon
5. Enterprise Portal Security Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
Tommy Skaue Aug 19, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Working with security in AX2012 is quite different compared to earlier versions of Dynamics AX. One huge difference is the need to have some basic understanding of how security is defined within the application itself. This book starts off with laying down some basics of how security artifacts are defined in the AOT and further builds on top of that skillset. Debugging your security is covered, and also how security through the Extensible Data Security (XDS) is setup in Dynamics AX. The final chapters discuss how to extend the organization model and finally how to secure your Enterprise Portal (EP) artifacts.It is a compact book with less than 80 pages and a handful chapters. The content is built for Dynamics AX2012 R3, but is relevant for earlier versions of AX2012. If you're already an AX developer, you can skip over most of developer basics. As someone who is curious to understand the mechanics under the hood, I could have wished for more in depth details, but the book does a fairly well job covering security for AX2012 R3.
Amazon Verified review Amazon
Harish Mohanbabu Aug 21, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Security in Dynamics AX is a crucial area often overlooked in normal AX implementations. In AX 2012, security has become more significant due to the complexity and scale of standard functionalities and features of the product. Therefore I went through this book with much interest. There are plenty of security related info for both experienced and novice AX developers and administrations in this book.The author has covered security aspects such as CAS, TPF and XDS so credit to him. The technical details covered in the book are accurate. The book also briefly touches up on an interesting but often overlooked feature called 'organization hierarchies'. I would have liked to see contents such as end to end example such as managing security roles and underlying processes such as assigning users to this role etc, explanation of pain points surrounding security, security development tool (which works with R3 version) etc. But overall, this book offers decent insight into the security domain within Dynamics AX.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.