NetDocuments-Archive / ad-join-cookbook

Chef cookbook to join windows computer to AD
Apache License 2.0
14 stars 12 forks source link

passwords should be single quoted #7

Closed opsline-radek closed 8 years ago

opsline-radek commented 8 years ago

Just in case they contain special characters like $.

spuder commented 8 years ago

Looks fixed in #8

rneu31 commented 7 years ago

Is there any additional improvements to this that will allow the ' character in a password? Or is that just something people avoid. Trying to support randomly generated passwords..

spuder commented 7 years ago

@rneu31 You could try something like this

password = "123'!" password..gsub("'","\\'")