Hi <br>I need to authenticate all the asterisk users from the LDAP server instead of from sip.conf.<br>If anybody already have done this then please guide.<br><br>I tried to integrate authenticate asterisk users from LDAP using the open source project
astirectory1.2.0.<br>After using the astirectory1.2.0 , now when the asterisk starts then it registeres with the LDAP. Following logs shows it.<br><br>Jan 18 18:36:20 WARNING[26190]: res_config_ldap.c:641 parse_config: LDAP RealTime Host:
<a href="ldap://192.168.0.16">ldap://192.168.0.16</a><br>Jan 18 18:36:20 WARNING[26190]: res_config_ldap.c:642 parse_config: LDAP RealTime User: synapse\dirsearch<br>Jan 18 18:36:20 WARNING[26190]: res_config_ldap.c:643 parse_config: LDAP RealTime Base DN: dc=synapse,dc=com
<br>Jan 18 18:36:20 WARNING[26190]: res_config_ldap.c:699 ldap_reconnect: ldapuser:synapse\dirsearch ,ldappass12345678<br>Jan 18 18:36:20 WARNING[26190]: res_config_ldap.c:701 ldap_reconnect: LDAP RealTime: Successfully connected to LDAP.
<br>Jan 18 18:36:20 NOTICE[26190]: config.c:863 ast_config_engine_register: Registered Config Engine ldap <br clear="all"><br>But when i try to connect the asterisk server using my Xlite client then the first asterisk registers with the LDAP but the XLite user is not able to authenticate. Following logs shows it.
<br><br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:118 realtime_ldap: LDAP RealTime: Retrieve LDAP: (&(objectClass=astsippeer)(astname=dirsearch))<br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:699 ldap_reconnect: ldapuser:synapse\dirsearch ,ldappass12345678
<br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:701 ldap_reconnect: LDAP RealTime: Successfully connected to LDAP.<br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:129 realtime_ldap: LDAP RealTime: Failed to query database. Check debug for more info.
<br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:130 realtime_ldap: LDAP RealTime: Query: (&(objectClass=astsippeer)(astname=dirsearch))<br>Jan 18 18:47:38 WARNING[26197]: res_config_ldap.c:132 realtime_ldap: LDAP RealTime: Query Failed because: Operations error
<br>Jan 18 18:47:38 NOTICE[26197]: chan_sip.c:10815 handle_request_register: Registration from 'dirsearch <<a href="mailto:sip:dirsearch@192.168.3.169">sip:dirsearch@192.168.3.169</a>>' failed for '<a href="http://192.168.1.186">
192.168.1.186</a>' - Username/auth name mismatch<br><br>actually ldap_search_s(ldap, ldapbasedn, LDAP_SCOPE_ONELEVEL, query2, NULL, 0, &res) function is not execution successfully in the file res_config_ldap.c. <br><br>
I am not able to find the reason. <br><br><br>Chandan<br><br>