Wednesday, December 28, 2016

MIM 2016 RCDC Visible tag


Recently I was editing a user edit RCDC for MIM 2016 to allow a field to become visible by setting a Boolean attribute on the user object.

I originally used this blog for doing FIM work: 
https://identityminded.wordpress.com/2011/10/14/fim2010-semi-dynamic-rcdc-operations/ .  Quite helpful, but I noticed that it wasn't working anymore in MIM 2016.
 
The key to this working was in this tag.
my:Property my:Name="Required" my:Value="{Binding Source=object, Path=IsContractor, Mode=TwoWay}"
 
But I couldn't get it work as expected.  After trying a few different things I finally discovered that you have to put the Visible tag directly in the  my:Control tag.  So now it should look like this:
 
 my:Control my:Name="Company" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=Company.DisplayName}" my:Description="{Binding Source=schema, Path=Company.Description}" my:Visible="{Binding Source=object, Path=IsContractor, Mode=TwoWay}"
Now it works like a charm!
 
 

Sunday, June 26, 2016

Custom approval workflow causes 'Access Denied' error

Recently I was setting up a MIM environment that does the most basic approval workflows.  Have a user create a contractor in the MIM Portal that requires manager approval.  After setting everything up I was getting Access Denied error with the following error - 'Object reference not set to an instance of the object'..  This worked in past FIM deployments so I wasn't sure what the deal was.

Thanks to Dan Malloy for pointing out this blog http://blog.predica.pl/fim-2010-authorization-workflow-fails-with-eventid-3/ which fixed the problem.

FYI if you change an OOB approval workflow, now it becomes custom and it will also change the .NET reference from 3.5 to 4.0 which may cause issues.  Switching it back to 3.5 should resolve the issue.

Saturday, March 19, 2016

Outlook 2016 and MIM2016 client extension resolved

My last post I was frustrated I could install the client extensions for MIM2016 on Outlook 2016.  Now there's a fix:  https://support.microsoft.com/en-us/kb/3134725
Thanks to Brian Desmond for pointing this out.

Friday, March 18, 2016

Outlook 2016 and MIM 2016 client extensions.

Was recently at a client site working on group management.  I discovered that the Outlook plug-in for MIM client extension is not supported on Outlook 2016. 

This is not noted anywhere on the MS web site, so now you know.  This is a bit disappointing, I'm hoping MS will do something about this soon.  I'm going to report it on the MS FIM forum shortly.

Update: There's a hotfix see next post.

Wednesday, December 23, 2015

Security for all is good

It's been discovered that Juniper Networks has been using a flawed encryption for years.  Possibly a result of NSA and/or a bug.  When it becomes easy for good guys to decrypt information for the sake of national security, it makes it just as easy for bad guys to decrypt.  Engineering secure systems without backdoors works for everybody.

Juniper backdoor

Monday, December 14, 2015

MIM 2016 and Exchange 2010: no-start-ma during AD export

I've recently been playing around with MIM 2016 and stood up an Exchange 2010 server within the environment.  Trying to provision to AD with Exchange functionality has proven difficult.  I would get no-start-ma in the MIM Sync console after the AD export.

When I removed the removed the exchange provisioning functionality in the MA extensions section, the export worked as expected. I was able to prove that I could connect to remote powershell so that didn't seem to be the issue yet I continue having the problem.  After googling around I ran across Thomas' blog in setspn.blogspot and found the same thing.

Resolution:
On the MIM sync server, install .Net 4.6.  Install all windows updates (including optional).  Reboot - I had to reboot twice as the FIM service wouldn't start the first time.  All seems to be working now.  Thanks for the info Thomas.

Monday, March 9, 2015

Updating Workday using .NET

The second post here will give you a good start how to update a user who's in Workday.  The community had zero examples how to do this, so you should find this helpful.

Read the earlier post regarding pre-reqs needed to connect to Workday using .NET.  This time I'll do it in VB.NET and the below code will update the email address.

