How to create a Web Application when SQL is running in SQL Authentication mode ?

Hi,
I a have the following config:
SQL server 2012 with mixed authentication, running in the LAN
IIS server with SharePoint 2013 SP1, running in a DMZ --> SharePoint contacts the SQL server with a SQL login (not a Windows login, the required port has been opened in the FW)
SharePoint is working fine but when I want to create a new Web Application, I get an error: "Could not connect to MySQLServer\MySQLInstance,MyPortnumber using integrated security: Cannot
connect to database master at SQL server. The database might not exist, or the current user does not have permission to connect to it."
I think, since I use SQL authentification,  I have to use PowerShell. I found a script on the Internet but this script was not made to create a Web App which a SharePoint installed with SQL authentication.
Can you help to adapt the script ?
Thks
THE SCRIPT Documentation:
New-SPWebApplication -ApplicationPool <String> -Name <String> [-AdditionalClaimProvider <SPClaimProviderPipeBind[]>] [-AllowAnonymousAccess <SwitchParameter>] [-ApplicationPoolAccount <SPProcessAccountPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>] [-AuthenticationMethod <String>] [-AuthenticationProvider <SPAuthenticationProviderPipeBind[]>] [-Confirm [<SwitchParameter>]] [-DatabaseCredentials <PSCredential>] [-DatabaseName
<String>] [-DatabaseServer <String>] [-HostHeader <String>] [-Path <String>] [-Port <UInt32>] [-SecureSocketsLayer <SwitchParameter>] [-ServiceApplicationProxyGroup <SPServiceApplicationProxyGroupPipeBind>] [-SignInRedirectProvider
<SPTrustedIdentityTokenIssuerPipeBind>] [-SignInRedirectURL <String>] [-Url <String>] [-WhatIf [<SwitchParameter> ]] [<CommonParameters>]
The Example:
$siteName = “PowerShell for SharePoint”
$port = 80
$hostHeader = “lab.ps4sp.com”
$url = “http://lab.ps4sp.com&#8221;
$appPoolName = “PS4SPAppPool”
$managedAccount = “PS4SPspservice”
$dbServer = “PS-SQL”
$dbName = “PS4SP_SP2010_LAB_ContentDB”
$allowAnonymous = $true
$authenticationMethod = “NTLM”
$ssl = $false
New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount “$managedAccount”) -DatabaseName $dbName -DatabaseServer $dbServer -AllowAnonymousAccess: $allowAnonymous
-AuthenticationMethod $authenticationMethod -SecureSocketsLayer:$ssl
Charles

Hi Scott,
Based on your aticle, I changed my script by adding the credential, but I still have an error.
Il also put the SQL specific port in the $dbServer variable.
Any idea ?
MY SCRIPT:
$siteName = "TEST Site"
$port = 80
$hostHeader = "sharepoint.test.be"
$url = "http://sharepoint.test.be"
$appPoolName = "TestAppPool"
$managedAccount = "DISNET\administrator"
$authenticationMethod = "NTLM"
$dbServer = "DSPORT-SQL02\DSPORTPRDEXT,50123"
$dbName = "WSS_TEST_Content"
$dbServer_secPassword = ConvertTo-SecureString "MySQLPassword" -AsPlaintext -Force
$dbServer_Creds = New-Object System.Management.Automation.PsCredential "DMZSharePointLoginSQL", $dbServer_secPassword
New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount "$managedAccount") -AuthenticationMethod $authenticationMethod -DatabaseName
$dbName -DatabaseServer $dbServer -DatabaseCredentials $dbServer_Creds
Charles

