account-management

Improving performance of System.DirectoryServices.AccountManagement

主宰稳场 提交于 2019-12-01 06:14:46
问题 I have a program that will let me manage users on our terminal server that we use to demo our software. I have been trying to improve the performace of adding users to the system (It adds the main account then it adds sub accounts if needed, for example if I had a user of Demo1 and 3 sub users it would create Demo1, Demo1a, Demo1b, and Demo1c.) private void AddUsers(UserInfo userInfo, InfinityInfo infinityInfo, int subUserStart) { using (GroupPrincipal r = GroupPrincipal.FindByIdentity

Android: Enable imported account contacts programmatically

我们两清 提交于 2019-11-29 11:07:54
I'm successfully importing external contacts into the newly created account using this tutorial . The account is setup to re-sync programmatically and yet, to be able to see the synced contact, - unless the contact dupe is found - I need to do Contacts->Menu->Display options->Find account->Check "All Contacts" . I'm already dreading angry users enabling contact sync and not being able to see anything so the question is: is it possible to set display option for including imported account contacts programmatically? So when user opt for account creation he doesn't need to do anything else to see

Account verification: Only 1 account per person

夙愿已清 提交于 2019-11-29 02:50:10
问题 In my community, every user should only have one account. So I need a solution to verify that the specific account is the only one the user owns . For the time being, I use email verification . But I don't really need the users' email adresses. I just try to prevent multiple accounts per person. But this doesn't work, of course. People create temporary email addresses or they own several addresses, anyway. So they register using different email addresses and so they get more than one account

Strange issue with System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity

白昼怎懂夜的黑 提交于 2019-11-29 02:48:26
问题 We're writing a system that allows a user to change their account password through a web application on our intranet. At first, everything appeared to be running smoothly. During development passwords for our test accounts could be changed with no problem. When we made the system live, however, we started running into issues. Here are the symptoms: At first, everything is fine. Users can change their passwords. At some point, the following error occurs in UserPrincipal.FindByIdentity: "System

Android: Enable imported account contacts programmatically

主宰稳场 提交于 2019-11-28 04:47:19
问题 I'm successfully importing external contacts into the newly created account using this tutorial. The account is setup to re-sync programmatically and yet, to be able to see the synced contact, - unless the contact dupe is found - I need to do Contacts->Menu->Display options->Find account->Check "All Contacts" . I'm already dreading angry users enabling contact sync and not being able to see anything so the question is: is it possible to set display option for including imported account