Hi Harish, Are you sure you are using the correct LDAP cfg file ? because you configured 127.0.0.1:389 <http://127.0.0.1:389>, but in logs I see 10.100.104.28:389 <http://10.100.104.28:389> . Are you sure you properly configured the IP where the ldap server is listening?
Regards, Bogdan Cruxdude wrote: > Hi, > > I am currently trying to use LDAP authorization for my opensips > server. I have setup an LDAP server using openldap in the same machine. > > I created an ldap config file and set the > ldap_server_url = ip-address of teh machine:389 > > Now when I try to authorize using LDAP. I get the following error message > > Aug 20 12:48:17 localhost /usr/local/sbin/opensips[4229]: > ERROR:ldap:ldap_connect: [sipaccounts]: ldap_initialize > (10.100.104.28:389 <http://10.100.104.28:389>) failed: Bad parameter > to an ldap routine > Aug 20 12:48:17 localhost /usr/local/sbin/opensips[4229]: > ERROR:ldap:child_init: [sipaccounts]: failed to connect to LDAP host(s) > Aug 20 12:48:17 localhost /usr/local/sbin/opensips[4229]: > ERROR:core:init_mod_child: failed to initializing module ldap, rank 2 > > followed by more error messages similar to this. > > Could anyone guide me on what I could have done wrong? > > This is my ldap.cfg file > > [sipaccounts] > ldap_server_url = "127.0.0.1:389 <http://127.0.0.1:389>" > ldap_bind_dn = "cn=root, dc=example, dc=com" > ldap_bind_password = "root123" > ldap_network_timeout = 500 > ldap_client_bind_timeout = 500 > > Thanks, > Harish > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
