.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

Small site embedded login validating against Active Directory and redrecting to SharePoint site

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint

I am only finding pieces of this information. 

Challenge: Have a standard page with a login box in the corner that is exposed on the web.  The login will validate an employee against AD and also redirect them to a site collection.

I have found information on claims based authentication and the AD Membership provider.  I have also found information on form based login pages.  Most of these examples though just modify the SharePoint form login.  I want to create just a small login box on a page that is already created.  The one thing that I can't seem to find any really solid information on is the redirect to a site collection.

Can anyone tie all of this together for me?  Am I using the correct terminology and heading down the right path.

Any help is greatly appreciated.

View Complete Post

More Related Resource Links

Changing an authentication of SharePoint site from SQL-FBA to Active Directory

Hi,      We are using MOSS 2007. I have customized a web application using Custom web part, features and ASPX pages. we have configured SQL-Form based Authentication for this site. I have also used FBA user management functionality from Codeplex. I have created some groups and my application (custom aspx page) is referencing these groups to send an email to specific person as per his role for certail events.        I have a requirement to migrate this set up on other server and change the authentication from SQL-FBA to Active Directory. So if I have to change the Authentication from SQL-FBA to AD then what are the steps I have to follow to make this happen?      I would appreciate any help on this. Thanks, Patav    

Programmatically syncing Active Directory changes with the SharePoint Site Collection


I manage a MOSS 2007 portal in Windows Server 2003, with a SQL Server 2005 backend.  We use Active Directory as the source for our SharePoint accounts.  I have written a Web Part that allows the user to edit certain fields in Active Directory, but the changes are not synched with the site collection right away.

I understand that the sync process is something like this:
1. Active Directory is updated.
2. SSP syncs with Active Directory (can force a sync from the web page, or with STSADM).
3. SSP syncs with underlying Site Collections (can force with STSADM).

This means that a user updates their information, but it is not apparent to them that the change went through, because the site collection profile is not updated. I know I can force a sync manually, but I want to do it programmatically.

What I want to do is this:  From my C# code in my Web Part, at the moment a user updates an Active Directory account, that account is synched with SSP, and then the SSP profile is updated in the site collection (I only have one site collection at the moment).  What is the code to accomplish this?




Christopher W. Douglas

Synchronising the Active directory with User Profiles in sharepoint site


When the display names in Active directory is modified,its not reflected in when user logins to the site?

as Welcome Modified User Name

How to synchronize if there is change in user Name or display name in sharepoint 2007

It's possible to using sharepoint services 3.0 hosted site without authentication login ?

It's that any way to able user read / write by without login authentication for sharepoint services 3.0. because i'm having problem when external user need to access to our sharepoint pages, but their can login to it.

Cookies used in login to SharePoint site

I am trying to logon to my remote site while using SharePoint Designer 2007 and my login fails each and every time.  I loaded Fiddler to see what is going on and can see that there is a cookie being passed which contains an invalid pwd.  I have deleted all the stored cookies in IE, but still see the invalid pwd being sent to the host.  If the cookies are not stored in the IE files, where might they be stored?

intranet site authentication against Active Directory


Hi all,

I am trying to build a web app for an intranet site that for security reasons needs to make the user type in their Windows or Active Directory username pwd manually. I have previously worked with Integrated Windows Auth but in this case, we do want them to use type in their AD credentials. 

I have been trying to look up how to do this and frankly I am a bit lost. It should be a fairly straightforward task and am hoping you can point me in the right direction, with some tutorials or examples. We will be using SSL so, dont have to worry about passing pwd in cleartext over the wire. 

My environment is visual studio 2008 in C#, .net 3.5 if that matters.

Any pointers ? Thank you. 

Active Directory - multi site replication


Hi all,

I have a vb.net application that will setup new AD accounts, now when this is run from my PC it will create the account on the local DC, but the home directory will be setup on a remote DC (different AD sites), thus site replication could take up to 15 minutes. When applying security permissions to this new directory it won't work as the account is not replicated to the remote DC where the folder is.

How can I force DC replication using vb.net ?



pdf files in document library cause second login on secure sharepoint site


in somewhat of a twist to the previous kb 943280 I have clients accessing my wss 3.0 site over ssl.

they attempt to go into their document libraries and are able to receive the ms type documents and their associated icons show up.

however in attempt to get to the pdf documents they're asked to login again, and if they bypass the login they can access the pdf file fine, it just doesn't draw the pdf icon.

I do have the icon correctly installed, for me as site owner the icon displays fine and I do not get asked to login again.

What I have seen with the other users is that they're using Vista home and/or business with the 256bit encryption while I am using the 128 bit encryption.

This site was also previously on a hosted site, not requiring ssl, but no one had the second login issue which makes me think I am missing a server option that should be on my machine.

Thanks in Advance!

Login check Using javascript for sharepoint site


Hi ,

          I am supposed to create new userid and password in sharepoint domain. There may be many login users. i need to check the login using javascript in ascx control. Can anyone tell me how to do this?

FYI ...If i have five userlogins ..then the 5 users can be able to login by this page. after the login it should be redirect to some other page too.

Thanks In Advance

Varathan GS

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

SharePoint Application and Site Pages - Part 1 of 2

In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

Visual Web Developer 2010 Express "Copy Web Site" using different login


I created a site and am trying to grant another pesron access to upload changes to it without giving them my super-user login.

I made a login for her but I can't test whether it works or not because no matter how much I "disconnect" in the Copy Web Site page of VWD 2010, reconnecting to the same site always logs in as my superuser account without prompting me for a login again.

How do I test is the account it set up correctly before having her try to upload to it?    I want to force the login to remote site dialog to pop up again to test her account.

Any ideas?

Office Space: Automated SharePoint Site Branding


Here's a custom branding solution for SharePoint sites that integrates Master Pages and CSS files at the level of the site collection.

Ted Pattison

MSDN Magazine July 2008

A Simple XML-driven Tool: Monitor Your Web Site's Activity with COM and Active Scripting


This article describes a simple Web site monitoring tool built with XML, JScript, Windows Script Host, and COM objects. Although it is not intended to replace complete Web site monitoring software products, it has many useful features that help to keep Web servers up and running. An XML configuration file specifies which Web sites to monitor and the actions to be taken if the site isn't functioning properly. In addition, the tool can be scheduled to run at any specified interval using the Windows Task Scheduler. Functions that probe the sites, log events, and send e-mail notifications are written in JScript.

Panos Kougiouris

MSDN Magazine July 2000

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