Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Base64 authentication calculation doesn't work with Cisco IM&P #85

Description

@npetreley

In xmpp_stream.php

This doesn't work:

$stanza->t(base64_encode("\x00".$user."\x00".$pass));

This does work:

$usernamepos = strpos($user,"@");
$username = substr($user,0,$usernamepos);
$stanza->t(base64_encode($user."\x00".$username."\x00".$pass));

CIMP is expecting an encoded combination of jid, username, and password. I cobbled my solution together. I didn't bother to look to see if I could access the username directly, so I just substringed it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions