[Home]

Summary:ASTERISK-11638: if the LDAP port is not 389, it's not possible to connect a LDAP server
Reporter:Sylvain Desbureaux (sylvain)Labels:
Date Opened:2008-03-14 02:47:57Date Closed:2008-03-18 15:10:32
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_config_ldap
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20080316__bug12209.diff.txt
( 1) res_ldap_port.patch
Description:When the sentence "port" is given in the confiuration of res_config_ldap.conf like here :
[_general]
host=linuxsde ; LDAP host(s)
port=10389      ;
protocol=3              ; Version of the LDAP protocol to use default is 3.
basedn=system   ; Base DN
pass=secret     ; Bind password
user=admin              ; Bind DN

asterisk try to connect to "l:103"
after code investigation, I think there's a bug. I give in additionnal Information the patch which make it work for 1.6.0 branch

****** ADDITIONAL INFORMATION ******

svn info
URL : http://svn.digium.com/svn/asterisk/branches/1.6.0
Racine du dépôt : http://svn.digium.com/svn/asterisk
UUID du dépôt : 614ede4d-c843-0410-af14-a771ab80d22e
Révision : 108395
Type de noeud : répertoire
Tâche programmée : normale
Auteur de la dernière modification : russell
Révision de la dernière modification : 108359
Date de la dernière modification: 2008-03-12 23:55:30 +0100 (mer, 12 mar 2008)


Comments:By: Sylvain Desbureaux (sylvain) 2008-03-14 07:09:19

/!\ The issue is ALSO solved using the patch attached on issue 0012211 /!\

it's because when I do a "svn diff" the two changes are provided. So only the patch from 0012211 (if correct) should be integrated

By: Digium Subversion (svnbot) 2008-03-18 15:09:37

Repository: asterisk
Revision: 109683

U   trunk/res/res_config_ldap.c

------------------------------------------------------------------------
r109683 | tilghman | 2008-03-18 15:09:36 -0500 (Tue, 18 Mar 2008) | 4 lines

Set protocol version, port number correctly.
(closes issue ASTERISK-11640, closes issue ASTERISK-11638)
Reported by: sylvain

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=109683

By: Digium Subversion (svnbot) 2008-03-18 15:10:32

Repository: asterisk
Revision: 109684

_U  branches/1.6.0/
U   branches/1.6.0/res/res_config_ldap.c

------------------------------------------------------------------------
r109684 | tilghman | 2008-03-18 15:10:31 -0500 (Tue, 18 Mar 2008) | 12 lines

Merged revisions 109683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109683 | tilghman | 2008-03-18 15:13:40 -0500 (Tue, 18 Mar 2008) | 4 lines

Set protocol version, port number correctly.
(closes issue ASTERISK-11640, closes issue ASTERISK-11638)
Reported by: sylvain

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=109684