Questions tagged [account-management]
116 questions
14
votes
13 answers
Account verification: Only 1 account per person
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…

caw
- 30,999
- 61
- 181
- 291
14
votes
2 answers
Social Network (Facebook, Twitter, etc) User Account Integration (duplicate scenario)
So there are definitely many tutorials out there regarding how to integrate various individual social network authentication/registration into existing user accounts. But the scenario I can't seem to find out much information about is if a user…

Matt
- 328
- 3
- 9
13
votes
1 answer
Strange issue with System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity
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…
user22467
10
votes
2 answers
Information about the domain could not be retrieved (1355)
Here is a sample of my code
var domainContext = new PrincipalContext(ContextType.Domain, "domain_server_ip",
"domain_admin_username", "domain_admin_password");
var group = GroupPrincipal.FindByIdentity(domainContext, "mygroup");
var…

Marco
- 56,740
- 14
- 129
- 152
10
votes
2 answers
Store passwords securely in Windows
Currently, I'm storing my usernames & passwords in a SQL Server CE database.
I would like to use some Windows API in order to securely store my user passwords, so that no other application running on the machine could read them.
I'm supporting…

Mugen
- 8,301
- 10
- 62
- 140
10
votes
2 answers
How to find a UserPrincipal where a property is not set using a PrincipalSearcher?
I'm trying to search for users in an instance of AD LDS (ADAM) where a property is not set, for example where the "company" property is not set to a value in the ADAM store (or AD for that matter).
When I use a PrincipalSearcher and a custom…

Jim
- 4,910
- 4
- 32
- 50
9
votes
1 answer
Any source for commonly restricted keywords for usernames?
I'm working on a web service and need to restrict users from signing up with certain usernames such as admin, root, etc.
I know this is a common problem that everyone goes through when developing a new service, so thought there should be a database…

Vlad
- 8,038
- 14
- 60
- 92
9
votes
2 answers
Updating Name Field on UserPrincipal
When I try to update the Name field (corresponds to the CN) on UserPrincipal (Principal, really), I get an error "The server is unwilling to process the request" on the call to UserPrincipal.Save().
I've checked to make sure there isn't another…

Chris
- 2,959
- 1
- 30
- 46
9
votes
5 answers
How do I expose built-in security and user management to a MVC application?
I have built a MVC website on IIS6. I used the built-in ASP.NET Security without Membership, just the way it was implemented in the template solution. It is easy to secure a contoller or action, but now I need to expose the user management to an…

DrydenMaker
- 354
- 2
- 17
8
votes
1 answer
Extending UserPrincipal; FindByIdentity() fails
Extending UserPrincipal to take advantage of its built-in properties... running into an issue when we overload the FindByIdentity() method.
From Microsoft's example at http://msdn.microsoft.com/en-us/library/bb384372%28VS.90%29.aspx (parts…

James King
- 6,233
- 5
- 42
- 63
8
votes
3 answers
Get just the Enabled Accounts from Active Directory
I am using System.DirectoryServices.AccountManagement.dll to deal with Active Directory
to get all the users in the "Domain Users" group.
This is returning all the users in the domain but I need to get just the enabled ones.
Here is some sample…

Moutasim Momani
- 149
- 2
- 3
- 7
7
votes
4 answers
Where does Android Account Manager store account specific preferences?
I've been successful in creating various account authenticators / services each with their own preference.xml. These preferences are persistent but I do not know where on the phone they are stored. I've scoured the phone using adb but I can't seem…

C Gar
- 121
- 2
- 5
7
votes
1 answer
Searching for multiple users with PrincipalSearcher
Is it possible to search for multiple user names with a single PrincipalSearcher call. Maybe by providing an 'OR' of the requested user names as the filter criteris ?

user307499
- 121
- 1
- 4
6
votes
5 answers
DirectoryServices.AccountManagement "old" password still validates after password change
After resetting a users password in Active Directory, if the user tries to log in using their old password, the following code validates as True:
Dim up As UserPrincipal = GetAdUser(objContext, arg_strBA, arg_strUsername)
If up IsNot Nothing Then
…

Dirk
- 75
- 1
- 2
- 5
6
votes
1 answer
PreferenceScreen - - Exception - FLAG_ACTIVITY_NEW_TASK
I am new at android developing.
The project is about implementing an AbstractAccountAuthenticator with an AbstractThreadedSyncAdapter to sync certain data on a server with a content provider.
I made everything and both adding accounts and syncing is…

Esentian
- 88
- 1
- 5