dbaarda / LightLdapd

Tiny LDAP server exporting NSS databases using PAM authentication.
GNU General Public License v3.0
2 stars 1 forks source link

Debian package doesn't create lightldapd user. #7

Open dbaarda opened 5 years ago

dbaarda commented 5 years ago

The debian package by default just runs lightldapd as root.

Instead it should create a lightldapd user and run lightldapd with '-u lightldapd'.

It might also be nice to optionally set a password for lightldapd, add lightldapd to group shadow, and run it with '-r lightldapd'. This would allow lightldapd to export shadowAccount data. However, this is a security hole if the client machines (specifically root on client machines with access to the lightldapd password) are untrusted, so it should be optional, and not the default.