Hi everybody,<div><br></div><div>I would like to use realtime authentification with my LDAP.</div><div><br></div><div>My Asterisk is v. 1.6.1.12. I'm using OpenLDAP</div><div><br></div><div>The command realtime ldap status is OK.</div>
<div>I have configure these files : </div><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">/etc/asterisk/extconfig <br>/etc/asterisk/res_ldap.conf <br>
/etc/asterisk/extensions.ael</span></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div>
<font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;">I do nothing and I have that in my console :</span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><pre class="alt2" dir="ltr" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(225, 228, 242); color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 640px; height: 66px; text-align: left; overflow-x: auto; overflow-y: auto; background-position: initial initial; ">
[Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:809 realtime_ldap_base_ap: Failed to query database. Check debug for more info.
[Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:810 realtime_ldap_base_ap: Query: (&(uid=)(<a href="http://ldapauth.toto.com">ldapauth.toto.com</a>=dynamic))
[Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:811 realtime_ldap_base_ap: Query Failed because: Bad search filter</pre></span></span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;">Did I have to configure LDAP schema ?</span></font></div>
<div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;">For example when I did a ldapsearch from my server my response is like that :</span></font></div>
<div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">dn: uid=toto,ou=PersonToto,o=toto,c=com<br>
objectClass: inetOrgPerson<br>objectClass: top<br>objectClass: person<br>objectClass: organizationalPerson<br>objectClass: posixAccount<br>objectClass: totoPerson<br>objectClass: rolodapUser<br>objectClass: sambaSamAccount<br>
uid: toto<br>sn: toto<br>givenName: tati<br>personidsite: 26<br>cn: tati toto<br>gidNumber: 1000<br>uidNumber: 8019<br>alias: <a href="mailto:tati.toto@toto.com" style="color: rgb(34, 34, 156); ">tati.toto@toto.com</a><br>
mail: <a href="mailto:ttoto@toto.com" style="color: rgb(34, 34, 156); ">ttoto@toto.com</a><br>userPassword:: e2NyeXB0fSQxJGl2TmhQTFdiJG9uWE9tcRTGDGDGtttdgGViLz A=</span></span></font></div><div><font class="Apple-style-span" face="verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" face="verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Did I miss something ?</span></font></span></font></div>
<div><font class="Apple-style-span" face="verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" face="verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Thanks for your help.<br clear="all">
</span></font></span></font><br><div>Best Regards</div><div><br>-- <br>John<br><br><br><br>
</div></div>