Posting your email again after 12 hours is not going to make anyone more likely to help you. Please don't do that.<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 11:39 AM, Samira Hosseini <span dir="ltr"><<a href="mailto:samiramhosseini@yahoo.com" target="_blank">samiramhosseini@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">
<span><br></span></div><div><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px"><div style="font-family:arial,helvetica,sans-serif">
<div style="font-family:'times new roman','new york',times,serif"><div dir="ltr"><font><font face="arial, helvetica, sans-serif"><br></font> </font> </div> <br><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div dir="ltr" style="font-size:12pt;font-family:arial,helvetica,sans-serif">Hello all,</div><div dir="ltr" style="font-size:12pt;font-family:arial,helvetica,sans-serif">
<br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">I am going to register asterisk sip users through active directory accounts LDAP (that is a separated server with ip : 192.168.11.17)</div>
<div dir="ltr" style="font-size:12pt;font-family:arial,helvetica,sans-serif">So I have followed the below link as well:</div><div dir="ltr" style="font-size:12pt;font-family:arial,helvetica,sans-serif"><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<a rel="nofollow" href="https://wiki.asterisk.org/wiki/display/AST/LDAP+Realtime+Driver" target="_blank">https://wiki.asterisk.org/wiki/display/AST/LDAP+Realtime+Driver</a><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<a rel="nofollow" href="http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html" target="_blank">http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html</a><br>
</div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif"><a rel="nofollow" href="http://ensiwiki.ensimag.fr/index.php/Asterisk's_external_configuration_(LDAP)" target="_blank">http://ensiwiki.ensimag.fr/index.php/Asterisk's_external_configuration_(LDAP)</a><br>
</div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
Server:192.168.14.90
=> asterisk</div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">server:192.168.11.17 => ActiveDirectory</div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
Finally, this is my configuration file :</div><div dir="ltr" style="background-color:transparent"><div dir="ltr" style="background-color:transparent"><br></div><div dir="ltr" style="background-color:transparent"><div dir="ltr" style="background-color:transparent">
<span style="font-family:arial,helvetica,sans-serif">[root@PBX ~]# telnet 192.168.11.17 389</span></div><div dir="ltr" style="background-color:transparent"><span style="font-family:arial,helvetica,sans-serif">Trying 192.168.11.17...</span></div>
<div dir="ltr" style="background-color:transparent"><span style="font-family:arial,helvetica,sans-serif">Connected to 192.168.11.17 (192.168.11.17).</span></div><div dir="ltr" style="background-color:transparent"><span style="font-family:arial,helvetica,sans-serif">Escape character is '^]'.</span></div>
</div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div dir="ltr" style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<font face="arial, helvetica, sans-serif" style="font-weight:bold">[_general]</font></div><div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">host=192.168.11.17 ; LDAP host</font></div>
<div dir="ltr" style="background-color:transparent"><font face="arial, helvetica,
sans-serif">port=389</font></div><div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">protocol=3 ; Version of the LDAP protocol to use; default is 3.</font></div><div dir="ltr" style="background-color:transparent">
<font face="arial, helvetica, sans-serif">url=ldap://<a href="http://192.168.11.17:389" target="_blank">192.168.11.17:389</a></font></div><div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">basedn=dc=example,dc=com</font></div>
<div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">;User=cn=,dc=example,dc=com</font></div><div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">;User=cn=join_lan,dc=example,dc=com</font></div>
<div dir="ltr" style="background-color:transparent"><font face="arial, helvetica, sans-serif">;User=cn=sa_hosseini,dc=rasana,dc=ir</font></div><div dir="ltr" style="background-color:transparent"><font face="arial, helvetica,
sans-serif">User=cn=lan,cn=technical,cn=xyz,cn=join_lan,dc=example,dc=com</font></div><div dir="ltr" style="background-color:transparent"><span style="background-color:transparent;font-family:arial,helvetica,sans-serif">Pass=123456</span><br>
</div><div style="font-style:normal;font-size:16px;font-family:arial,helvetica,sans-serif">-----------------------------------------------------------------------</div><div dir="ltr"><font face="arial, helvetica, sans-serif" style="font-weight:bold">vim /etc/asterisk/extconfig.conf</font><br>
</div><div dir="ltr"><font face="arial, helvetica, sans-serif">sipusers => ldap,"dc=example,dc=com",sip<br></font></div><div dir="ltr"><span style="background-color:transparent;font-family:arial,helvetica,sans-serif">------------------------------------------------------------------------</span><br>
</div><div dir="ltr"><font face="arial, helvetica, sans-serif" style="font-weight:bold">vim /etc/asterisk/sip.conf</font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><div dir="ltr">[general]</div><div dir="ltr">
callevents=yes</div><div dir="ltr">rtcachefriends=yes</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><span style="font-size:16px">but i got the follwoing error :</span><br></div><div dir="ltr"><span style="font-size:16px"><br>
</span></div><div dir="ltr"><span style="font-size:16px"><br></span></div><div dir="ltr"><span style="font-size:16px"><br></span></div><div dir="ltr"><div dir="ltr">PBX*CLI> module reload res_config_ldap.so</div><div dir="ltr">
-- Reloading module 'res_config_ldap.so' (LDAP realtime interface)</div><div dir="ltr"> == Parsing '/etc/asterisk/res_ldap.conf': == Found</div><div dir="ltr">[Nov 8 09:38:06] WARNING[8687]: res_config_ldap.c:1750 ldap_reconnect: bind failed: Invalid credentials</div>
<div dir="ltr">[Nov 8 09:38:06] WARNING[8687]: res_config_ldap.c:1598 reload: Couldn't establish connection to your directory server. Check debug.</div><div dir="ltr"> == LDAP RealTime driver reloaded.</div><div><br>
</div><div dir="ltr">Then i have registered with user:join_lan;pass:123456 domain:192.168.14.90</div><div dir="ltr">and get the following error on CLI:</div><div dir="ltr"><div dir="ltr">Verbosity is at least 15</div><div dir="ltr">
[Nov 8 09:41:42] NOTICE[8674]: chan_sip.c:25005 handle_request_register: Registration from '"join_lan"<<a href="mailto:sip%3Ajoin_lan@192.168.14.90" target="_blank">sip:join_lan@192.168.14.90</a>>' failed for '<a href="http://192.168.19.21:38968" target="_blank">192.168.19.21:38968</a>' - No matching peer found</div>
<div dir="ltr">[Nov 8 09:41:42] NOTICE[8674]: chan_sip.c:25005 handle_request_register: Registration from '"join_lan"<<a href="mailto:sip%3Ajoin_lan@192.168.14.90" target="_blank">sip:join_lan@192.168.14.90</a>>' failed for '<a href="http://192.168.19.21:38968" target="_blank">192.168.19.21:38968</a>' - No matching peer found</div>
<div><br></div></div><div dir="ltr"><br></div></div><div dir="ltr"><br></div><div><br></div></font></div></div></div></div></div><br><br> </div> </div> </blockquote></div> </div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>-Chris Harrington<br>
<div>ACSDi Office: 763.559.5800</div><div><div>Mobile Phone: 612.326.4248</div></div><div><br></div><br>
</div>