Issue #830 has been updated by Clément OUDOT.
Maybe we should just do what Red Hat do in its own package:
<pre>
getent group ldap >/dev/null || groupadd -r -g 55 ldap
if ! getent passwd ldap >/dev/null; then
useradd -r -g ldap -u 55 -d %{_sharedstatedir}/ldap -s /sbin/nologin -c
"LDAP User" ldap
# setup ownership of database files
if [ -d /var/lib/ldap ] ; then
for dbfile in /var/lib/ldap/* ; do
if [ -f $dbfile ] ; then
chown ldap:ldap $dbfile
fi
done
fi
fi
</pre>
----------------------------------------
Bug #830: Adduser in 2.4.44
http://tools.lsc-project.org/issues/830
Author: Petur Thorsteinsson
Status: Assigned
Priority: Normal
Assigned to: Clément OUDOT
Category: OpenLDAP RPM
Target version: openldap-rpm-?
Hi,
I would just like to say you have a great project here!
And I wanted to point out a slight problem with the rpm file for the 2.4.44
version.
It is in this changeset:
http://tools.ltb-project.org/projects/ltb/repository/revisions/415/diff/openldap-rpm/trunk/SPECS/openldap-ltb.spec
the commands 'groupadd' and 'useradd' got changed to 'addgroup' and 'adduser'.
'addgroup' is not recognized on redhat.
I see that 'adduser' is available in RHEL7, but as a symlink to 'useradd'
A workaround would be to symlink the addgroup command also.
Another thing is that the rpm installation does not show any errors, despite
the command not being found. I would have thought that the installation would
have stopped immediately?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev