Trifork Blog

Setting up PWM as a password recovery tool for OpenLDAP

No Comments

A running LDAP implementation without a password recovery service for users can be a real hassle for system administrators, in our case every time when a user forgets his/her password the only way to reset/change it was to go to the system administrator let him fix it.

As a solution for this problem we stumbled upon PWM as a password recovery service and in this blogpost will describe the steps you have to take to implement this yourself.

The reasons why we chose PWM as our service of choice are the following:

  • Open-source and still being actively developed.
  • It works with multiple LDAP implementations, including OpenLDAP.
  • Pretty intuitive design for the end-user.
  • A vast amount of configuration options, of which configuring our own password policy is one option.
  • Able to recover password by sending and Email/SMS token or PIN.
  • Captcha Integration with Google re-Captcha.
  • Event logs and statistics that are available to administrators.

The rest of this post will focus on walking through the installation and initial configuration of PWM with an OpenLDAP system. Most of the things we describe can also be found in the PWM administration guide or from other sources. However, some things (eg. configuration of certain modules in PWM) we didn’t immediately understand and we will describe some tips/solutions here.

Read the rest of this entry »

Posted in: General | Knowledge

A wrinkle in time

1 Comment

Leap second

I clearly remember the morning of Sunday July 1, 2012, almost three years ago. I was at church, actually, when I got a call from one of our clients: “The website doesn’t seem to be working.” All I could check at that point was that, indeed, the website was not responding. So I called our sysadmin, who found that even SSH-ing into the machine running the site was taking much longer than usual. Finally, restarting everything solved the problem, but we were still unsure about what had happened.

As we found out later, it was related to the leap second, a phenomenon I had not even heard of until then. Read the rest of this entry »

Posted in: From The Trenches | Java

WWDC 2015: Auto Layout improvements

No Comments

mysteries-of-auto-layout
Last weekend I arrived home safe and sound, already missing San Francisco. I had a wonderful time there and I have lots to talk about, but there was one topic in particular I think was not highlighted enough. That’s why I want to discuss it here. It was discussed in the following talks during WWDC:

Mysteries of Auto Layout – part 1
Mysteries of Auto Layout – part 2

I am a big fan of auto layout since it was introduced in iOS 6 and especially by using it directly in code, not by using Storyboard. But when using it in code it can get really verbose. I wrote some classes around that to make the resulting code much more compact. I wasn’t happy with my solution. So I was planning to go to a Lab during WWDC, to ask an actual Apple auto-layout engineer for his opinion about this matter. But it turned out I didn’t have to! Apple solved most of the problems I was having with Auto Layout with new API’s in iOS 9! In this blog I want to highlight those new API’s which make it easier to work with Auto Layout both in code and in Storyboard!
Read the rest of this entry »

Posted in: Conference | iPad | iPhone | Swift

GOTO Amsterdam: last minute updates

No Comments

Goto Conference

One of the cool things of organizing a conference is dealing with the unexpected. The workshops are busy and tomorrow the conference kicks of with an awesome program. In the last days before the conference we had a few unfortunate cancellations for which we needed to find replacements.  We worked really hard but with great pride can announce our latest speakers for GOTO Amsterdam!

Read the rest of this entry »

Posted in: Conference

Introducing GOTO London 2015

No Comments

adrian-cockcroft-new-big1

You Should GOTO This Conference: Software Development That is Agile, Lean and Rugged

Competitive pressures have pushed speed of software development to become one of the highest priorities for businesses today. Improved tools and techniques have moved the state-of-the-art in agile development from pushing monolithic updates every few weeks to a continuous delivery of “micro-services” several times a day. But this move to “run what you wrote” and developer-driven infrastructure means developers are not only delivering products faster today, but are also responsible for the efficiency and safety of those products once they move into production.

This is a major shift in software development, and it forms a narrative that will underlie programming at the upcoming GOTO London technology conference, which I am helping organize and will be held Sept. 14-18.

Read the rest of this entry »

Posted in: Conference

WWDC Day 1 continued

No Comments

IMG_1832
Hello again from San Francisco! I just came back from the conference after attending it for the third day in a row! I have seen many interesting talks so far ranging from Swift to WatchKit and UI design. There is so much to talk about, but in my previous blog entry I could only cover the keynote of the first day. Otherwise it would have been way longer! So let’s continue where I left off …
Read the rest of this entry »

Posted in: Apple Watch | Conference | iPad | iPhone

GOTO Amsterdam 2015: about puzzles and love

No Comments

Goto ConferenceIn one week GOTO Amsterdam 2015 is busy (workshops) or you might be wondering what session to attend. When I started this journey 8 months ago, I wanted to create the best conference I could think of. For me quality has always been the main focus point. When we came to the final stages of shaping the program for GOTO Amsterdam I became aware that if I would attend the conference, I would have a hard time in deciding which session to attend to. I asked multiple attendees of this years edition what they thought of the conference and I heard the same thing over and over again: it is really difficult to choose because there are so many great sessions! This post is about how the talks, the topics and the tracks are woven into the GOTO Amsterdam 2015 conference. (I hope it helps you)

Read the rest of this entry »

Posted in: Conference

WWDC Day 1

No Comments

blog-banner-wwdc2015

Greetings from my hotel room in San Francisco, from where I’m writing this blog post. Right now it’s Tuesday evening and it has been two exciting days at the WWDC which takes place this week from Monday the 8th until Friday the 12th of June as I had announced earlier. Although I have three more days to go, I already wanted to give you guys an update on how everything has been going so far.

I have so much to talk about so I am trying to be brief, but I can already tell this isn’t going to be a short blog post. So get a cup of coffee, get a comfortable chair, sit back and relax. Are you ready? Here goes …
Read the rest of this entry »

Posted in: Conference

Axon from the trenches: how to keep your code compatible with legacy events and Sagas

1 Comment

Imagine you’re using Axon to run an event sourcing application. Your production event store might contain millions of events, created in various versions of the application. Wouldn’t it be nice to know for sure that the latest version of your application plays nicely with all your production events and Sagas, including those from previous versions? Well, you can check for that, and it is fairly easy. Read the rest of this entry »

Posted in: Custom Development | From The Trenches

iOS perspective on mobile development with Xamarin

1 Comment

One of the fundamental mantras of software development is DRY – “Don’t repeat yourself”. It’s an important rule, because it allows us to save both space and time. Instead of rewriting a non-trivial algorithm, we use a method call, instead of correcting bugs in multiple places, we do it only in one. Would you ever not follow DRY? Well… yes, when you need to develop a mobile app. If your plan is to get as many customers as possible, releasing an iOS and Android version is a must. This means maintaining two very similar codebases. Can we do better? The answer is yes and it’s called Xamarin. It’s the platform we’re using for some of our newest projects here at Trifork, and we would like to share with you our experiences, likes and dislikes. Read on if you’re not afraid to abandon Xcode and Objective C.

Read the rest of this entry »

Posted in: C# | Custom Development | iPad | iPhone | Mobile