[asterisk-users] 回覆︰ problem on LDAP (Invalid credential)

kingman chui chuikingman at yahoo.com.hk
Thu Nov 8 19:08:02 CST 2012


I use res_ldap.conf to connect lync server by ldap ebfore.
For auth in lync server .
The username in res_lap.conf cannot use format "cn=xx,dc=xxx" .
It should use format username=xxxx at xxxxx and passwd.
Then lync server can auth you .
I try before and it work in asterisk 1.8.11
 
Hope it can help you ..
 
Regard/chui king man

寄件人︰ Samira Hosseini <samiramhosseini at yahoo.com>
>收件人︰ "asterisk-users at lists.digium.com" <asterisk-users at lists.digium.com> 
>傳送日期︰ 2012年11月9日 (週五) 1:39 AM
>主題︰ [asterisk-users] problem on LDAP (Invalid credential)
>
>
>
>
>
>>
>>
>>Hello all,
>>
>>
>>I am going to register asterisk sip users through active directory accounts LDAP (that is a separated server with ip : 192.168.11.17)
>>So I have followed the below link as well:
>>
>>
>>https://wiki.asterisk.org/wiki/display/AST/LDAP+Realtime+Driver
>>
>>http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html
>>
>>http://ensiwiki.ensimag.fr/index.php/Asterisk's_external_configuration_(LDAP)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Server:192.168.14.90  => asterisk
>>server:192.168.11.17 =>  ActiveDirectory
>>Finally, this is my configuration file :
>>
>>
>>[root at PBX ~]# telnet 192.168.11.17 389
>>Trying 192.168.11.17...
>>Connected to 192.168.11.17 (192.168.11.17).
>>Escape character is '^]'.
>>
>>
>>[_general]
>>host=192.168.11.17    ; LDAP host
>>port=389
>>protocol=3           ; Version of the LDAP protocol to use; default is 3.
>>url=ldap://192.168.11.17:389
>>basedn=dc=example,dc=com
>>;User=cn=,dc=example,dc=com
>>;User=cn=join_lan,dc=example,dc=com
>>;User=cn=sa_hosseini,dc=rasana,dc=ir
>>User=cn=lan,cn=technical,cn=xyz,cn=join_lan,dc=example,dc=com
>>Pass=123456
>>
>>-----------------------------------------------------------------------
>>vim /etc/asterisk/extconfig.conf
>>
>>sipusers => ldap,"dc=example,dc=com",sip
>>
>>------------------------------------------------------------------------
>>
>>vim /etc/asterisk/sip.conf
>>[general]
>>callevents=yes
>>rtcachefriends=yes
>>
>>
>>
>>
>>but i got the follwoing error :
>>
>>
>>
>>
>>
>>
>>
>>PBX*CLI> module reload res_config_ldap.so
>>    -- Reloading module 'res_config_ldap.so' (LDAP realtime interface)
>>  == Parsing '/etc/asterisk/res_ldap.conf':   == Found
>>[Nov  8 09:38:06] WARNING[8687]: res_config_ldap.c:1750 ldap_reconnect: bind failed: Invalid credentials
>>[Nov  8 09:38:06] WARNING[8687]: res_config_ldap.c:1598 reload: Couldn't establish connection to your directory server. Check debug.
>>  == LDAP RealTime driver reloaded.
>>
>>
>>Then i have registered with user:join_lan;pass:123456 domain:192.168.14.90
>>and get the following error on CLI:
>>Verbosity is at least 15
>>[Nov  8 09:41:42] NOTICE[8674]: chan_sip.c:25005 handle_request_register: Registration from '"join_lan"<sip:join_lan at 192.168.14.90>' failed for '192.168.19.21:38968' - No matching peer found
>>[Nov  8 09:41:42] NOTICE[8674]: chan_sip.c:25005 handle_request_register: Registration from '"join_lan"<sip:join_lan at 192.168.14.90>' failed for '192.168.19.21:38968' - No matching peer found
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>--
>_____________________________________________________________________
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>New to Asterisk? Join us for a live introductory webinar every Thurs:
>              http://www.asterisk.org/hello
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121109/7962274e/attachment-0001.htm>


More information about the asterisk-users mailing list