From 795692773039685b213df7aa708f50688a1f0830 Mon Sep 17 00:00:00 2001
From: Matvey Aksenov
Before all that, though, here's the obligatory module header
describing the language extensions and imports used later,
- so you can follow along:
+ so that you can follow along:
- The typical LDAP authentication routine has three steps.
+ The typical LDAP authentication routine has three steps:
{-# LANGUAGE OverloadedStrings #-}
@@ -123,7 +123,7 @@ $ cabal install ldap-haskell/ldap-haskell.cabalLDAP Authentication
- We will encapsulate the first two steps in a separate function as it is a + We will encapsulate the first two steps in a separate function as it's a fairly self-contained operation:
@@ -151,8 +151,8 @@ findUser l (managerDn, managerPassword) userName =
- The third step uses the Dn; we will pass it through since
- it will be useful to changePassword.
+ The third step uses the Dn we've got from findUser; we will
+ pass it through since it will be useful to changePassword.
- In the real code you will, obviously, use something better than error.
-