I've also tried this:
modparam("ldap", "config_file", "/etc/kamailio/my-ldap.cfg") modparam("db2_ldap", "config", "/etc/kamailio/ldap.cfg")
-> ERROR: <core> [db.c:204]: db_bind_mod(): Module db_ldap not found. Missing loadmodule? -> ERROR: auth_db [auth_db_mod.c:175]: mod_init(): unable to bind to a database driver
modparam("ldap", "config_file", "/etc/kamailio/my-ldap.cfg") modparam("ldap", "config", "/etc/kamailio/ldap.cfg")
-> ERROR: <core> [core/modparam.c:164]: set_mod_param_regex(): parameter <config> of type <1:string> not found in module <ldap> -> CRITICAL: <core> [core/cfg.y:3591]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 410, column 52: Can't set module parameter
:-(
Kind regards Kevin
________________________________________ Von: sr-users sr-users-bounces@lists.kamailio.org im Auftrag von DEV dev@dolphin-it.de Gesendet: Sonntag, 14. Februar 2021 01:51 An: sr-users@lists.kamailio.org Betreff: [SR-Users] Usage of ldap/db2_ldap
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.c... 2) https://github.com/kamailio/kamailio/blob/master/src/modules/ldap/etc/ldap.c...
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.sc...
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 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users