Questions tagged [account-management]

116 questions
0
votes
1 answer

Does DirectoryServices.AccountManagement.PrincipalContext work on a remote Win 2012 R2 Sever?

This is my scenario and so far I have not found a way around it: The app runs on a Windows 2012 R2 server (svr1, a domain member), and needs to add a domain account to a local group on svr2, also a domain member. Using ADSI hasn't worked for me so…
JRrelyea
  • 139
  • 1
  • 4
0
votes
0 answers

VB.Net - Program Soft Locks When Removing a User from All AD Groups

I'm writing an application in VB.Net which accepts an AD account input by the user and deprovisions and disables it automatically. As part of this, it strips all AD groups it can from the user. Note that certain users may be members of groups that…
0
votes
1 answer

Checking Someone is a Member Of One of Many Groups Using Partial Group Name

I'm a bit stuck trying to work something into my code. What I'm looking to do is to work out whether someone is a member of any one of a collection of groups. I'm not worried about which group specifically, I only want to know: "Is user "X" a member…
0
votes
1 answer

Accounting Management Solution

I have a problem on accouting, I need to control the cash flow. Actually my schemma is somehing like this: **invoice_payable** control all my payable invoices **invoices_receivale** control all my receivale invoices Also I have other to entities to…
devasia2112
  • 5,844
  • 6
  • 36
  • 56
0
votes
1 answer

When is Active Directory Auto Detected

I'm building an application that will authenticate users via Active Directory. Nothing major, not adding or editing users, just validating credentials. I found many posts on this - some using System.DirectoryServices.AccountManagement (.NET 3.5 and…
Mike Turner
  • 471
  • 1
  • 7
  • 22
0
votes
1 answer

DirectoryServices.AccountManagement Extension Class Serialization in WCF App

I have a class i created named EmployeeData that inherits from System.DirectoryServices.AccountManagement.UserPrincipal. It allows me to easily access AD attributes using . But i am trying to now move it to a WCF web service. Is there a way for…
Eric
  • 505
  • 5
  • 22
0
votes
1 answer

How to create a local user account that does not belong to any group?

Currently, I am creating a user with var user = new UserPrincipal(localMachineContext, "MyUser1", "MyPassword", enabled: true); user.Save(); However, new user is immediately included into "HomeUsers" group (Win10), which is undesired behavior. I…
LOST
  • 2,956
  • 3
  • 25
  • 40
0
votes
2 answers

credentials stored securely in the report server

Does anyone know the least windows account previlege to run under "credentials stored securely in the report server" option in the report manager? I have tried to create a windows account with admin right and assign to "credentials stored securely…
user384080
  • 4,576
  • 15
  • 64
  • 96
0
votes
1 answer

PrincipalContext ValidateCredentials throws errors

I am trying to authenticate user against LDAP using below code. using (PrincipalContext context = new PrincipalContext(ContextType.Domain, ldap, "username", "password")) { bool success = context.ValidateCredentials(useralias, password); } When…
0
votes
3 answers

Account activation PHP

I created this account registration activation script of my own, I have checked it over again and again to find errors, I don't see a particular error... The domain would be like…
MacMac
  • 34,294
  • 55
  • 151
  • 222
0
votes
0 answers

AD user gets disabled when either attribute is true

I am trying to create new user in AD with code as - var principalContext = GetPrincipalContext(txtDomain.Text, txtAdminUser.Text, txtAdminPassword.Text); var userPrincipal = new UserPrincipal(principalContext, txtUsername.Text,…
Vikram Singh Saini
  • 1,749
  • 3
  • 22
  • 42
0
votes
1 answer

Searching for an Email client compatible with Percussion CMS which also has user account management capabilites

We're transitioning our site to a new content management system called Percussion. We're looking for a 3rd party email client to integrate. We're also hoping the email client allows for user account management and permissions. Has anyone: 1) Used…
0
votes
2 answers

is System.DirectoryServices.AccountManagement.GroupPrincipal thread safe?

I am writing a program that will create users in bulk, I have a operation that is part of the creation that is blocks for about 5 seconds, to get around this I was going to make it threaded and have everything sitting in a thread pool. My question…
0
votes
1 answer

Issues with System.DirectoryServices.AccountManagement.FindAll after update from .net 4 to 4.5

We have updated our IIS (lets say myIIS.xx1.mydomain.com) from .NET 4 to 4.5 After updating, we can't get users from one of our domains (lets say xx3.mydomain.com). From the others (lets say xx1.mydomain.com, xx2.mydomain.com, xx5.mydomain.com) we…
Luke94
  • 712
  • 5
  • 14
0
votes
1 answer

Can I mix DirectoryServices with AccountManagement?

I'm writing some code that involves Active Directory. Is it generally acceptable to mix calls to System.DirectoryServices with calls to System.DirectoryServices.AccountManagement? Are the two libraries designed to be used interchangeably or should…