AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.09.2012, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Microsoft Dynamics AX 2012 Form based Authentication provider has wrong connection string when the aspnetdb is created on a separate server.
Источник: http://blogs.msdn.com/b/axsupport/ar...te-server.aspx
==============

Lately we run into following issue. Following the WhitePaper Flexible Authentication in Microsoft Dynamics AX 2012 you create Form Based authentication provider using following command:

Add-AXSharepointClaimsAuthenticationProvider -Type Forms -Name FormsAuth - SigningCertificate $SigningCert -Credential $Cred -Port 7000 - SSLCertificate $SSLCert
That works perfectly fine when you aspnetdb database is located on the same server as SharePoint. If you have database on other server then in web.config located in:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\\

So if you look on above example it will be

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\FormsAuth\

You can see that connectionString tag has following value:







In situation when your aspnetdb would is on different server in the minute you try to log using Form Based authentication you will get error and you will be unable to login. You can work around it in two ways:
  1. Add parameter –ConnectionString to above command with correct connection string (this solution is preferable). So the command would look like:
Add-AXSharepointClaimsAuthenticationProvider -Type Forms -Name FormsAuth -SigningCertificate $SigningCert -Credentail $Cred -Port 7000 -SSLCertificate $SSLCert -ConnectionString "Data Source=DAX2012;Initial Catalog=aspnetdb;Trusted Connection = True”
  1. If you already run the command you can:
    1. Manually change connection string in web.config as given above
    2. Delete file C:\Windows\System32\WindowsPowerShell\v1.0\powershell.config if it exists. If you don’t delete above file it can be that when you run command
New-AXUser -AccountType ClaimsUser -AXUserId jdd -UserName johndoe -UserDomain FormsAuth -CreateInProvider -ClearTextPassword "Yukon!!90"
You can get error

New-AXUser : The entry 'FormsDB' has already been added. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\Layouts\FormsAuth\web.config line 39)










Источник: http://blogs.msdn.com/b/axsupport/ar...te-server.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM and SQL Server 2012 - Better Together Blog bot Dynamics CRM: Blogs 0 08.03.2012 04:32
emeadaxsupport: 3. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - Error executing code: Wrong argument types for comparison Blog bot DAX Blogs 1 08.02.2012 08:53
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
dynamics-ax: Modeling the world, with Microsoft Dynamics AX 2012 Blog bot DAX Blogs 0 25.01.2011 09:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 05:14.