/////////////////////////////

  empId = "12345"
             
                workerType = "Employee_ID"

                Dim emailValue As String = "jsmtih@company.com"
                Dim effectiveDate As Date = Now()

                Dim emailRequest As New Maintain_Contact_Information_for_Person_Event_RequestType()
                emailRequest.version = "v22.0"
                emailRequest.Add_Only = True

                emailRequest.Maintain_Contact_Information_Data = New Contact_Information_for_Person_Event_DataType()
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data = New Contact_Information_DataType()


                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data = New Email_Address_Information_DataType(0) {New Email_Address_Information_DataType()}

                emailRequest.Maintain_Contact_Information_Data.Worker_Reference = New WorkerObjectType()
                emailRequest.Maintain_Contact_Information_Data.Worker_Reference.ID = New WorkerObjectIDType(0) {New WorkerObjectIDType()}
                emailRequest.Maintain_Contact_Information_Data.Worker_Reference.ID(0).type = workerType
                emailRequest.Maintain_Contact_Information_Data.Worker_Reference.ID(0).Value = empId

                emailRequest.Maintain_Contact_Information_Data.Effective_Date = effectiveDate
                emailRequest.Maintain_Contact_Information_Data.Effective_DateSpecified = True

                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Email_Address = emailValue
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data = New Communication_Method_Usage_Information_DataType(0) {New Communication_Method_Usage_Information_DataType()}
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).[Public] = True

                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).PublicSpecified = True

                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data = New Communication_Usage_Type_DataType(0) {New Communication_Usage_Type_DataType()}
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).Primary = True

                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).PrimarySpecified = True

                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).Type_Reference = New Communication_Usage_TypeObjectType()
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).Type_Reference.ID = New Communication_Usage_TypeObjectIDType(0) {New Communication_Usage_TypeObjectIDType()}
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).Type_Reference.ID(0).type = "Communication_Usage_Type_ID"
                emailRequest.Maintain_Contact_Information_Data.Worker_Contact_Information_Data.Email_Address_Data(0).Usage_Data(0).Type_Data(0).Type_Reference.ID(0).Value = "WORK"




                Dim emailProxy As Human_ResourcesPortClient = CreateHumanResourcesProxy()

                Dim emailResponse As Maintain_Contact_Information_for_Person_Event_ResponseType

                Try
                    emailResponse = emailProxy.Maintain_Contact_Information(emailRequest)
                    Console.WriteLine("email update done")
                Catch fe As FaultException
                    If fe.Message.Contains("Invalid ID value.") Then
                        Try
                            Console.WriteLine("Email Update ERROR as Employee will try CW")
                            emailRequest.Maintain_Contact_Information_Data.Worker_Reference.ID(0).type = "Contingent_Worker_ID"
                            emailResponse = emailProxy.Maintain_Contact_Information(emailRequest)
                            Console.WriteLine("email update done")
                        Catch ex As Exception
                            Console.WriteLine("Email Update ERROR as CW also " + fe.Message)
                        End Try


                    End If
                    'Console.WriteLine("Email Update ERROR " + fe.Message)
                End Try

///////////////////////////////


Notice that in the Try/Catch section, I catch in case the update doesn't work as an Employee then I try again as a Contingent Worker.

The CreateHumanResourcesProxy function can be found in the earlier post.

Reading from Workday using .NET

Workday is a huge HR service and many companies are moving. Trying to figure out how to interact with Workday has been difficult. Mostly because there are so few samples available.  Workday has lots of documentation on their API, but because the objects are nested/nested/nested, it make it convoluted to figure out exactly where you need to go.

So here I'm putting out how to read a user from the Human Resources WSDL.

Before you can actually get this code to work you have to create reference file using svcutil then modify it because it creates 2 and 3 dimensional arrays.  This is a problem with Visual Studio.
See here for the pre-reqs and how to fix the Human_Resources.cs file

