Duo Universal C# ASP NET Web Forms

January 18, 2022 0 Comments

Duo recently released their new Universal two factor authentication method which changes from an iFrame method to using a redirect. Duo provides a C# example using .NET Core and MVC but if you still have old web forms applications you’ve built and aren’t ready, you can still integrate them with Duo Universal. First, you’ll need …

Directory Services–Cannot Change Password – Constraint Violation nTSecurityDescriptor

February 19, 2018 0 Comments

  Recently I ran into an issue where trying to enable or disable the option ‘Cannot Change Password’ in Active Directory in my C# code. Using a Domain Administrator account the code worked perfectly fine, but when it was run under a non-administrator I would get “Constrain Violation Occurred” and the following exception "0000051B: AtrErr: …

ASP.NET Web Application Uses Old User Name

December 28, 2011 0 Comments

Has a user’s name changed recently and they can no longer access a asp.net web application, or the information on the web application still reflects the old user name? This could be because of the server caching the old username and not looking it up each time. To confirm whether this is what is happening …

WindowsIdentity Impersonation – An attempt was made to reference a token that does not exist

October 18, 2011 0 Comments

  Was working on a ASP.NET app to impersonate a domain user to access a network resource and came across the error “An attempt was made to reference a token that does not exist”. When defining the domain for the following function, make sure it is in the FQDN format. domain.com and not DC=domain,DC=com  private …