Using PostSharp in FIM Synchronization rules to reduce code complexity, and improve readability.

This posting is provided “AS IS” with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Maintainability of FIM Sync rules is probably one of the most often raised issues by the customers, especially when the rules were developed by someone else. For this reason,…

0

Testing with Entity Framework dbContext, and NoTracking option

This posting is provided “AS IS” with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm During unit or integration tests, which involve database modifications, the following pattern is often utilized – var preChangeIntroducedValue = GetValueFromDB(); // introduce change var postChangeIntoroducedValue = GetValueFromDB(); // Assert…

0

How to set Active Directory Password from Java application

  This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Business Scenario Many Java applications now utilize Active Directory as a source of authentication, in some situations it may be required to set Active Directory password from within…

0

Sample C# code to create SHA1 Salted (SSHA) password hashes for OpenLDAP

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm   Since SSHA (Salted SHA1) is now most commonly used in storing password hashes in OpenLDAP, folks who need to create accounts on this system from .NET (ex. Forefront…

0

Sample code to query OpenLDAP directory via .NET System.DirectoryServices.Protocols

This posting is provided “AS IS” with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm The sample code below provides a helper class, which performs a paged search against an LDAP directory. I tested this code against OpenLDAP 2.4.31. The code is based on…

0

Configuring OpenLDAP pass-through authentication to Active Directory

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm From OpenLDAP 2.4 Administration guide, “Since OpenLDAP 2.0 slapd has had the ability to delegate password verification to a separate process. This uses the sasl_checkpass function so it can…

0

Detecting cross-nested groups in Active Directory with SSIS and SQL

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm Cross-nested groups, in my definition, constitute a scenario where GroupA is nested into GroupB, and GroupB is nested into GroupA (GroupA <-> GroupB). Why would you consider detecting this…

0

Debuggin ASP.NET application in IIS – building development environment

This posting is provided “AS IS” with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm When you application is deployed into production it will be probably accessed like this http://myapp.mycompnay.com. It will also be subjected to various IIS configuration settings: authentication, authorization, custom routing,…

0