/////////////////////////
   empId = "12345";

                    var request = new Get_Workers_RequestType { version = "v22.0" };
                   
                    var workerId = new WorkerObjectIDType()
                    {
                        type = "Employee_ID",
                        Value = empId
                    };

                    var idTypes = new List { workerId };
                    request.Request_References = new Worker_Request_ReferencesType { Worker_Reference = new WorkerObjectType[1] { new WorkerObjectType() } };                  
                    request.Request_References.Worker_Reference[0].ID = idTypes.ToArray();
                    request.Request_Criteria = new Worker_Request_CriteriaType
                    {
                        Exclude_Inactive_Workers = true,
                        Exclude_Inactive_WorkersSpecified = true
                    };

                    var proxy =  CreateHumanResourcesProxy();

                    Get_Workers_ResponseType response = null;
                    try
                    {
                        response = proxy.Get_Workers(request);
                        Console.WriteLine(response.Response_Data.FirstOrDefault());
                        string first = response.Response_Data.FirstOrDefault().Worker_Data.Personal_Data.Name_Data.Preferred_Name_Data.Name_Detail_Data.First_Name;
                        string last = response.Response_Data.FirstOrDefault().Worker_Data.Personal_Data.Name_Data.Preferred_Name_Data.Name_Detail_Data.Last_Name;
                        Console.WriteLine(first + " " + last);
                    }
                    catch (FaultException fe)
                    {
                        // _logger.LogError("Error occurred invoking GetWorker", fe);
                        //return null;
                        Console.WriteLine("error " + fe.Message);
                    }


 public static Human_ResourcesPortClient CreateHumanResourcesProxy()
        {
            SecurityBindingElement sb = SecurityBindingElement.CreateUserNameOverTransportBindingElement();
            sb.IncludeTimestamp = false;
            const int lim = Int32.MaxValue;
            var timeout = TimeSpan.FromMinutes(2);

            var cb = new CustomBinding(
                sb,
                new TextMessageEncodingBindingElement(MessageVersion.Soap11, Encoding.UTF8)
                {
                   
                    ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas
                    {
                        MaxDepth = lim,
                        MaxStringContentLength = lim,
                        MaxArrayLength = lim,
                        MaxBytesPerRead = lim,
                        MaxNameTableCharCount = lim
                    }
                },
                new HttpsTransportBindingElement
                {
                    MaxBufferPoolSize = lim,
                    MaxReceivedMessageSize = lim,
                    MaxBufferSize = lim,
                    Realm = string.Empty
                })
            {
                SendTimeout = timeout,
                ReceiveTimeout = timeout
            };

            var proxy = new Human_ResourcesPortClient(cb, new EndpointAddress("https://wd5-impl-services1.workday.com/ccx/service//Human_Resources/v23.2"));

            proxy.ClientCredentials.UserName.UserName = "userName@tenant";
            proxy.ClientCredentials.UserName.Password = "pass";
            return proxy;
        }

/////////////////////////

Keep in mind this will work with a worktype of Employee.  You have to change a few things for a Contingent Worker.



Saturday, January 10, 2015

The Project Journey

As a consultant we try very hard to help set the right expectations of how a project may go.  The client and typically us (the consultant) have an undue optimism of trajectory of a project.  Together we typically fool ourselves into thinking the project will go as expected, so as we estimate the project we try to hard to paint a rosy picture.  That nothing could ever go wrong.  Wrong.... 

The longer I do projects the more I try to estimate the way projects typically go.  There is always going to be something that you didn't expect.  Maybe a requirement was tougher than you expected, maybe the client forgot to mention something, maybe the requirements change.  The piece you are depending on to complete a milestone in the project is late.  There are a million things are might happen.  Things never go as expected. 

