Sunday, June 13, 2010

SID in AX Security Tables

The problem arose where we are trying to restore the live production databases into a test environment

Historically DAX has had its own users when it was integrated to windows security model the windows user's SID (SID is a unique identifier for a user or a group in Windows) was used to act like a user.

SIDs are specific for a particular domain, i.e. domain admin accounts thus in two different domains the same user will have different SIDs.

The problem is that when the DAX database is moved from the production environment to a test environment it carries the SID of the production environment in the security tables which is different from a SID of an account that is being used in the test environment.

The solution is as below:

* find out the SID of the user you use to run a DAX client after DB migration
o you can use whoami tool shipped with Windows - just run whoami /user in a console and you'll see a long string like S-1-5-21-15052... next to your login;
o if you use WinXP or an earlier Windows version you'll have to install Windows XP Support Tools to get the tool and afair it has a slightly different command line params... you'll need to use /sid option instead of /user
* run a tool like Ms SQL Management Studio and connect to the restored DAX database
* navigate to the UserInfo table, open it in a grid and update the SID value for user "admin" with the one you've found out previously
* start DAX client - you should login as an admin now

1 comment:

Anonymous said...

Sometimes seasons reasons some shoes may be[url=http://niketrainersuksale.webeden.co.uk]http://niketrainersuksale.webeden.co.uk[/url]
temporarily will not have a chance to[url=http://tomscanadaoutlet.snappages.com]Toms Shoes Outlet[/url]
wear such shoes we have to[url=http://addnikecanadastore.snappages.com]Nike Canada[/url]
properly back up for sale[url=http://toplouboutinuksales.webeden.co.uk]http://toplouboutinuksales.webeden.co.uk[/url]
within a[url=http://louboutintrainersuk.blog.co.uk]Christian Louboutin Sale[/url]
right area in order to avoid unnecessary damage of shoes[url=http://salelouisvuittonuk.webeden.co.uk]Louis Vuitton Bags[/url]

If the insole is definately bad, [url=http://cheapnikeblazersuk.webeden.co.uk]Nike Blazers Women[/url]
it'd could do with a gentle brush and water gently scrub. Needs to be noted that,[url=http://justlouboutintrainersuk.webeden.co.uk]http://justlouboutintrainersuk.webeden.co.uk[/url]
avoid using chemical cleaning agents cleaning, or some may result in the insole the surface of cloth off.[url=http://shoppradabagsuk.webeden.co.uk]Prada Outlet[/url]