Hi

I want to authenticate the asterisk users from the LDAP directory server not from the sip.conf.
I tried to use the astirectory-1.2 . But i am not able to  configure it properly. If somebody
used it then please help.

In the res_ldap.conf file i made the following entries. I am using my normal username and password to connect my asterisk server to the LDAP server of my organization. Is some administrator login is requried to connect ?

[general]
ldapuser=cn=chandan.mishra,dc=synapse,dc=com
ldaphost=ldap://192.168.0.16
ldappass=chandan123
ldapbasedn=dc=synapse,dc=com

After this the asterisk is not able to connect to the ldap database. And hence asterisk is not able to start.

Its giving me following errors:
  == Parsing '/etc/asterisk/res_ldap.conf': Found
Jan 17 23:38:09 WARNING[11207]: res_config_ldap.c:615 parse_config: LDAP RealTime: No database host found, using localhost via socket.
Jan 17 23:38:09 WARNING[11207]: res_config_ldap.c:630 parse_config: LDAP RealTime Host: ldap://localhost
Jan 17 23:38:09 WARNING[11207]: res_config_ldap.c:631 parse_config: LDAP RealTime User: cn= chandan.mishra,dc=synapse,dc=com
Jan 17 23:38:09 WARNING[11207]: res_config_ldap.c:632 parse_config: LDAP RealTime Base DN: dc=synapse,dc=com
Jan 17 23:38:09 ERROR[11207]: res_config_ldap.c:708 ldap_reconnect: LDAP failed to bind (host= ldap://localhost, user=cn=chandan.mishra,dc=synapse,dc=com Can't contact LDAP server 0)!
Jan 17 23:38:09 ERROR[11207]: res_config_ldap.c:708 ldap_reconnect: LDAP failed to bind (host= ldap://localhost, user=cn=chandan.mishra,dc=synapse,dc=com Can't contact LDAP server 1)!
Jan 17 23:38:09 ERROR[11207]: res_config_ldap.c:708 ldap_reconnect: LDAP failed to bind (host=ldap://localhost , user=cn=chandan.mishra,dc=synapse,dc=com Can't contact LDAP server 2)!
Jan 17 23:38:09 WARNING[11207]: res_config_ldap.c:539 load_module: LDAP RealTime: Couldn't establish connection. Check debug.


Thanks

Chandan

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to