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 I choose one and stick to that?
Can I mix DirectoryServices with AccountManagement?
88 Views Asked by Paul Matthews At
1
There are 1 best solutions below
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in ACTIVE-DIRECTORY
- PowerShell Script to add newuser
- Active directory and linux nslcd binding without extending the AD schema
- Retrieve user information from Active Directory on login
- Feeding Variables in new-aduser -path option in powershell
- Log in through active directory
- Swapping attributes in AD
- How to get LastLogon from ALL Domain Controllers
- Getting LastLogon and LastLogonTimeStamp from ALL Domain Controllers into 1 output CSV
- Spring LDAP Context.REFERRAL to follow
- Avoiding Active Directory Uniqueness Constraint Violation During Rename
- samba retrieving users with arbitrary attributes
- WinApi and work with several domains
- Tomcat LDAP User Auth
- how to add multiple Owner in ADLDS groups
- Zend Framework Active Directory authentication
Related Questions in DIRECTORYSERVICES
- using DirectoryServices
- Add user account to user-group regardless the O.S language
- VB.NET adding a user to distribution list. An operations error occurred
- Enable directory browsing in WCF
- Getting Object not set to an instance - Directory Services
- .NET vs JNDI for Active Directory interfacing
- What does DirectorySynchronizationOptions.PublicDataOnly mean?
- Use .Net DirectoryServices to Set TTL on Active Directory Group Membership
- Handling AD Error When Not Connected
- C# Error reading domains in different domain
- Setting ComboBox Selected Value to AD Query
- LDAP path - where to find
- Convert DirectoryEntry to PrincipalContext
- Performance: DirectorySearcher vs PrincipalSearcher vs...?
- Where to save user quota data? In LDAP or RDBMS?
Related Questions in ACCOUNT-MANAGEMENT
- Constraint Violation When Creating AD User Object with account management extension class attributes
- Maintain http-session via AuthenticationToken and Authenticator
- Remove Azure DevOps Account when remove from company AD
- Find group membership using System.DirectoryServices.AccountManagement
- GroupPrincipal.GetMembers(true) - The specified directory service attribute or value does not exist
- Getting Exception trying to delete a Local User Group using Directory Services Account Management in C#
- GroupPrincipal.FindByIdentity error
- DirectoryServices.AccountManagement.UserPrincipal.SetPassword("BLahBlahBlah")
- PrincipalSearcher.FindAll returns different results when using a custom UserPrincipal
- Change who can join a created ComputerPrincipal account to the domain
- Can I mix DirectoryServices with AccountManagement?
- Strange issue with System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity
- GroupPrincipal.Members.Remove() doesn't work with a large AD group
- Is it possible find users from trusted domain by using UserPrincipal.FindByIdentity
- Adding an AD User to a Machine Local group via AccountManagement
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unless there is something specific I need that
AccountManagementdoesn't do by creating new inherited classes I will try to stick to just usingAccountManagmentwith the extra classes, I have seen issues where you try to use both at the same time.