[SR-Users] Usage of ldap/db2_ldap

DEV dev at dolphin-it.de
Sun Feb 14 01:51:35 CET 2021


Hi!

I'm trying to use the ldap / db2_ldap module in kamailio but I'm stuck because the docs seem to either be outdated or me being on the wrong track.

>From what I understand, I need a single ldap.conf but there are two example files with different syntax:
1) https://github.com/kamailio/kamailio/blob/master/src/modules/db2_ldap/ldap.cfg
2) https://github.com/kamailio/kamailio/blob/master/src/modules/ldap/etc/ldap.cfg

I'm already using ldap realtime for asterisk and want to switch kamailio to use the same objects by using this schema:
https://github.com/kamailio/kamailio/blob/master/src/modules/db2_ldap/ser.schema

When using syntax from (1) I receive this error:
ERROR: ldap [ldap_mod.c:198]: mod_init(): no section found in config_file [/etc/kamailio/ldap.cfg]

I double-checked my conf and it matches (1).

When using (2), I got an error, telling me I left some tables unconfigured (even when mixing both syntax).

What is the correct syntax to use ldap as my auth module and replace mysql auth tables?

Thank you.

Kind regards
Kevin


More information about the sr-users mailing list