Questions tagged [account-management]
116 questions
0
votes
1 answer
Find group membership using System.DirectoryServices.AccountManagement
I'm trying to authenticate a user against Active Directory using the types in the AccountManagement namespace/assembly in my .NET 4 application (VisualStudio 2010). Here is the code I have:
private Boolean ValidateUser(String domainName, String…

SonOfPirate
- 5,642
- 3
- 41
- 97
0
votes
1 answer
Searching Active Directory for a user with a certain property using DirectoryServices.AccountManagement
I'm new to accessing Active Directory and I was advised to use the System.DirectoryServices.AccountManagement namespace but I don't know how to search in it for a user with a certain initials.
Any help ?

Shehab Fawzy
- 7,148
- 1
- 25
- 18
0
votes
1 answer
asp.net membership account valid until
I'm developing an application that requires user accounts to automatically be disabled if they haven't renewed their membership
Is there an easy way to do this with ASP.NET membership framework, where it is possible to define/set an expiration…
user1050441
0
votes
0 answers
Trying to use System.DirectoryServices.AccountManagement in a .Net 5.0 Project
I am trying to create a new PrincipalContext() variable in a C# .NET project.
I have added a Project Reference to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.8\System.DirectoryServices.AccountManagement.dll.
I…
0
votes
0 answers
How to modify a file on the google drive from multiple android devices?
I have a specific google account and a file on it. I want to modify the file from a few android devices without having to log in to this account (User don't have a permission to use this account). I also don't want user to access this file manually…

MSZ
- 51
- 5
0
votes
1 answer
PayPal Accounts creation: No redirection to PayPal
I am developing a Django-based website in which each new user creates a wallet to hold his money. I'd like to integrate it with PayPal, so that when the user signs up, a PayPal account is automatically created for him with the credit card…

Dj-Ango
- 3
- 1
0
votes
2 answers
How to Optimize Decomposing AD Groups Using C# .Net 3.5
I need to retrieve group members for several hundred AD groups. While the code below gives the right answer, it is very slow. Is there a more efficient approach to decompose these groups to its members?
My current approach is using…

MauMen
- 1,369
- 1
- 9
- 7
0
votes
1 answer
Newly created user can't be validated
using(PrincipalContext cntx = new PrincipalContext(
ContextType.Domain, "blah.corp.net:389", "OU=customers,OU=web,CN=blah,CN=corp,CN=net",
ContextOptions.Negotiate, "Domin\Admin", "{Password}")){
string password =…

PerlDev
- 437
- 1
- 5
- 15
0
votes
5 answers
AWS cli switching between accounts
I had an AWS account configured to work with the CLI. The free tier expired so I setup another account. I created an IAM user ran aws configure and put in the credentials for that user. I have the default profile setup with that users credentials as…

Grant M
- 51
- 2
- 5
0
votes
1 answer
PrincipalContext: How do I get the full LDAP context path from only providing an OU?
I'd like to increase speed for finding users in a query similar to this:
using (PrincipalContext pc = PrincipalContext(ContextType.Domain))
using (UserPrincipal up = new UserPrincipal(pc) { SamAccountName = $"*{search}*" })
using (PrincipalSearcher…

AxD
- 2,714
- 3
- 31
- 53
0
votes
2 answers
Misc account management pages in a RESTful design in Rails 3
How do miscellaneous account management pages fit into a RESTful design in Rails 3?
For example, a user registers (create action) and is then forwarded to a registration success page (? action) where they are asked to now verify their email address…

Dan
- 119
- 8
0
votes
0 answers
UserPrincipal.FindByIdentity with IdentityType.Guid returns no results
I'm searching users on Active Directory using System.DirectoryServices.AccountManagement.
Here' a simple example
using System;
using System.DirectoryServices.AccountManagement;
public static class DomainHelpers
{
public string…

Stephan Steiner
- 1,043
- 1
- 9
- 22
0
votes
2 answers
Removing Active Directory User from Groups where Group Name Starts With
I'm having trouble trying to overcome an issue in VB.net. What I'd like to achieve is to remove one specific AD user from all groups where the name of the group starts with "Google"...
If I know the full name of the group, this is a straightforward…

MattOverton
- 67
- 7
0
votes
1 answer
Maintain http-session via AuthenticationToken and Authenticator
I'm writing my own Authenticator and AuthenticationService and want to manage/maintain a http-session, consisting of two cookies and one sessionid, per account in the Authenticator-System of android. So that other apps/activity can reuse the…

Christoph Haefner
- 1,093
- 1
- 9
- 25
0
votes
1 answer
PrincipalContext with smartcard inserted
We have been using an application for a while that uses System.DirectoryServices.AccountManagement to communicate with the Active directory (domain context).
ContextOptions options = ContextOptions.Negotiate |…

Azlec
- 1
- 1