From df045f1646e243572ced34273e4b8ba538732790 Mon Sep 17 00:00:00 2001 From: Nagaraju Goruganti Date: Mon, 3 Sep 2018 21:56:42 -0500 Subject: Add new LDAP config package Package app phosphor-ldap-conf. This app implements an API to update the LDAP config file i.e /etc/nslcd.conf. This commit also creates a file:/etc/nslcd.conf.default, which is to be restored as /etc/nslcd.conf when we disable LDAP configuration. (From meta-phosphor rev: 6d7f640d702b5853268bec58e8529516e7884493) Change-Id: I7183652732c2200b5cc0a644ddb179c8784eb0fb Signed-off-by: Nagaraju Goruganti Signed-off-by: Brad Bishop --- .../xyz.openbmc_project.Ldap.Config.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.Ldap.Config.service (limited to 'meta-phosphor/recipes-phosphor/users/phosphor-user-manager') diff --git a/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.Ldap.Config.service b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.Ldap.Config.service new file mode 100644 index 000000000..dc6d0da4f --- /dev/null +++ b/meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.Ldap.Config.service @@ -0,0 +1,15 @@ +[Unit] +Description=Phosphor Ldap config updater +Wants=nslcd.service nscd.service +After=nslcd.service nscd.service +Before=xyz.openbmc_project.Software.Sync.service + +[Service] +ExecStart=/usr/bin/env phosphor-ldap-conf +SyslogIdentifier=phosphor-ldap-conf +Restart=always +Type=dbus +BusName={BUSNAME} + +[Install] +WantedBy={SYSTEMD_DEFAULT_TARGET} -- cgit v1.2.3