Connecting Tech Pros Worldwide Forums | Help | Site Map

GET varaibles with irregular characters

slava.shklyar@gmail.com
Guest
 
Posts: n/a
#1: Aug 23 '05
Hello,

I'm writing some application that authenticates users via LDAP. When
user going to login he sends user/pass by GET request to the
application adn gets his ID back.

Some users that have irregular characters in the password ( !^&%@#... )
can not login. I tried to encode password ($_SERVER['PHP_AUTH_PW'])
with urlencode() and base64_encode() but it does not solve the
proplem...

Any suggestions will be thankful !


Thanks,
Slava


John Dunlop
Guest
 
Posts: n/a
#2: Aug 23 '05

re: GET varaibles with irregular characters


slava.shklyar@gmail.com wrote:
[color=blue]
> When user going to login he sends user/pass by GET request[/color]

Not in the form http://user:pass@host.invalid/ ??

--
Jock
Hilarion
Guest
 
Posts: n/a
#3: Aug 23 '05

re: GET varaibles with irregular characters


slava.shklyar@gmail.com wrote:[color=blue]
> I'm writing some application that authenticates users via LDAP. When
> user going to login he sends user/pass by GET request to the
> application adn gets his ID back.
>
> Some users that have irregular characters in the password ( !^&%@#... )
> can not login. I tried to encode password ($_SERVER['PHP_AUTH_PW'])
> with urlencode() and base64_encode() but it does not solve the
> proplem...[/color]

Please post code samples (including HTML form for user input,
PHP code recieving data from the HTML form and PHP code
using the data in LDAP functions).


Hilarion
Christoph 'knurd' Jeschke
Guest
 
Posts: n/a
#4: Aug 23 '05

re: GET varaibles with irregular characters


* John Dunlop:
[color=blue]
> Not in the form http://user:pass@host.invalid/ ??[/color]

The user:host@example.org-Scheme is nether supported by RFC, nor by
Internet Explorer (patched since 2003?). So using this is considered
harmful.

And, please use example.(com|net|org) for examples in future, as specified
in RFC2606.

--
"The sky above the port was the color of television,
tuned to a dead channel." o <http://knurd.de/>
-- William Gibson, Neuromancer, o -- A Geek's View
Chiba City Blues ooo
Closed Thread