Displaying 2 results from an estimated 2 matches for "quotepwd".
Did you mean:
quoted
2009 Apr 21
4
Changing Passwords in Active Directory with ruby-net-ldap
I am building an application in Rails using ruby-net-ldap and I am
trying to figure out how to change passwords in Active Directory. Does
anyone have any experience with this using the ruby-net-ldap gem? I know
that I remember seeing an example on the web somewhere that showed how
to do this using the depot application from the Rails book but for the
life of me I can''t find it again. :(
2004 Aug 20
0
Creating domain users in AD from Linux
...fy as above.
Done. Last thing to understand will be why users created with Windows
tools get a userAccountControl value of 66048, but things work nicely
already.
This is the `cleartext2unicodepwd' script:
#!/usr/bin/env ruby
require "base64"
def cleartext2unicode(cleartextpwd)
quotepwd = '"' + cleartextpwd + '"'
unicodepwd = quotepwd.split('').join("\0") + "\0"
return Base64.encode64(unicodepwd)
end
if ARGV.length == 1
cleartextpwd = ARGV.shift
puts "unicodePwd::" + cleartext2unicode(cleartextpwd)
end
Chee...