Programmatic login to SP 2010 as superuser (site level) by means of userid and password supplied at runtime
-
2012年7月20日 7:33
Hi,
Thank you for your excellent credentials. I am currently trying to sort out a problem handed off to me by my superiors.
It is to logon to SP 2010 programmatically as Super User by using user id and password supplied at runtime. Please note that we will not be using any forms for this purpose. Instead of login through user interactivity, we need to implement programmtic logon.
If this is not feasible, what are other approximate alternatives?
Please help me out considering that I am just a student of SP 2010.
Thanks
全部回复
-
2012年7月20日 11:55版主
Hi,
You can refer below article to create custom login page and access through windows authentication.
http://tomaszrabinski.pl/wordpress/2011/06/23/sharepoint-2010-custom-login-page/
Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
-
2012年7月25日 7:57
Probably, I was unclear. The requirement is following.
The user id's and passwords are stored with SharePoint 2010.
A client program collects uid/pwd at runtime and redirects user to a sought-after page in a SharePoint 2010 site if uid/pwd match and the authentication policy permits.
I will appreciate a specific and detailed response.
- 已编辑 Studend of SharePoint 2010 2012年7月25日 7:59 typo
- 已编辑 Studend of SharePoint 2010 2012年7月25日 8:23 edit
-
2012年7月25日 8:38
One more way to explain my task.
1) Let SharePoint 2010 has a site user with uid: abc@def.com and pwd: abc@123 (stored with it).
2) A client program has hardcoded these two (as given in #1) values. It also has a URL (hardcoded) of a sharepoint 2010 site*.
3) abc@def.com is authorized to read from or write to the site (*).
3) #2 should be able to open up the site (*) (with permissions given in #3) for any user that accesses it.
Kindly revert back if it is still unclear.
-
2012年7月26日 7:44版主
Hi,
I think SPutility member can help you out. If my understanding is right then you want to redirect user to site based on his /her credential.
If so then please check this MSDN article:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility_members.aspx
Let us know if i misunderstood you
Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
-
2012年7月27日 6:37
I am asking for anyone to be able to login and have site-level access, programmatically, through hardcoded sharepoint userid and password.
Please don't stereotype the solution as impersonation, which is static why undesirable.
Is there a solution?
- 已编辑 Studend of SharePoint 2010 2012年7月27日 6:39 revision 1
- 已编辑 Studend of SharePoint 2010 2012年7月27日 6:40
- 已编辑 Studend of SharePoint 2010 2012年7月27日 6:41