As consultants we try to 'be nice' to the client, don't want to scare them, try to be their friend.  You want to be their friend, then be honest and help guide them to the end of their journey.  Most of the time its not easy, but that's our job.  So accept it and try to enjoy the journey!  I borrowed this from a friend's Facebook post. A picture says a million words.

Friday, June 6, 2014

ECMA2 schema and multi-valued attributes

Hello all,

I've been working with ECMA2s recently and I've just started to need a multi-valued attribute as part of the object schema.

Working with this, I had a problem trying to populate this attribute during an Import run.

Typically dealing with multi-valued attributes strategies in the past involves iterating through each value using a For Each... loop or something similar.  The issue I was running into was how to designate the index on the multi-valued attribute.  I couldn't find much on the web either.

For ECMA2 schemas I figured out an easy to populate the attribute. Place the value(s) in a List (of Object) type then you can populate the multi-valued attribute with the List.

Here's a little code showing what I mean:

Dim groups As List(Of Object) = New List(Of Object)

'populate groups with values as needed

newCsentry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("groupName", groups))

Hope this helps.
-Peter

Monday, March 10, 2014

SharePoint 2013 and BHold

I've upgraded my FIM installation to 2010 R2 SP1 on a demo machine that I've had for a while and re-installed SharePoint to 2013.  There are some extra things that need to be done for SP2013 and finally got FIM Portal working as expected.

After installing BHold I would get this Error that the Service was unavailable with Error 503.



After doing some research I discovered that SharePoint 2013 doesn't allow 32 bit apps by default.  So the trick is to change a configuration to allow 32 bit apps.

This can be found here: http://www.stefanjohansson.org/2013/07/how-to-run-a-32-bit-web-application-on-a-sharepoint-2013-server/

All you really need to do is run a command line at c:\windows\system32\inetsrv.  Then execute the following command:  appcmd.exe set config -section:system.webServer/globalModules /[name='SPNativeRequestModule'].preCondition:integratedMode,bitness64

Now BHold should work.

Sunday, January 12, 2014

Redmond IDM Summit

Thanks to Oxford Computer Group and Microsoft for another great IDM Summit held in Redmond last week. 
Lots of great presentations, classes and a final panel discussion including IDM world's very own Jackson Shaw.  Great speakers were there like: Stuart Kwan & Mark Wahl.  Jeremy Palenchar discussed his SSO project with the state of Kentucky.  OCG's North American President, Marvin Tansley, discussed pieces of IDM and how they fit together. Other OCG'er discussed ADFS and Cloud technology to name a few. 
I was lucky enough to join Microsoft's Rob de Jong to present/demo BHold's attestation feature, we showed how easy it could be to run attestation campaigns.  Further we showed how you can use the reporting feature to review attestation progress.  Imagine you had an application you wanted to attest to that was not connected to any identity management solution - you could use BHold's reporting feature to hand off a report to the application owner showing those owners that should have permissions revoked. It was great to see the amount of questions and powerful engagement from the audience.  This leads me to believe the US public is coming to the conclusion that audit and compliance are becoming more important.

There were some great after hours events too. We did a tour of three micro-distilleries which was really fantastic!

Here's more information of the summit in case you missed it.  http://www.oxfordcomputergroup.com/redmond-summit-agenda/  . If you're interested they mentioned they are doing it again next year around the same time.

Wednesday, August 7, 2013

Stagger your FIM SSPR end user roll out

Lots of people are now using FIM for their end user self-service password reset requirements.  One of the challenges to rolling this out to the user population is how can you roll this out in phases.  Because what you don't want is come Monday morning have all your users be guided to the registration page and have the FIM server fall over.

So here's some options:
1. Stagger out the roll out of the client extensions.  Depending on how well you can roll this out by department or section, this might be a challenge for you.  Typically once the end user has the client extensions installed then during next logon the client will talk to the FIM Service to see if they need to register.  If you roll out the extensions to your entire user population then you could have a headache that morning.

2. If you opt not to roll the client out then it should be easy enough to send emails to user segments with the Registration link in there.

