powered by Jive Software

Error not-authorized(401) during login


#1

Hi,

when trying to connect i get the following error at con.login(); :

09-21 11:05:42.305: WARN/Jabber.Connect: Login(1271): not-authorized(401)

heres the code:

ConnectionConfiguration connConfig = new ConnectionConfiguration(host, Integer.parseInt(port));

connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.enabled);

connConfig.setSASLAuthenticationEnabled(false);

con = new XMPPConnection(connConfig);

con.connect();

con.login(m_username, m_password)


#2

Invalid username or password maybe?


#3

nope, i checked user details several times. login is working from within another client.

Edit: Target is Android