[OpenSIPS-Users] Using LDAP for Authorization

Cruxdude cheeku.bits at gmail.com
Thu Aug 20 21:55:58 CEST 2009


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)
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"
ldap_bind_dn = "cn=root, dc=example, dc=com"
ldap_bind_password = "root123"
ldap_network_timeout = 500
ldap_client_bind_timeout = 500

Thanks,
Harish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090820/45b986ac/attachment.htm 


More information about the Users mailing list