Connecting Tech Pros Worldwide Help | Site Map

GET varaibles with irregular characters

  #1  
Old August 23rd, 2005, 06:35 PM
slava.shklyar@gmail.com
Guest
 
Posts: n/a
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

  #2  
Old August 23rd, 2005, 09:05 PM
John Dunlop
Guest
 
Posts: n/a

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
  #3  
Old August 23rd, 2005, 09:55 PM
Hilarion
Guest
 
Posts: n/a

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
  #4  
Old August 23rd, 2005, 10:25 PM
Christoph 'knurd' Jeschke
Guest
 
Posts: n/a

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