Microsoft announced the Windows Live custom domains SDK later this year. In the previous introduction to Windows Live custom domainsArticleWe have seen several of their website operation interfaces. Some readers have already applied to register their own Windows Live custom domain. However, this SDK is very useful for small and medium-sized enterprises.
The Windows Live custom domains SDK can export and import user lists in addition to the functions that can be operated on the Web interface, these two important functions are not available on the Web operation interface, but they are needed by enterprise users.
Windows Live custom domains SDK uses the soap RPC 1.1 Standard to complete the clientProgramInteraction with Web services provided by the Windows Live custom domains Web server. The SDK provides detailed instructions on soap calls for each method. Note that the SDK cannot register or cancel the custom domain service.
The SDK contains two samples, one for the console and the other for the Win32 app.
Before calling any operation method, we must first perform login authentication. All connections connected to the Web service must have been logged on to the passwork network. The Web Services and Windows Live custom domains use the same user authentication, that is, Microsoft Passport Service. We will provide a detailed description in the following sample analysis. However, it is very dangerous to store the login ticket in plain text format.
SDK provides the following methods:
- Adduser
- Deleteuser
- Getuserstate returns the status of the user in your domain based on the user name.
- Enumusers: list all users in the current domain
- EvictsquatterIf a user in your domain already exists before using Windows Live custom domain (such a user is called easi, that is, e-mail as sign-in only, the email address is only used to log on to passport and has nothing to do with Hotmail). You can set all the email addresses (including passwords) in addition to importing them) in addition to direct migration, you can also use this function to discard this user to create a new user with the same name. However, discarding a user will force it to rename its account upon next login. They will keep their Windows Live ID settings, but their account names will be changed. Tip: All emails sent to inactive inbox will be returned and displayed as undeliverable. To activate your inbox, you must use the user name and temporary password you have created for it to log on.
- Importuser imports an existing easi passport user to this domain.
- Enumdomains: returns the names of all domains managed by the current logon administrator.
- Getdomainstate returns the status of the current domain
The provided Console mode sample supports the following features:
- Add, delete, and enumerate users
- Determine whether a user is already in this domain
- You can import user names from the. CSV file to add new users in batches.
- Lists the domains managed by a logged-on administrator.
The Win32 sample provided by the SDK provides good GUI support. While supporting the functions in the console sample, there is a change and a new function addition:
- Batch import users from A. xml file
- Export a user to A. xml file (the same format is used for Import and Export)
To be continued...