3. Though not documented after testing it a bit I found another option to stagger out your roll out.  You can deploy the client extensions to all your users at an earlier time.  Then when you're ready, you can just add users to the Password Reset Users set in the FIM Portal.  If the user is not part of the set they won't be directed to the registration page.  Another thing to keep in mind, if users that aren't in the set try to register they'll get a 'Not Authorized' error.

You may decide just to create an AD group to keep it simple then synchronize that group to the above set.  That way your admins continue to deal with what's typically familiar with them.

Tuesday, July 23, 2013

FIM Client Service not starting?

I installed FIM client extensions on a Win 7 box.  All seemed to go well, until the very end when the service was starting.  It never did, ugh.

Not much on this, except make sure the Network Service account had the correct perms on the machine.config file.  But which one?  There's four, so I gave it full perms on all four; a security violation? ahhh this was a dev environment anyways.  That didn't fix the problem, so what's next. 

I did realize the client box was a VM and pretty slow, so I changed the service time-out from 30 seconds (default) to 60 seconds. here's the blog on that one, if you want to try it yourself. This just caused the slow failure to go even slower... Strike 2.

After thinking about it, I remembered in the past having issues with services not starting if there was no internet connection.  This was true - my dev environment had no internet connection, so I went back and found some notes on this topic.  But then I also remembered there was an IE trick I learned from a buddy (thanks Frank Drewes!)  the idea is to just turn off CRL checking directly in IE.  This was straight-forward and easy to do. Caveat:  not really the best for a permanent solution as this is a per user setting.  So if this client reboots it'll probably time out again.  But if this works then you solved the mystery!



After doing this the service started right up.  Time for a beer.





Hopefully this'll help out others in the same boat.

Wednesday, January 30, 2013

BHold's New Connector in SP1

As I mentioned in my last post, Microsoft announced the release of FIM R2 SP1 and with that BHold's new bits too.  Something that was sorely lacking with the BHold solution was a dedicated connector between BHold Core and FIM Sync.  This latest release offers the first look at this new connector.

If you go to Microsoft's TechNet Site here to can try it yourself.  I did this last week and found a few issues with the instructions.

The biggest problem deals with the provisioning of OU containers in BHold. When you finish the lab all the OU containers stay under the root.  This is due to not having the reference of the parent containers correct.  The lab uses a SQL database as a source of the OU containers.  But the premise of using a string value of the parent attribute is incorrect, instead is should be a reference value.   I'm don't give out all the details, but most of you can figure it out from here.

Once you fix that AND make sure you also bring over the root container so that the references work all the way up, then it should be smooth sailing.   If you need any help just email me.

Thursday, January 10, 2013

FIM 2010 R2 SP1 has been released!

I heard this at the IdM Summit in Redmond put on by Oxford Computer Group - just got back yesterday.  Nice summit by the way, the usual suspects were there as well as some new faces.
Anyways, it was announced that SP1 bits have been released, and with that the SP1 bits for BHold too.  Very cool, one of the biggest steps forward with the BHold product is the replacement of the FIM Management Agent for BHold.  BHold now takes full advantage of the ECMA2 connector technology in FIM 2010 R2 and with that replaces the BFPC and BFSS services also. As the summit was winding down, I sat down and spent some time with Rob de Jong, Senior PM at Microsoft for BHold, understanding SP1 - but do keep in mind this is a Service Pack - lots of fixes.  The sync engine got a tune up also increasing its sync speed by another 20% 
To get the latest bits you need to have an MSDN or select license, and the documentation won't be out for some time after that... like a few weeks.

One last thing: would like to send a special thank you to Matt Flynn for driving around yesterday.  Matt, I owe you at least the parking fee, if not some beers!

Wednesday, October 24, 2012

Lotus Notes Provisioning Experience

