Add phosphor-ldap-mapper to phosphor-ldap package

phosphor-ldap-mapper application enables user to configure privilege
mappings for LDAP groups.

(From meta-phosphor rev: 70474377eae07d9e561c5cdcf267f18ba14e64de)

Change-Id: Iac338a45f6be53727012e6883ef805ca9138231d
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.LDAP.PrivilegeMapper.service b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.LDAP.PrivilegeMapper.service
new file mode 100644
index 0000000..38c6360
--- /dev/null
+++ b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.LDAP.PrivilegeMapper.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Phosphor LDAP privilege mapper
+
+[Service]
+ExecStart=/usr/bin/env phosphor-ldap-mapper
+SyslogIdentifier=phosphor-ldap-mapper
+Restart=always
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb
index d0f261f..3fa1b70 100644
--- a/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb
+++ b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb
@@ -29,8 +29,12 @@
 DBUS_SERVICE_${PN} += "xyz.openbmc_project.User.Manager.service"
 FILES_phosphor-ldap += " \
         ${sbindir}/phosphor-ldap-conf \
+        ${sbindir}/phosphor-ldap-mapper \
 "
-DBUS_SERVICE_phosphor-ldap = "xyz.openbmc_project.Ldap.Config.service"
+DBUS_SERVICE_phosphor-ldap = " \
+        xyz.openbmc_project.Ldap.Config.service \
+        xyz.openbmc_project.LDAP.PrivilegeMapper.service \
+"
 SRC_URI += "git://github.com/openbmc/phosphor-user-manager"
 SRCREV = "9891f2f8f330cfe678098342bd1cb536e5810233"
 S = "${WORKDIR}/git"