Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

nokia2280 and wap -- bad login

Quote Reply
nokia2280 and wap -- bad login
Hi,

Trying to access wap component thru Nokia 2280. The login page comes fine and then the problem starts (which has been pointed by many). It always gives:

Bad Login.

Any solutions for this?

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
Are cookie-less logins allowed?

Adrian
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hi Adrian.

The cookie is set to "user option" from admin.

Anup
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
The problem is in the wap templates i have nokia 6310i and nokia 6210 and also geting this error ..

zaaron

---------
GetLokal Reviews
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hi Adrian.

In effect yes, cookie less logins are allowed as the option is left to user. Actually this is becoming very popular as a company is offering new connections for 10$ and the handset is free so ppl are opting for it. It is definitely becoming popular.

The details of this instrument are available at

http://nokia-asia.com/...896,00.html#internet

Any suggestions

Thnx

Anup
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hi Adrian,

Despite seting the cookie option to "No" from admin also nokia 2280 gives the "Bad Login" error. Incidently same works on other mail sites like indiatimes.com, vsnl.com , and other wap sections like on google search etc. So ido not thin there could be any problem wrt the instrument as such.

Any suggestions for it to work on GMail? It would indeed be needed.

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
I just downloaded "SmartPhone Emulator Developer Edition 3.0" from yospace.com, and tested it with most of the phones that it emulates. The only reason you should be getting a Bad Login error if your username/domain/password is wrong. Other than that, I can't really debug it any furthur since I don't have access to a phone to test it with.

Adrian
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Nope if you want to perform more realistic test try nokia wap emulator it is 100% comaptible with the phone.

Try this one:
http://www.wapemulator.com/...ossamer-threads.com/

zaaron

---------
GetLokal Reviews
Quote Reply
Re: [zaaron] nokia2280 and wap -- bad login In reply to
I just installed Nokia's Mobile Browser Simulator 4.0 and WAP Gateway Simulator and it logged in fine. On the other hand, the simulator at the link you provided did not work as it gave a javascript error on login (ie. that emulator is broken).

Adrian
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hi Adrian,

From the same instrument (Nokia 2280) i tried accessing accounts on freemail.gossamer-threads.com and I got same error -- bad login.

Then to see whether this could be something to do with limitation of the instrument or something i tried accessing a pop account on my server ...(one of the gmail catchall accounts) using the following wap url with the same instrument:

http://atmail.nl/wap.pl

and i could login to the catchall pop account. So i am still confused as to what could be the cause of not being able to access the Gmail accounts using the GM WAP templates.

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
You could debug this, by warn'ing (in login.cgi) what's submitted by your phone (username, domain and password), and making sure that these indeed match the user's account info.

Adrian
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hey Adrian...

The following change did let me access the GM account thru the same instrument - 2280:

<postfield name="username" value="$(username:noesc)"/>
<postfield name="domain" value="$(domain:noesc)"/>
<postfield name="password" value="$(password:noesc)"/>

instead of the usual one in template:

<postfield name="username" value="$username"/>
<postfield name="domain" value="$domain"/>
<postfield name="password" value="$password"/>

Why I did it : I don't know but the best answer is that i saw it in wml source code of atmail....

Probably you could throw some light on this and if this helps resolve the numerous help requests on the issue form other users may be the wap templates in genral could be modified.

Please enlighten ....

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
Oh, I guess the browser is escaping the password field (well all the fields), and your password must have a value that needs escaping.

Adrian
Quote Reply
Re: [brewt] nokia2280 and wap -- bad login In reply to
Hi Adrian.

Tried to track the login and have following results:

(1). No Changes To The login.htm template:

Log: User: demo => Domain: saysample.com => Password: => SID: at ......

showing that password was not being posted and so the bad login error. Also SID had no value corresponding to Cookie Less Login.

(2) Did following changes to login.htm:

<postfield name="cookie" value="No"/> (changed from no to No)

removed the <setvar ....> at the last line before the </go>

Log: User: demo => Domain: saysample.com => Password: somepassword => SID: 018e07d7783037e1222817bdb67010ab at .....

So could login to the account thru wap template. The login had the SID there. However, when tried to navigate to a link say Inbox or address book it gave "Invalid /Expired Session Error though the log had following :

User: => Domain: => Password: => SID: 018e07d7783037e1222817bdb67010ab;t=wap;page=addresses.htm at /../../../../../admin/GT/Template.pm line 882

User: => Domain: => Password: => SID: 018e07d7783037e1222817bdb67010ab;t=wap;msgtrack_fid=1;page=msgs_list.htm at /../../../../../../admin/GT/Template.pm line 882

With this info at hand, despite the SID for cookie less login being there, the navigation to any other area of the account causes Invalid/Expired Session Error.

Any clues of how to fix this?

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
Despite all trials and iterations, the same error persists. Despite a valid session id, the navigation to any links gives invalid/expired session error. Using the same phone however, the wap component of @mail works without any problem. I am clueless on how to get past this. Any help would be God sent.

Thnx

Anup
Quote Reply
Re: [anup123] nokia2280 and wap -- bad login In reply to
Few comments based on comparative observations between the logs for emulator (deckit/klondike) vs 2280 with wap template.

The invalid session error with 2280 is primarily due to:

complete string including the <%url_hidden%>......... is being logged as sid in cell phone whereas it is only the sid part of <%url_hidden%> in case of emulator that is logged as sid when navigating after login.

Login to account thru wap template has been fine. But it is the invalid session error upon clicking any link which is causing the problems and this has been due to the complete string

018e07d7783037e1222817bdb67010ab;t=wap;page=addresses.htm

which is taken as SID instead of just

018e07d7783037e1222817bdb67010ab as in the case of emulators.

Having the links modified with:

<a href="webmail.cgi?page=.......;t=<%t%>;sid=<%sid%>">

has no problem with emulators but with the cell phone the sid is passed blank in logs.

Used a global provided by Charlie to log the details of username;domain;sid and the results are reported therefrom.

Possibly this could be a valid case with other nokia phones though i am not sure.

Anu Clue on how to get over this???

Thnx

Anup



--Edit--

To check on the above whether a link with just the sid would give the same eror, i modified the compose link to:

webmail.cgi?sid=<%sid%>

and the log showed the following after cliking the compose link

User: => Domain: => Password: => SID: ac3e139fe5158face24e43734df250c3 at .......

The moment a variable such as page=compose.htm is added before the sid then the sid is passed blank causing invalid session.

On modifying the link to

sid=<%sid%>;t=<%t%> the sid changes to

SID: ac3e139fe5158face24e43734df250c3;t=wap which causes invalid session obviously.

Last edited by:

anup123: Nov 3, 2003, 3:08 PM