Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Passing Passwords ARGS

Passing Passwords ARGS

Scheduled Pinned Locked Moved C#
csharphelpsysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    har04mich
    wrote on last edited by
    #1

    I have a login web page writtin in C#.Net, when the user logs to goes against AD, if that is successful, then it passes the user name and password to an exe that is also written in C#.Net that checks if the user name is sync with our other network applications. The problem I am having is that user can not have any spaces in there password, if they do it will get chopped of any not sync the correct password to the apps, any ideas on how I can fix this problem? Thanks har04mich

    E 1 Reply Last reply
    0
    • H har04mich

      I have a login web page writtin in C#.Net, when the user logs to goes against AD, if that is successful, then it passes the user name and password to an exe that is also written in C#.Net that checks if the user name is sync with our other network applications. The problem I am having is that user can not have any spaces in there password, if they do it will get chopped of any not sync the correct password to the apps, any ideas on how I can fix this problem? Thanks har04mich

      E Offline
      E Offline
      ehuysamer
      wrote on last edited by
      #2

      Have a look at the parameters that you are passing. You might try putting quotes around them: " This will not parse as part of the parameters; but be sure to escape any existing "s appropriately. By the way, its extremely bad practice passing passwords as command-line parameters: I'd suggest trying to have the password checked by your web app against the domain, and then just passing the user's name itself to your separate application to do whatever it does with it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups