[asterisk-bugs] [JIRA] (ASTERISK-18530) improper use of host LDAP attribute value as ToHost sip client value
Sean Bright (JIRA)
noreply at issues.asterisk.org
Fri Feb 17 14:22:34 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-18530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182244#comment-182244 ]
Sean Bright edited comment on ASTERISK-18530 at 2/17/17 2:21 PM:
-----------------------------------------------------------------
asterisk-debug.txt attached
was (Author: barzog):
Here asterisk debug log:
[Sep 13 22:08:16] DEBUG[23080] chan_sip.c: --------------- SIP reload done
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: substituted: string: 'dc=telecom,dc=by' => 'dc=telecom,dc=by'
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: basedn: 'dc=telecom,dc=by' => 'dc=telecom,dc=by'
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: Everything seems fine.
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: name='name' value='gawriloff'
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: name='host' value='dynamic'
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: destinationIndicator LDAP value: 1
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: givenName LDAP value: Олег
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: sn LDAP value: Гаврилов
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: initials LDAP value: Олегович
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: displayName LDAP value: Олег Гаврилов
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: ou LDAP value: Департамент эксплуатации
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: title LDAP value: Зам. директора по эксплуатации
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: mail LDAP value: <some email>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: mobile LDAP value: <some phone>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: telephoneNumber LDAP value: 528
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: jpegPhoto LDAP value: ▒▒▒▒
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: organizationalPerson
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: inetOrgPerson
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: posixAccount
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: hostObject
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: shadowAccount
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: ldapPublicKey
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: objectClass LDAP value: AsteriskSIPUser
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: cn LDAP value: Гаврилов Олег
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: name LDAP value: gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: preferredLanguage LDAP value: ru
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: loginShell LDAP value: /bin/bash
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: shadowLastChange LDAP value: 14949
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: sshPublicKey LDAP value: <some data>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: uidNumber LDAP value: 10000
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: homeDirectory LDAP value: /home/gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: gidNumber LDAP value: 10000
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: albatros2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: eagle-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-balancer.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl4.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl5.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-cl6.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-db3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: lark.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: house.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: martin-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: vulture.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: vulture2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: billin.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: eagle-cl1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: martin.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: albatros.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: new-hawk.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-db2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: falcon-db.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: hawk2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: hawk3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: netflow.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: radius-minsk2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: albatros2-vbox2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: kiwi.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: albatros2-vbox1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: linbras.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: voip-tmp.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: hawk.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: vulture3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: vulture4.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: context LDAP value: default
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstAccountCanReinvite LDAP value: no
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: callerid LDAP value: "Oleg Gawriloff" <528>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstContext LDAP value: default
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstPriority LDAP value: 1
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstApplication LDAP value: Dial
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstApplicationData LDAP value: SIP/gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstExtension LDAP value: 528
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: dtmfmode LDAP value: rfc2833
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: host LDAP value: dynamic
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: qualify LDAP value: yes
[Sep 13 *▒H▒▒:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: userCertificate;binary LDAP value: <some data>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: nat LDAP value: no
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: type LDAP value: friend
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: md5secret LDAP value: <some hash>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: md5: <some hash>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: AstAccountLanguage LDAP value: RU
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: ipaddr LDAP value: 172.17.0.39
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: port LDAP value: 27824
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: regseconds LDAP value: 1315944271
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: defaultuser LDAP value: gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: useragent LDAP value: eyeBeam release 1100l stamp 46320
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: fullcontact LDAP value: sip:gawriloff at 172.17.0.39:27824;rinstance=d44b1e2cf5e300df
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: regserver LDAP value: voip-tmp
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(305) attribute_name: lastms LDAP value: 112
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: destinationIndicator value: 1
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: givenName value: Олег
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: sn value: Гаврилов
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: initials value: Олегович
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: displayName value: Олег Гаврилов
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: ou value: Департамент эксплуатации
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: title value: Зам. директора по эксплуатации
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: mail value: <some email>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: mobile value: <some data>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: telephoneNumber value: 528
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: jpegPhoto value: ▒▒▒▒
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: organizationalPerson
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: inetOrgPerson
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: posixAccount
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: hostObject
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: shadowAccount
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: ldapPublicKey
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: objectClass value: AsteriskSIPUser
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: cn value: Гаврилов Олег
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: name value: gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: preferredLanguage value: ru
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: loginShell value: /bin/bash
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: shadowLastChange value: 14949
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: sshPublicKey value: <some data>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: uidNumber value: 10000
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: homeDirectory value: /home/gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: gidNumber value: 10000
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: albatros2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: eagle-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-balancer.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl4.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl5.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-cl6.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-db3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: lark.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: house.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: martin-cl2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: vulture.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: vulture2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: billin.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: eagle-cl1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: martin.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: albatros.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: new-hawk.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-db2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: falcon-db.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: hawk2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: hawk3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: netflow.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: radius-minsk2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: albatros2-vbox2.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: kiwi.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: albatros2-vbox1.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: linbras.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: voip-tmp.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: hawk.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: vulture3.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: vulture4.telecom.by
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: context value: default
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstAccountCanReinvite value: no
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: callerid value: "Oleg Gawriloff" <528>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstContext value: default
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstPriority value: 1
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstApplication value: Dial
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstApplicationData value: SIP/gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstExtension value: 528
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: dtmfmode value: rfc2833
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: host value: dynamic
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: qualify value: yes
[Sep 13 *▒H▒▒:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: userCertificate;binary value: <some data>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: nat value: no
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: type value: friend
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: md5: <some hash>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: md5secret value: <some hash>
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: AstAccountLanguage value: RU
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: ipaddr value: 172.17.0.39
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: port value: 27824
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: regseconds value: 1315944271
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: defaultuser value: gawriloff
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: useragent value: eyeBeam release 1100l stamp 46320
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(440) is delimited 1 times: sip:gawriloff at 172.17.0.39:27824;rinstance=d44b1e2cf5e300df
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 0
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 1
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 2
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 3
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 4
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 5
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 6
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 7
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 8
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 9
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 10
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 11
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 12
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 13
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 14
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 15
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 16
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 17
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 18
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 19
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 20
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 21
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 22
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 23
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 24
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 25
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 26
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 27
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 28
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 29
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 30
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 0 i: 31
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(454) DELIM - attribute_name: fullcontact value: sip:gawriloff at 172.17.0.39:27824 pos: 0
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 32
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 33
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 34
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 35
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 36
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 37
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 38
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 39
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 40
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 41
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 42
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 43
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 44
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 45
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 46
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 47
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 48
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 49
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 50
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 51
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 52
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 53
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 54
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 55
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 56
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(450) DELIM pos: 32 i: 57
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(472) DELIM pos: 32 i: 58 delim_count: 0
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(474) DELIM - attribute_name: fullcontact value: rinstance=d44b1e2cf5e300df pos: 32
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(490) DELIM pos: 0 i: 58
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: regserver value: voip-tmp
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(497) attribute_name: lastms value: 112
[Sep 13 22:08:31] DEBUG[23144] res_config_ldap.c: LINE(532) Added to vars - non static
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting '172.17.0.39' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host '172.17.0.39' and port ''.
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting '172.17.0.39:27824' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host '172.17.0.39' and port '27824'.
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting 'vulture4.telecom.by' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host 'vulture4.telecom.by' and port ''.
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting 'vulture4.telecom.by' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host 'vulture4.telecom.by' and port ''.
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Not an IPv4 nor IPv6 address, cannot get port.
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Not an IPv4 nor IPv6 address, cannot set port.
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Allocating new SIP dialog for 0584629d28d9d268231b53f539383219 at 127.0.0.1:0 - OPTIONS (No RTP)
[Sep 13 22:08:31] DEBUG[23144] acl.c: For destination '172.16.2.79', our source address is '172.16.2.86'.
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Setting SIP_TRANSPORT_UDP with address 172.16.2.86:5060
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Initializing initreq for method OPTIONS - callid 3663a2cc3948cbbb63dc07572ff0cbf0 at 172.16.2.86:5060
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: Trying to put 'OPTIONS sip' onto UDP socket destined for 172.16.2.79:27824
[Sep 13 22:08:31] DEBUG[23144] chan_sip.c: -REALTIME- loading peer from database to memory. Name: gawriloff. Peer objects: 0
PuTTYPuTTY[Sep 13 22:08:32] DEBUG[23080] chan_sip.c: Trying to put 'OPTIONS sip' onto UDP socket destined for 172.16.2.79:27824
[Sep 13 22:08:33] DEBUG[23080] chan_sip.c: Trying to put 'OPTIONS sip' onto UDP socket destined for 172.16.2.79:27824
[Sep 13 22:08:34] DEBUG[23080] chan_sip.c: Trying to put 'OPTIONS sip' onto UDP socket destined for 172.16.2.79:27824
[Sep 13 22:08:35] DEBUG[23080] chan_sip.c: Trying to put 'OPTIONS sip' onto UDP socket destined for 172.16.2.79:27824
[Sep 13 22:08:35] NOTICE[23080] chan_sip.c: Peer 'gawriloff' is now UNREACHABLE! Last qualify: 112
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: Everything seems fine.
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: substituted: string: 'dc=telecom,dc=by' => 'dc=telecom,dc=by'
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: basedn: 'dc=telecom,dc=by' => 'dc=telecom,dc=by'
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: name='name' value='gawriloff'
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: LINE(1313) Modifying name=gawriloff hits: 1
[Sep 13 22:08:35] DEBUG[23080] res_config_ldap.c: LINE(1316) AstAccountLastQualifyMilliseconds=-1
[Sep 13 22:08:36] DEBUG[23080] chan_sip.c: Destroying SIP dialog 3663a2cc3948cbbb63dc07572ff0cbf0 at 172.16.2.86:5060
[Sep 13 22:08:36] DEBUG[23070] devicestate.c: No provider found, checking channel drivers for SIP - gawriloff
[Sep 13 22:08:36] DEBUG[23070] chan_sip.c: Checking device state for peer gawriloff
[Sep 13 22:08:36] DEBUG[23070] devicestate.c: Changing state for SIP/gawriloff - state 5 (Unavailable)
[Sep 13 22:08:36] DEBUG[23070] devicestate.c: device 'SIP/gawriloff' state '5'
[Sep 13 22:08:36] DEBUG[23105] app_queue.c: Device 'SIP/gawriloff' changed to state '5' (Unavailable) but we don't care because they're not a member of any queue.
Here's error smth near:
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting 'vulture4.telecom.by' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host 'vulture4.telecom.by' and port ''.
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: Splitting 'vulture4.telecom.by' into...
[Sep 13 22:08:31] DEBUG[23144] netsock2.c: ...host 'vulture4.telecom.by' and port ''.
> improper use of host LDAP attribute value as ToHost sip client value
> --------------------------------------------------------------------
>
> Key: ASTERISK-18530
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-18530
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_config_ldap
> Reporter: Oleg Gawriloff
> Assignee: Oleg Gawriloff
> Attachments: asterisk-debug.txt, ldap-server-output.txt
>
>
> On our LDAP setup user object in LDAP tree belongs to hostObject (used in our server authrorization) and AsteriskSIPUsers object classess.
> When asterisk gets user information from LDAP it fills value of last host attribute value to ToHost and after 'sip reload' and 'sip show peer gawriloff load' it requests this host instead of AstAccountIPAddress. There is no mention of host attribute in any asterisks docs. Any suggestions?
> res_ldap.conf:
> [_general]
> host=ldap.telecom.by
> protocol=3
> port=389
> basedn=dc=telecom,dc=by
> user=cn=Asterisk,ou=people,dc=telecom,dc=by
> pass=<somepass>
> [sip]
> name = uid
> ;name = AstAccountName
> amaflags = AstAccountAMAFlags
> callgroup = AstAccountCallGroup
> callerid = AstAccountCallerID
> directmedia = AstAccountDirectMedia
> context = AstAccountContext
> dtmfmode = AstAccountDTMFMode
> fromuser = AstAccountFromUser
> fromdomain = AstAccountFromDomain
> fullcontact = gecos
> host = AstAccountHost
> insecure = AstAccountInsecure
> mailbox = AstAccountMailbox
> md5secret = AstAccountRealmedPassword
> nat = AstAccountNAT
> deny = AstAccountDeny
> permit = AstAccountPermit
> pickupgroup = AstAccountPickupGroup
> port = AstAccountPort
> qualify = AstAccountQualify
> restrictcid = AstAccountRestrictCID
> rtptimeout = AstAccountRTPTimeout
> rtpholdtimeout = AstAccountRTPHoldTimeout
> type = AstAccountType
> disallow = AstAccountDisallowedCodec
> allow = AstAccountAllowedCodec
> MusicOnHold = AstAccountMusicOnHold
> regseconds = AstAccountExpirationTimestamp
> regcontext = AstAccountRegistrationContext
> regexten = AstAccountRegistrationExten
> CanCallForward = AstAccountCanCallForward
> ipaddr = AstAccountIPAddress
> defaultuser = AstAccountDefaultUser
> regserver = AstAccountRegistrationServer
> lastms = AstAccountLastQualifyMilliseconds
> useragent = AstAccountUserAgent
> additionalFilter=(objectClass=AsteriskSIPUser)
> extconfig:
> [settings]
> sipusers => ldap,"dc=telecom,dc=by",sip
> sippeers => ldap,"dc=telecom,dc=by",sip
> LDAP data:
> dn:: Y249w+Di8Ojr7uIgzuvl4yxvdT3E5e/g8PLg7OXt8iD96vHv6/Pg8uD26Ogsb3U9zOjt8eosZGM
> 9dGVsZWNvbSxkYz1ieQ==
> givenName:: 0J7Qu9C10LM=
> sn:: 0JPQsNCy0YDQuNC70L7Qsg==
> initials:: 0J7Qu9C10LPQvtCy0LjRhw==
> displayName:: 0J7Qu9C10LMg0JPQsNCy0YDQuNC70L7Qsg==
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: posixAccount
> objectClass: hostObject
> objectClass: shadowAccount
> objectClass: ldapPublicKey
> objectClass: AsteriskSIPUser
> cn:: 0JPQsNCy0YDQuNC70L7QsiDQntC70LXQsw==
> uid: gawriloff
> preferredLanguage: ru
> host: albatros2.telecom.by
> host: vulture4.telecom.by
> AstAccountContext: default
> AstAccountCanReinvite: no
> AstAccountCallerID: "Oleg Gawriloff" <528>
> AstAccountRealmedPassword: <somepassword>
> AstContext: default
> AstPriority: 1
> AstApplication: Dial
> AstApplicationData: SIP/gawriloff
> AstExtension: 528
> AstAccountDTMFMode: rfc2833
> AstAccountHost: dynamic
> AstAccountQualify: yes
> AstAccountNAT: no
> AstAccountType: friend
> AstAccountLanguage: ru
> AstAccountIPAddress: 172.17.0.39
> AstAccountPort: 46252
> AstAccountExpirationTimestamp: 1315903024
> AstAccountDefaultUser: gawriloff
> AstAccountUserAgent: eyeBeam release 1100l stamp 46320
> gecos: sip:gawriloff at 172.17.0.39:46252;rinstance=741634e136d663fb
> AstAccountRegistrationServer: voip-tmp
> AstAccountLastQualifyMilliseconds: 265
> voip-tmp*CLI> sip show peer gawriloff
> * Name : gawriloff
> Realtime peer: Yes, cached
> Secret : <Not set>
> MD5Secret : <Set>
> Remote Secret: <Not set>
> Context : default
> Subscr.Cont. : <Not set>
> Language :
> AMA flags : Unknown
> Transfer mode: open
> CallingPres : Presentation Allowed, Not Screened
> Callgroup :
> Pickupgroup :
> MOH Suggest :
> Mailbox :
> VM Extension : asterisk
> LastMsgsSent : 32767/65535
> Call limit : 0
> Max forwards : 0
> Dynamic : Yes
> Callerid : "Oleg Gawriloff" <528>
> MaxCallBR : 384 kbps
> Expire : 3455
> Insecure : no
> Force rport : No
> ACL : No
> DirectMedACL : No
> T.38 support : No
> T.38 EC mode : Unknown
> T.38 MaxDtgrm: -1
> DirectMedia : Yes
> PromiscRedir : No
> User=Phone : No
> Video Support: Yes
> Text Support : No
> Ign SDP ver : No
> Trust RPID : No
> Send RPID : No
> Subscriptions: Yes
> Overlap dial : No
> DTMFmode : rfc2833
> Timer T1 : 500
> Timer B : 32000
> ToHost : vulture4.telecom.by <--- this is last host attribute from LDAP
> Addr->IP : 172.17.0.39:46252
> Defaddr->IP : (null)
> Prim.Transp. : UDP
> Allowed.Trsp : UDP
> Reg. exten :
> Def. Username: gawriloff
> SIP Options : (none)
> Codecs : 0x4 (ulaw)
> Codec Order : (ulaw:20)
> Auto-Framing : No
> 100 on REG : No
> Status : OK (10 ms)
> Useragent : eyeBeam release 1100l stamp 46320
> Reg. Contact : sip:gawriloff at 172.17.0.39:46252;rinstance=741634e136d663fb
> Qualify Freq : 60000 ms
> Sess-Timers : Accept
> Sess-Refresh : uas
> Sess-Expires : 1800 secs
> Min-Sess : 90 secs
> RTP Engine : asterisk
> Parkinglot :
> Use Reason : No
> Encryption : No
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list