Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 23rd, 2005, 06:35 PM
slava.shklyar@gmail.com
Guest
 
Posts: n/a
Default GET varaibles with irregular characters

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
Default 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
Default 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
Default 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles