Ad Widget

Collapse

[1.4.5] Jabber and sasl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uweiss
    Junior Member
    • Jun 2006
    • 27

    #1

    [1.4.5] Jabber and sasl

    Hi,

    I try to get Jabber notifications to work, but always get this error under Monitoring => Action:
    Code:
    receiving error [6][101]
    Output of debug log:
    Code:
    JABBER: sending message
    JABBER: connecting as [email protected]
    JABBER: stream error
    JABBER: server disconnected
    JABBER: disconnecting
    JABBER: receiving error [6][101]
    End execute_action()
    Error sending alert ID [12]
    Then i tried a bit to execute iksroster directly on command line.

    Without encryption / sasl:
    Code:
    /usr/bin/iksroster [email protected]
    Seems to work, no error.

    With encryption / without sasl:
    Code:
    /usr/bin/iksroster [email protected] --secure
    Works too, no error.

    With sasl / without encryption:
    Code:
    /usr/bin/iksroster [email protected] --sasl
    Does not work. Error:
    Code:
    iksroster: stream error
    Same error as seen in the debug log of zabbix_server.

    Turning both on returns the same error.

    I know that the admins of the jabber server i use have turned off sasl authentication because of some problems they have with it.

    I saw a post of Alexei where it wrote that it should not use sasl if it is not available. But i think it still tries to use it and fails. So i need a way to turn sasl of. Can that be done in the configuration somehow or is a change i the source necessary to turn it off?

    Thanks a lot
    Urs
  • uweiss
    Junior Member
    • Jun 2006
    • 27

    #2
    Now had a look into the source code and saw that using of sasl ist hardcoded in "jabber.c".

    I made a patch to disable sasl. But it's so simple that you also can change that by hand before compiling zabbix (change a "1" into a "0"...):

    Open the file "src/libs/zbxjabber/jabber.c", go to line 440 (in 1.4.5 / or search the use of the function "connect_jabber") and change the "1" into a "0".

    Would be nice to have that configurable in users media preferences.

    Urs
    Attached Files

    Comment

    Working...