[SOLVED] How to use ports 389 and 686 for LDAP

Could someone explain to me how to enable port 389 and 686 for LDAP?

I need to troubleshoot an app which doesn’t seem to like any deviation from the default ports, and is configurable only via GUI.

When I change in UCR “slapd/port = 7389” to “slapd/port = 7389, 389” all I get is slapd error on restart:

Restarting the service slapd failed:
Warning: The unit file, source configuration file or drop-ins of slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Loaded: loaded (/etc/init.d/slapd; generated)
Active: failed (Result: exit-code) since Wed 2024-11-06 14:33:05 GMT; 15ms ago
Docs: man:systemd-sysv-generator(8)
Process: 30842 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)

Nov 06 14:33:05 dc01 slapd[30842]: Starting ldap server(s): slapd ...failed.
Nov 06 14:33:05 dc01 slapschema[30857]: Loaded metadata from "/usr/share/univention-management-console/saml/idp/ucs-sso.71irsqn.lan.xml"
Nov 06 14:33:05 dc01 slapschema[30857]: No trusted audiences configured
Nov 06 14:33:05 dc01 slapschema[30857]: oauthbearer_client_plug_init() failed in sasl_server_add_plugin(): error when parsing configuration file
Nov 06 14:33:05 dc01 slapschema[30857]: _sasl_plugin_load failed on sasl_server_plug_init for plugin: oauthbearer
Nov 06 14:33:05 dc01 slapschema[30857]: DIGEST-MD5 common mech free
Nov 06 14:33:05 dc01 slapd[30842]: .
Nov 06 14:33:05 dc01 systemd[1]: slapd.service: Control process exited, code=exited, status=1/FAILURE
Nov 06 14:33:05 dc01 systemd[1]: slapd.service: Failed with result 'exit-code'.
Nov 06 14:33:05 dc01 systemd[1]: Failed to start LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).

Any hints are greatly appreciated

uninstall samba
in ucs with samba installed samba uses ports 389 and ldap 7389

rg
christian

ahh I see,
You are right, I missed the fact that port 389 is enabled for samba in the firewall.

Mastodon