0

I was disappointed to know that my colleague said there is no ruby library which will help us to access windows credentials and store it somewhere (but python does) so that my ruby script can use it to authenticate. I looked around a little bit and found nothing, so is this true or do we have some way to do it.

My information was python can achieve this using win32cred.

[EDIT]: Would like to retrieve credentials from the Windows Credential manager and if it cannot find them then I would want to launch the Credential Password dialog which is the built in credential manager dialog and captures the username and password and saves it to the credential manager.

Supersonic
  • 430
  • 1
  • 11
  • 35

1 Answers1

1

use FFI to call the CryptProtectData/CryptUnProtectData methods https://github.com/ffi/ffi/wiki/Windows-Examples

rogerdpack
  • 62,887
  • 36
  • 269
  • 388
  • Ok, use FFI to wrap CredWrite/CredRead apparently (NB that this is less portable and doesn't support XP... http://stackoverflow.com/q/9221245/32453) – rogerdpack Jan 22 '14 at 16:35