.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

FBA AD Authentication not working with Domain prefix

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
Hi all, I have setup a claims based web application with AD FBA Auth and have read the articles of the following blogs: http://blogs.technet.com/b/speschka/archive/2009/11/05/configuring-forms-based-authentication-in-sharepoint-2010.aspx http://www.sharepointchick.com/archive/2010/05/06/configuring-claims-and-forms-based-authentication-for-use-with-an.aspx Everything work except the problem that when I used the domain\username format for Auth at the login form page I get the message that the username or password is incorect. When I used only the login name, I got no message and I could login, but then a access denied message from the SharePoint Server is shown that the user has no permission.  I think the sharepoint server doesn't know that the username is the same like domain\username. Has someone a solution for this problem? Thanks and best regards, Lucian

View Complete Post

More Related Resource Links

How to authenticate local user usin ldap or non domain authentication



I created one application, and I need to authenticate local user. This user is the user who is login to his/her Personal Computer.. Main thing his that he/she does not in any DOMAIN... I want NON-DOMAIN authentication.. any how.... please help...

windows authentication issue with different domain

Webservice(frame work 2.0 & VB.NET) connecting to SQL Server 2008 in Windows Authentication mode and WS configured on App pool with domain\user id credentials and granted full access to temp folder still getting the following error. System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\ixymjcwh.0.cs' could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence) at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos) at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos) at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos) at System.Web.Services.Protocols.H

WPF consuming WCF Service with Windows Authentication - Not Working

Hi I am developing a WPF application in .NET 4.0 which calls a WCF Service hosted on the server developed in .NET 4.0. I want to use windows authentication for this purpose and it seems that it is not working and keep on giving me following error. The provided URI scheme 'http' is invalid; expected 'https'. Parameter name: via I do not want to use https as this is an Intranet application. The WCF Service inturn calls SQL Server SPs via Entity Framwork 4.0. Following is the Web.Config for WCF Service. <?xml version="1.0"?> <configuration> <connectionStrings> <add name="MsdbEntities" connectionString="metadata=res://*/MsdbModel.csdl|res://*/MsdbModel.ssdl|res://*/MsdbModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=lvapxdev\lvw_uat_02;Initial Catalog=msdb;Integrated Security=SSPI;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" /> </connectionStrings> <appSettings> <add key="IndexLoaderInstallDirectory" value="D:\Longview\Index Loader\"/> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0" /> <customErrors mode="Off"/> <authentication mode="Windows"></authentication> </syst

Office SharePoint - Mutual Authentication Failed. The servers password is out of date at the domain

I have a SharePoint Server 2010 site setup with SSL. (https://sitename.com) Whenever someone tries to save an Excel or Word document to the site through Save As or Save To SharePoint they get "Mutual Authentication Failed. The servers password is out of date at the domain controller". The desktop experience feature is installed and the webclient service is running. They also receive certificate is not available and if they wait a little bit or hit OK it will show the directory and not the website like on a regular http site.  

SOS: Cannot connect to SQL Server 2005 locally by Windows Authentication DOMAIN \ myname. But networ

Cannot connect to SQL Server 2005 locally by Windows Authentication DOMAIN \ myname. But network connection is successful.   But SQL Server Logins contain   BUILTIN \ Administrators, and                                                    BUILTIN \  Administrators contain DOMAIN \ Domain Admins, and                                                    DOMAIN \ Domain Admins contain DOMAIN \ myname.   Creating SQL Server Login with DOMAIN \ myname entail successful local connection.   Removing SQL Server Login with DOMAIN \ myname and creating SQL Server Login with DOMAIN \ Domain Admins do NOT entail successful connection. Cannot connect! System:   Windows Server 2008. Error 18456

Search working for only select users in same domain


I have encountered an issue where one user is able to conduct a search and retrive a full list of results but another user in the same domain and same membership group recieves no results at all.  Our environment is complex with several domains each trusting one another.  The SharePoint build is as follows:


2 Front End Servers with Loadbalance, 1 Application Server, 1 Index Server


So far I have tested with a user that cannot get results from a terminal client, desktop cleint and VPN remote access in all cases the user is unable to return results.   This user has accounts in 2 domains and when selecting to log on as a different user in the other domain results are returned.  I beleived then that it had to be an account issue in the other domain.  However when I worked with another user who also has accounts in both domains that user was not able to return results with either account.  So I am not sure it is domain account related.


I setup a dev box in the domain and made it bare bones with no load balancer, however when I add the user account who was having issue and a search is run no results are returned. 


The search database appears fine and healty and data is populating the tables

Windows authentication in WCF not working


I am using XP and VS2010. I have created a solution which includes two projects (Console Applications) as follows

1) WCF_Service (self hosting)

2) WCF_Client

When I try to pass client credentials to service, I am getting error message "The caller was not authenticated by the service".

Here is my App.Config for the service

<?xml version="1.0" encoding="utf-8" ?>
            <service behaviorConfiguration="MetaExchange"  name="SecurityHost.SecurityS">              
                <endpoint address="http://localhost:8090/WCFSecurity/ws/" 
                          listenUriMode="Explicit" />
                <binding name="ServiceConfig">
                    <security mode="Message">
                      <message clientCredentialType=&quo

Obtain domain username without requiring authentication


I'm bangin' my head against the wall here.  I'm not even sure what I want to do is possible.

I have developed an ASP.NET app that will only be run on my local network (which incorporates a Windows Domain).  It's running on IIS 7.5.

I want to do this:

Dim username as string = Httpcontext.Current.User.Identity.Name

