GET varaibles with irregular characters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • slava.shklyar@gmail.com

    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

  • John Dunlop

    #2
    Re: GET varaibles with irregular characters

    slava.shklyar@g mail.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

    Comment

    • Hilarion

      #3
      Re: GET varaibles with irregular characters

      slava.shklyar@g mail.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

      Comment

      • Christoph 'knurd' Jeschke

        #4
        Re: GET varaibles with irregular characters

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

        The user:host@examp le.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|ne t|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

        Comment

        Working...