So I was at a client and had to remember how to provision to Lotus Notes.  Unfortunately I didn't have a lot of my notes and there's always something new from client to client so some learning was needed.

Let's start with the address book:  this is the target database where users will ultimately be created.  Also in Notes terms user objects are called Person documents.  So keep that in mind.  The default address book is called names.nsf -

I was given an address book that happened to be down a few levels from the top level.  What does this mean?  When you log in to the Lotus Notes client, you open the database be first entering the Server value (sometimes called Hierarchical server name) of ServerName/Location/sub-location.  This should be given to you by your Notes admin.  Then you browse around at this level until you find the name.nsf database, typically.  In my case the database was several folders deep, but was called names.nsf.  Unfortunately I would keep getting an error when trying to provision the user object to the Notes CS.  The error was:

NoCompatiblePartitionFoundException: The partition filter criteria...

The error went away after I was given access to use a top-level database.  But the name of that database was not the default names.nsf, which lead me to my next error.  When I tried to export this new user I would get:

Could not create objects in the address book. Primary address book not configured on the Lotus Notes server.

Google didn't help much to figure out this error, so I interpreted this to mean that FIM needs to write to the default database(names.nsf) first, then a secondary address book could be configured.  When I was finally given rights to export to the names.nsf address book (at the top level) the error went away, and was able to create the user object.  Maybe someone else can explain this.

Also while configuring the MA remember you need to configure the certifiers.  What's a certifier you ask?  A Notes admin explained it to me like this:  the certifier represents the  single OU structure like OU=abc,O=local (similar to AD), but it also includes an ID file that goes with it.  When I asked why they needed this, I was told it had something to do with security.  Oh yea and the ID file has a password too.  It's Notes' way of certifying the user created by someone authorized.

Here's a link to find standard provisioning code:  http://msdn.microsoft.com/en-us/library/windows/desktop/aa965243(v=vs.85).aspx

Provisioning code lesson
csentry("_MMS_IDStoreType").IntegerValue = 1  ' ID File as an attachment  - this means it places the ID file in the database (I think)

if you need to put the id file somewhere then use the following 2 lines.
csentry("_MMS_IDStoreType").IntegerValue = 2 'ID File will be generated then you have to tell it where you want it to go see next line
csentry("_MMS_IDPath").Value = \<filename>.id


Friday, October 21, 2011

Reference membership of a set in FIM Portal

Sometimes you may want to have a group or set in the FIM portal be calculated from another group or set.

Unfortunately, the source can’t be a group, so stop there.  But if it’s a set then you’re OK.  The great thing about sets is that you can have both criteria based and manual users in it. Once you have it in a group export it to AD.  Now you have a solution a group with criteria based and manual users that can be administered from the FIM Portal.

 

  At this point create your target group (or set), go to members tab and do the following:

image

By choosing ResourceID ‘in’ <source set> it’ll do the trick.

Of course you could always go back the XPath filter, something like this:  /Person[ObjectID = /Group[DisplayName = 'sourceSet']/ComputedMember, but why when you can use the GUI.

Thursday, October 20, 2011

How to export AD LDS schema

Working for a client I needed to stand up an LDAP client and create a new class and attributes.  It was about 35 new attributes and take take a while when you have to do each one manually.  Now it’s time to move it to QA.  There ain’t a whole lot out there for exporting LDAP schema and of course the old LDIFE was giving me grief.  So after more searching I stumbled on a TechNet article and there it was.

It’s already installed if you set up ADLDS.  Look in \windows\ADAM it’s called ADSchemaAnalyzer.  I think it’s purpose is to compare different schema, but it also exports them to LDIF – Sweet!

First ‘load target schema’, then ‘load base schema’  I don’t know why, I didn’t have time to find out.  Then walk the tree and you’ll see all the object classes and attributes.  Now if you created an object class and new attributes just for that object, just select the new object class and the attributes will come along automatically.

image

Now Create LDIF file and away you go.  Very awesome!