My problem is this: If I don't turn off Anonymous Authentication and ASP.NET Impersonation, I don't get the results I'm looking for.  (if Anonymous is allowed, I get an empty string returned for username, and if ASP.NET impersonation is allowed, then "username" is always whatever account is associated with impersonation, like "Network Service").  If I turn those off and then turn Windows Authentication on, it works, but only after a dialog box presents itself asking for the Windows Credentials.

What I'm trying to do is NOT require the users to log in.  Since they've already logged into the domain when they signed on their computer, I'd like to just allow them access to the ASP.NET application I've written, and identify who they are (based on their previous Windows login) using the line of code above.  I don't need them to re-authenticate, because they're already a

Cross domain authentication


How can I make my customer, situated in a different domain, access my database using SSMS using Windows authentication?

Can you please direct me to step-by-step guidance.

All the best


Adding a second domain to windows authentication based web site


Hi All

I have an interweb web application that uses Active Directory to authenticate the user.
Im now getting some complaints that users on other domains are unable to access the application.

How can i make it work so that their domain name is also accepted by the application?

User Profile working, but domain in the Account Name field is incorrect


Profile import is working with a small set of users from just one OU. The synchronization connection has a Forest Name of "corp.mycompany.com", just like in our current profile settings in MOSS 07.

However, the user profiles created are listed with "corp" as the domain, not "mycompany".

E.g. my profile Account Name shows "corp\eriehl", but it should be "mycompany\eriehl".

How do I update this reserved property to contain the correct value for our domain?

HELP! 401 Authentication - Nothing Is Working!


Hi all,

I've recently installed a fresh copy of SSRS 2008 for the first time (SQL SERVER 2008 EXPRESS SP2). Straight install. No changes. And of course, it doesn't work! I was able to get to my report manager page, but only after removing RSWindowsNegotiate and RSWindowsNTLM from the rsreportserver.config file and changing it all to RSWindowsBasic. I don't know why that worked, but it did.

But now I can't authenticate to my web service. I keep getting 401 errors, and nothing seems to work. I am at my wits end here. Here is what I have tried:

FYI, I am using Windows XP SP2, and VS 2008.

1) Changed the rsreportserver.config file so that it uses "RSWindowsBasic".

2) I have opened the Computer Management tool, and in the 6 SQL Server groups, I have added "Administrators", "NT AUTHORITY\SYSTEM", "ASPNET", and "NT AUTHORITY\NETWORK SERVICE".

3) My Execution Account in SSRS Config is "[MACHINE]\LocalSystem".

4) The Report Server Service Account is "Local System".

5) On the "Services" dialog, RS is running as "Local System".

6) My RS code is: rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

I assumed this means it runs as ASPNET on my development machine from VS 2008.

I have read and re-read everyth

MOSS 2010 Web Front End Server (off the domain) and SQL Authentication


Hi Guys,

I am trying to use SQL authentication on my moss portal server (to be my web front end) and I am unable to connect.

When I run:

PSConfig -cmd -configdb
-server servername\sqlinstance
-database SharePoint_Config
-admincontentdatabase SharePoint_AdminContent database name
-user domain\SPExternalAdmin
-password password
-dbuser SPExternalUser
-dbpassword password

it tells me that the username is invalid.  the account must be a valid domain account.

am I able to use a domain account for this (keep in mind the moss server is not on the domain)

I can run the scrip differently (see below)

PSConfig -cmd -configdb
-server servername\sqlinstance
-database SharePoint_Config
-admincontentdatabase SharePoint_AdminContent database name
-user local admin
-password password
-dbuser SPExternalUser

Basic Authentication in IIS 7 across domain


The project I work on uses web services (ASMX) hosted in IIS. We just got new machines which are Windows 7 - 64 bit.  I am trying to get the development environment setup and the product doesn't work because authentication isn't working.

On our old machines, IIS is configured only for basic authentication and the Default Domain is set to the 'other' domain which houses the application users. The machine itself is not in that domain, but it is able to authenticate users in the other domain.

On the new machine, it won't authenticate users from the other domain.  Also, an additional problem I have is that it won't let me debug if I don't have Integrated Authentication on, but if I turn that on, then the user credentials come over blank, since it is using my personal credentials instead.

Any help would be much appreciated.

Why doesn't the Windows authentication working?


I'm trying to write a simple ASP.NET 4.0 app, using Windows authentication to login.  This is on my peer-to-peer home network.  When I click to login, it instantly shows my Windows identity, so it looks as though I don't even need to login, as it's already done that for me.  However when I then go to any other page in the app, it looks as though I'm not logged in.

Why is that and how do I fix it? 

Sharepoint Cross domain authentication



I manage a domain (MyDomain) that is trusted by a domain (TheirDomain) in which there is a Sharepoint site I wish to connect to. The trust in place is one way non transitive (i.e. the TheirDomain trusts MyDomain).

My SPS knowledge is quite limited but from looking around online it seems, in order for the admin in that domain to add individual users from this domain to their SPS site that various changes are required to their SPS instance (involving stsadm commands amoung other things).

In an effort to find the easiest solution, instead of adding each user in MyDomain individually to the SPS server could we have an admin from TheirDomain add a domain security group from MyDomain into a security group in TheirDomain and then allow that security group basic read only access to the SPS server.

Any advice would be appreciated?



Which Domain Controller is SQL Server using for trusted windows authentication?


We are migrating from Windows Server 2003 domain controllers to Server 2008 Domain controllers.  I want to be able to know which domain controller a SQL server is using for authentication, so I can verify that the 2008 Domain Controllers are working, before we take down the 2003 domain controllers permanently.

I also read something about possibly setting a preferred DC?

Please advise



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend