[Asterisk-Users] Asterisk LDAP Authentication Problem
Chandan Mishra
chandan.iitr at gmail.com
Tue Jan 17 11:10:59 MST 2006
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<http://www.asterisk-ev.org/download/astirectory-1.2-0.3.tgz>.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060117/73bb3db6/attachment.htm
More information about the asterisk-users
mailing list