Add phosphor-ldap-mapper to phosphor-ldap package
phosphor-ldap-mapper application enables user to configure privilege
mappings for LDAP groups.
Change-Id: I44e4aca8d3049dfe6c9be80e8ed6582025b749ab
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.LDAP.PrivilegeMapper.service b/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.LDAP.PrivilegeMapper.service
new file mode 100644
index 0000000..38c6360
--- /dev/null
+++ b/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/recipes-phosphor/users/phosphor-user-manager_git.bb b/recipes-phosphor/users/phosphor-user-manager_git.bb
index d0f261f..3fa1b70 100644
--- a/recipes-phosphor/users/phosphor-user-manager_git.bb
+++ b/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"