summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/users/phosphor-user-manager
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2018-09-04 05:56:42 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-11-20 07:02:52 +0300
commitdf045f1646e243572ced34273e4b8ba538732790 (patch)
tree0dda17ac8934275793509ab8d0f33812d3634bd3 /meta-phosphor/recipes-phosphor/users/phosphor-user-manager
parenteeee14fc402d0c54cf0b6480494abb5353c44e67 (diff)
downloadopenbmc-df045f1646e243572ced34273e4b8ba538732790.tar.xz
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 <ngorugan@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/users/phosphor-user-manager')
-rw-r--r--meta-phosphor/recipes-phosphor/users/phosphor-user-manager/xyz.openbmc_project.Ldap.Config.service15
1 files changed, 15 insertions, 0 deletions
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}