Questions tagged [account-management]

116 questions
2
votes
1 answer

C# UserPrincipal Object reference not set to an instance of an object

I am receiving the classic, Object reference not set to an instance of an object in my project when viewing the hosted website. Works when building a debug version locally. Live Example of code that is showing error message: using…
JS1986
  • 1,920
  • 4
  • 29
  • 50
2
votes
6 answers

Allow users to remove their account

I am developing a gallery which allows users to post photos, comments, vote and do many other tasks. Now I think that it is correct to allow users to unsubscribe and remove all their data if they want to. However it is difficult to allow such a…
collimarco
  • 34,231
  • 36
  • 108
  • 142
1
vote
1 answer

GroupPrincipal.GetMembers(true) - The specified directory service attribute or value does not exist

I have an issue that I have searched all over the net but didn't find an acceptable cause or resolution. My aim is to create a console application to get the members of a group and its subgroups. I am able to do so using DirectoryServices. But I…
Khalid Naseem
  • 11
  • 1
  • 4
1
vote
2 answers

How would you configure a catch-all email system using Google Apps?

Using Google Apps for your Domain, is it possible to set up a catch-all address to act as a proxy for various other addresses on a hypothetical virtual mailbox system and, if so, how would you go about setting this up?
Willem Obst
1
vote
2 answers

Change who can join a created ComputerPrincipal account to the domain

I am using C# to create new computer accounts. My goal is to allow IT helpdesk personnel to add computers to the domain safely in the right OU. The way I intended to do this was to have them use a tool that would take the relevant information and…
IAmTimCorey
  • 16,412
  • 5
  • 39
  • 75
1
vote
1 answer

PrincipalSearcher.FindAll returns different results when using a custom UserPrincipal

Given the code below using (var context = new PrincipalContext(ContextType.Domain, SOME_DOMAIN)) using (UserPrincipal userPrincipal = new UserPrincipal(context) { Enabled = true }) using (PrincipalSearchResult results = new…
user1684
1
vote
2 answers

How secure should an account activation be?

I'm writing an account activation process from the ground up in Django, and here was my basic thought process: Create a model like: class UserAccountActivation(models.Model): lock = models.CharField(max_length=16) key =…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
1
vote
0 answers

System.DirectoryServices.AccountManagement nuget causing System.PlatformNotSupportedExceptionSystem.PlatformNotSupportedException

I have a web solution that has the System.DirectoryServices.AccountManagement nuget package installed so I could use the directory services API to check for user group membership. I deployed the solution to the local service fabric Windows 11 for…
1
vote
0 answers

How do I determine who has access to modify an active directory group

I'm working on creating an administrative interface that allows managing users in groups in Active Directory. I would like to only show groups to the active user if the user actually has the rights to add or remove other users within those groups,…
1
vote
1 answer

Looking for a Full S.DS.AM Sample with many AD extensions already written

System.DirectoryServices.AccountManagement can be extended to support additional properties for reading and writing AD properties. Is anyone aware of a full/complete sample implementation that works for AD, Exchange 2003 or 2010?
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
1
vote
0 answers

Is there a way to know that Keycloak's user account management page was opened from the client?

I am using Keycloak to secure my application but I am using an extra database too. I am holding my users in both of them. Thus whevener a change is made to a user, the user needs to be updated in both the Keycloak db and my db. Thus whenever the…
1
vote
0 answers

Creating google account using AccountManager is it possible?

I'm trying to create google account in android I have two questions thanks. Is it possible to add account using "com.google" type account? Because I tried not to create my own Account Authenticator. I always got a "java.lang.SecurityException:…
standalone
  • 195
  • 4
  • 11
1
vote
0 answers

VS 2017 cannot detect ADStoreCtx n code but does in the watch

I am trying to get the user.UserPrincipalName by using the System.Web.HttpContext.Current.User.Identity.Name. I have the following code: string[] parts = System.Web.HttpContext.Current.User.Identity.Name.Split(new char[] { '\\' }); PrincipalContext…
1
vote
1 answer

How to trigger Account Manager to add new account from application

I am trying to extend the SampleSync application. After I install the app, I can go to settings -> accounts & sync -> add account to add an account. However, if I want to check from my Application code and want to trigger AccountManager to add a new…
Sajid
  • 891
  • 2
  • 13
  • 24
1
vote
1 answer

How to search Global Catalog (whole forest) using PrincipalContext

myUserList AppUsers = new myUserList(); using (PrincipalContext pcxt = new PrincipalContext(ContextType.Domain, domainName)) { UserPrincipal User = new UserPrincipal(pcxt); User.EmailAddress =…