Similar Messages

  • SCOM 2012 R2 - How to create a Web Application Monitor for an URL requiring certificate authentication

    Hi All,
    It looks like in SCOM 2012 there are two ways to monitor a web application (URL monitoring):
    Way no 1: (Using the Web Application Transaction Monitoring template)
    Way no 2: (Using the Web
    Application Availability Monitoring template)
    We have created some monitors using
    Web Application Availability Monitoring to check if URL is up without any authentication method.
    However, we have few URLs for which we need Client Certificates to be used for accessing them but found no option in SCOM 2012 to configured the certificates. 
    I have searched a lot on the Tech Net library but no clue.  Does anyone know how to successfully monitor an URL requiring certificate authentication on SCOM 2012 ? or, at least, using no matter which method?
    Thanks.
    Regards,
    Raju.

    Hi,
    Based on my research, it is not possible by using the built-in monitoring templates. Both of them handles “normal”, server-side, SSL-certs, and the transaction monitor handles basic/digest/NTLM authentication, but client certificate based authentication
    is not a configurable option.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to create the Web application designer

    Hello BW Guru's,
    how to create the WAD... step by step procedure and where to save the report and how to excute the report.
    please send as soon as possible.
    Thanks
    Sudha

    hi,
    you can also refer to the following links.
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f11a7e3-0601-0010-52a2-c3fbbdb068da
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/a8cd1f71-0a01-0010-4783-f119b6132d25?rid=/library/uuid/cea68c65-0901-0010-f5a4-fd34189d8078 [original link is broken]
    hope it helps,
    regards,
    Parth.

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

  • Runtime error and unable to create new web application

    Hi
    when i create new web application i faced this error Runtime error and unable to create new web application.
    in this farm we have
    2 wfe servers
    2 application servers.
    adil

    Adil,
    There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
    you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
    You can refer few similar threads here -
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to create the web template

    Hi BW Experts,
       how to create the web template.....!
       I just want to know what is the use of Web template. i want to display the report
    in WEB-UI screen ( sap-crm 7.0 portal ) can any one help me please how to proceed ...!
    Thanks
    shahina..!

    Hiu2026
    Steps to follow to create WAD in WEB Template in 3.5 or 7.0 u2026u2026..
    Go to All programs and select your web application designer
    Select the button to create a new page in WAD
    Select the chart and place in the layout
    Next goto Data provider Target and select your query
    Give your report name in the given data provider screen
    Select your query in History/find/Favourites/Infoareas button
    Select your query in this screen and click OPEN
    Now we can see the data provider is assigned to the chart.
    To edit the chart you have to right click on the chart
    After right click on it we will find another screen where we can edit all the settings
    In this screen we can find NEXT click button to change our settings
    In this screen we can state the tasks (Title, units, values, range)
    In this screen we can change our background /validity/color
    In this screen we can add values to the chart
    In this screen we can add validity/positions/order/axis types to the chart
    In this screen we can change the global settings/and overview of the chart.
    This screen shows that we have customized the chart successfully
    After successful creation of the chart we have to save the chart
    Save your chart in your favorites by giving the description and technical name in the given block.
    Now execute your WAD by selecting the execute button
    The BEx Web Application Designer is a desktop application for creating Web applications with BW-specific contents. Using the BEx Web Application Designer, you can create an HTML page that contains contents such as various tables, charts or maps. This HTML page (Web application) provides the basis for not only Web applications with complex interaction, but also for Web cockpits and iViews.
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    Web Application Solutions: A Designer's Guide
    http://www.lukew.com/resources/webapplicationsolutions.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-solution-manager/bw-web-application-designer-1955944
    Feautures of WAD in 7.0
    http://help.sap.com/saphelp_nw70/helpdata/en/88/4d354277dcb26be10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6

  • Error in Creating New Web Application SharePoint 2013

    Everything was working fine but today when i try to create  a new web application i am getting the following error.It's happening whenever i am trying to create a new web application.
    The directory C:\inetpub\wwwroot\wss\VirtualDirectories\26060 is already being used by another IIS Web Site.  Choose a different root directory for your new Web application. 
    But this port 26060 was not being used before and if i try to create new web application again then the error message occurs with the port number of the new web application. 
    Please help.

    Hi HelloFragrance,
    Are you using a host header when creating these web apps? If so have you tried creating without a host header? Also are you logged in with the Server with the Admin account? Check this out: (taken from Jeremy Taylor's
    blog)
    " 1. Ensure you have a proper dns name / entry in the hosts file of your server for the new url you are wanting to create.
    2. Ensure you have typed in the ‘host header’ typed in when creating the new web application.
    3. If this doesnt work, open IIS Manager – Start>run> inetmgr> and verify the home directory – it could be located on a different drive."
    Also have you tried creating through Powershell and see if you run into the same issue or not?
    http://technet.microsoft.com/en-us/library/ff607931(v=office.15).aspx
    Hope this helps!
    Thanks!
    BlueSky2010
    Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
    "Mark As Answer"

  • How to create a new application user by my application?

    Hello,
    I want to give the user of my application the possibility to create a new application user if necessary. The creation of a new user should be realized in my application. I tried to find the answer in the apex user guide, but I haven't found it. Can somebody tell me how to create a new application user in the implemented application (one page in application for creating users for my application)?
    Thanks,
    Bettina

    Hello Bettina,
    You can do that using the API: www_flow_fnd_user_api.create_fnd_user. If you look at that procedure in SQL Dev (or TOAD or whatever you like), you can see an example and the description of the arguments.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Powershell script for creating SSL web application

    Hello,
    I am trying to create SSL web application in Sharepoint 2010 using power shell and I am using the below script.
    $WebApp = New-SPWebApplication -ErrorAction SilentlyContinue -Name $WebApplicationName -url $WebApplicationUrl -port $WebApplicationPort
    -ApplicationPool $AppPool.Name -ApplicationPoolAccount $AppPoolManagedAccount.Username -AuthenticationProvider $AuthProvider -DatabaseName
    $ContentDatabaseName
    -SecureSocketsLayer
    The web application gets created and when I try to create a site collection and access it, the page is inaccessible.
    So I tried to bind the url to a new certificate from inetmgr and site collection still doesnt show up.
    I tried manually through central admin and everything worked well including the binding to SSL.
    Is there anything wrong with script, if yes what more do I need to add into this?
    Thanks.

    The issue is solved, the problem was that the parameter -URL shouldn't be any random url but it should be
    https://yourservername/ and then configure the binding to a self-signed certificate.
    So John I think the command rather should be
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://yourservername"  -Port 80 -ApplicationPool "ContosoAppPool"                                                           
     than                                                                                                                                                         
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://www.contoso.com"  -Port 80 -ApplicationPool "ContosoAppPool"

  • How to create file on application server?

    how to create file on application server?

    Hi,
    The following program illustrates the creation of ifle in app server and reading the file from appli server:
    DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VBELN LIKE VBAP-VBELN.
    START-OF-SELECTION.
      SELECT *
        FROM VBAP
        INTO TABLE ITAB
    WHERE VBELN = P_VBELN
        PERFORM WRITE_DATA.
        PERFORM READ_DATA.
    *&      Form  WRITE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA.
    OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
    LOOP AT ITAB.
    TRANSFER ITAB TO 'VBAP_DATA'.
    ENDLOOP.
    CLOSE DATASET 'VBAP_DATA'.
    CLEAR: ITAB, ITAB[].
    ENDFORM.                    " WRITE_DATA
    *&      Form  READ_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA.
    OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
    DO.
    READ DATASET 'VBAP_DATA' INTO ITAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    APPEND ITAB.
    ENDDO.
    CLOSE DATASET 'VBAP_DATA'.
    LOOP AT ITAB.
    WRITE:/ ITAB-VBELN,
            ITAB-POSNR.
    ENDLOOP.
    ENDFORM.                    " READ_DATA
    If it is helpful rewards points
    Regards
    Pratap.M

  • How to create Remote Desktop Application in C# or port it from HTML5/JS project ?

    Hi
    How can create Remote Desktop Application in C# template ? I were searching on google but not found example or API for this.
    If can, please suggest for me some solution, example and document.
    And I have JavaScript project template Remote Desktop Application. Can i port it to c# ? Or use Webview to show it ?
    I were create demo use webview to show it but it not run. Maybe i do some mistake or can't be do it.
    Thanks.

    I have no other options.  We already provide the RDP plug-in for JavaScript. I'm not sure what else is needed for this.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
    undefined objects and unknown namespaces.
    My project needs work with C# Windows Store. So I need RDP on C#, not JS. If we don't support C#, do we have a RDP spec on Windows 8.1 so that we can follow that spec to implement with native code to support RDP?

  • How to create a web template with company logo

    how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
    2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
    thanks to you all

    Hi
    1) Please read
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
    2) Create a condition in the Query Designer: Use a formula variable
    See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
    Heike

  • How to create A web services step by step and their uses

    How to create A web services step by step and their uses with their T-Codes
    pls dont send any links
    thank you
    Regards,
    Jagrut Bharatkumar Shukla

    Hi
    Use the Tcode <b>WFWS</b> to create the Web service
    enter the Transaction to whih you wants create the web service and save
    Regards
    Anji

  • How to create the composite application in CAF

    Hi all,
    I am novice to the CAF. Till now i didn't implement a single application.
    any one can give me steps for how to create the composite application in CAF not in NWDS by using Netweaver 2004s.
    I opened CAF default page it showing admin tools ,test tools etc which i need to use.
    Best Regards
    Srikanth

    Hi Srikanth,
    Check out the tutorials for composite application framework here:
    SAP Composite Application Framework - CAF Tutorial Center [original link is broken]
    Johan

  • How to create a web instance in weblogic?

              Dear All,
              I want to know how to create a web instance in weblogic server?
              Furthermore , where can i get more info. about the weblogic
              server , including how to use those examples pages provided from
              weblogic server, sampling of procedure to config each service ,
              e.g EJB , JSDB , JTA , etc., .
              thanks,
              chris
              

    Read the new JSP1.1 and servlet 2.2 specific for more information on
              this. You can deploy several jsp files in a single war file on a server.
              -- Prasad
              chris lee wrote:
              > Dear Prasad Peddada
              > Thank you for your helpful information.
              > I've read the page you have mentioned, I want to know
              > if I've serval pages written in jsp, how should I do if I
              > want to access those pages under the weblogic server?
              > Furthermore, Does the 'applicantion' mention in the paragraph
              > is the web instance I mentioned before?
              >
              > Thanks,
              > chris
              >
              > Prasad Peddada <[email protected]> wrote:
              > >http://edocs.beasys.com/wls/docs60/index.html
              > >
              > >-- Prasad
              > >
              > >chris lee wrote:
              > >
              > >> Dear All,
              > >> I want to know how to create a web instance in weblogic
              > >server?
              > >> Furthermore , where can i get more info. about the weblogic
              > >> server , including how to use those examples pages provided
              > >from
              > >> weblogic server, sampling of procedure to config each
              > >service ,
              > >> e.g EJB , JSDB , JTA , etc., .
              > >>
              > >> thanks,
              > >> chris
              > >
              Cheers
              - Prasad
              

Maybe you are looking for

  • GR/GI Slip

    Hi All, I made all the configurations required for GR/GI slip and was able to print collective slip. Now i have tested a scenario where i have multiple line items in GR but i have checked individual slip option under header. I have maintained conditi

  • Skype+Win 8.1+ Logitech C920

    hi guys, I'm trying to use my new webcam Logiterch C920 with Skype but I don;t know why, I can't have video call.  I have sound but no image. My configuration is: Win8.1/64bits. I tried with older Skype version, works for a few times, but after a whi

  • BTE for Payment Proposal

    Good Day Experts, I have a requirement from my client. It is to have an extra data populated in payment proposal for payment review process. I offered to identify a field (Example: Reference 2) for populating the data in Payment Proposal. For the exa

  • Problem to spool when Executing reports in background

    Hi experts, I  executed  reports in backgroud , but when i checked in SM37 the generated spool not given proper layout format. This problem occurs when report having more columns. plz help me earliest. Regards, jyotsna

  • How can I build a composite component?

    I heard that Java Swing can support composite component, meaning combining several component's functionalities onto one component. Does anyone know what class and methods I should choose to build such a component? Thanks for helping!