{#advanced_dlg.about_title}

Programming, Technology »

Friday, December 20, 2013 | 0 Comments

AutoMapper is my tool of choice for mapping between types, mostly view models, DTO’s and domain models. In order to combine the powers of AutoMapper and StructureMap we have to do some plumbing. We need to register certain types in the IoC container and let AutoMapper know how to construct services. The combined power gives us the possibility to inject AutoMapper types wherever we want and we don’t have to work with the static Mapper class which I consider bad. Another benefit is that we can inject dependencies into custom type converters and value resolvers. In this post I will try to explain my AutoMapper setup in conjunction with StructureMap in the context of ASP.NET MVC web applications. It shouldn't be that hard to port thi... [More]

{#advanced_dlg.about_title}

Programming »

Saturday, December 7, 2013 | 0 Comments

I am reading the book Metaprogramming in .Net which gives a solid introduction about metaprogramming and the various techniques and tools you can use when doing metaprogramming in .Net. One of the described techniques is the CodeDOM. The CodeDOM is nothing new and has been there since the beginning of .Net. With the CodeDOM you can build object graphs which you can use to express code as data. The newer Expression Trees introduced in version 3.0 of .Net are something similar but work differently and don’t provide the same features. Meaning expression trees won’t replace the CodeDOM. An object graph can be converted to source code or even be compiled into an assembly. This creates powerful scenario’s like building code gene... [More]

{#advanced_dlg.about_title}

Technology, Windows »

Thursday, November 28, 2013 | 0 Comments

When you change your password in Active Directory (AD) your cached credentials for accessing network shares are no longer valid. To access the network share with your new password requires you to remove or update the cached credentials. This can be done with the following steps.   WIN Key + R     control nusrmgr.cpl     Click on Manage your credentials     Choose your credentials and Edit or Remove from vault. [More]

{#advanced_dlg.about_title}

Programming, Technology »

Friday, November 15, 2013 | 0 Comments

For testing purposes I am using OpenAM with the default configuration which includes a embedded OpenDJ (LDAP) instance. This embedded LDAP directory should not be used in production but can perfectly be used in your development setup. I am using OpenAM for setting up an identity provider which communicates SAML 2.0 with my service providers. My service providers need role assertions about the user accessing the service provider. This post will go quickly through all the steps needed to return the roles/groups of an user in case of a default OpenAM configuration. Before you can do that you already need your identity and service provider, realm and circle of trust configured. The LDAP directory is filled with a default user demo which we are... [More]