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

Samira Hosseini samiramhosseini at yahoo.com
Thu Nov 8 11:39:40 CST 2012




>  
>
>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
>
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121108/9f9061ef/attachment.htm>


More information about the asterisk-users mailing list