Fast Binding to Active Directory - c#

Passthrough authentication in my web server application written in C# is performing extremely poorly; successful login events take as long as 10 or 15 seconds using the System.DirectoryServices.AccountManagmeent API.
I would like to switch to using System.DirectoryServices.Protocols and fast binding as described in this MSDN article Using Fast Bind, but it is bereft of any details or code samples.
Can you point me to or provide examples of .NET code doing fast bind user authentication with s.ds.p? I have been very unsuccessful googling.

After more browsing, I found this page which does have complete C# code sample.

Joe Kaplan's book .NET Developer's Guide to Directory Services Programming has some examples as well, that can be found here.

Related

Working with windows Azure active directory

Can any one suggest me a place to get started to work with Windows Azure directory and GraphClient.May be a blog or video.
I googled and I could not find any valuable resources.I referred to this from Channel9. But the speaker has not shared the code which he used.
I wanted to authorize a MVC Controller with the help of Azure active directory.
Any help would be appreaciated.
Update :
The following blog my Geoff is really helpful.
http://geoffwebbercross.blogspot.co.uk/2014/05/adding-azure-ad-single-sign-on-to.html
IMHO the best resources to start are:
Overview of the scenarios you can tackle: http://msdn.microsoft.com/en-us/library/azure/dn499820.aspx
Repos with all of our latest samples: https://github.com/AzureADSamples/
HTH!
V.

Documentation for Web API in Windows Store apps (Metro apps)

I remember seeing a few months ago some documentation on MSDN for accessing a Web API from within a Windows Store app, with samples, but I cannot find this page anymore, and a Google search doesn't yield a single related result for MSDN.
Anyone know where the documentation for this is?
[nkvu - moving out of the comments and into answers in case anyone else is looking for a similar thing]
I don't know where it on MSDN but there seems to be a downloadable sample here. And docs here and here showing code but no downloadable sample.
Most of the System.Net.Http namespace which includes the HttpClient is available for Windows Store apps.
See http://msdn.microsoft.com/en-US/library/System.Net.Http.aspx

Access to Facebook?

As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!

Source code to retrieve Google Adsense earnings?

Where to find source code to read google adsense account earnings ? any language welcome especially c#, php.
Update: I still don't have any source code until now that seem to work.
Unfortunately all of the other answers are using either deprecated API or are linking to 404 pages.
Google did release a new management API for AdSense which is well documented:
https://developers.google.com/adsense/management/
Documentation is here It's a very in-depth webservice that allows you not only to get access to reporting, but also create, modify, etc campaigns.
This is an interesting low-tech approach. It's featured on the CURL website. Could be re purposed for your application.
You could use this php library http://code.google.com/p/php-adsense-account-library/

Can Silverlight 3 OPEN SOCKETS?

Can Silverlight 3 OPEN SOCKETS?
If yes.
What do I need
MSDN if there is any help on this.
Open Source Libs/wrappers for encoding/decoding.
Tutorials and blog articles on How to do it.
If no I need where did you get the info from (link to MSDN or other official SL resource)
Yes, it can.
MSDN:
http://msdn.microsoft.com/en-us/library/cc296248(VS.95).aspxhttp://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx
One of the light libs you might find useful:
http://socketslight.codeplex.com
A couple of how-to-s:
http://weblogs.asp.net/dwahlin/archive/2008/04/13/pushing-data-to-a-silverlight-client-with-sockets-part-ii.aspx
http://www.silverlightshow.net/items/SocketsLight-Silverlight-Sockets-Framework.aspx
Yes, you can, but only within a certain range of ports (4502-4534) and only if you can also host an appropriate cross-domain policy file on port 943 on the same server.
You've already got the MSDN link - here's an example application (for SL2, but should be similar in 3):
[Pushing Data to a Silverlight Client with Sockets Part 1][1]
Search Dan's blog for "socket" and you can find part 2 and how to create the policy server - SO won't let me post more than 1 link :(
Here's the MSDN article on working with sockets:
Working with Sockets
Here's an article about using sockets in Silverlight and here is a link to framework simplifying that. Also a quick search on google will turn up useable results!

Categories