I need to run a certain application on a CentOS 7.5 based system. This application needs to bind to port 389 in order to expose a ldap service.
This application is run by SystemD but fails to start because the user I have to use for running the app is not allowed to bind to ports lower than 1024.
I already tried to
setcap 'cap_net_bind_service=+ep' /opt/jdk8/bin/java but after this Java is not even able to start.
I've already seen solutions based on iptables forward, ssh tunnels etcetera. All of this "magic" is not allowed on the system I have to use. I guess the same applies to
Is there some setting I can use within SystemD ? I am sure it can somehow be done because I have to run
nginx on port
80 with the same user and there it works.
As I don't have the sourcecode of the application I can not change the way it opens the port.