pam_ruby and "require" statement

  • Thread starter Vladimir Konrad
  • Start date
V

Vladimir Konrad

i am trying to write a pam module in ruby (using the latest pam-ruby and
ruby-pam). the basic test module/script works but it fails when trying
to use "require" statement (the same require statement succeeds from irb
or ruby).

so, is there a way to do require from ruby script when using pam-ruby?

vladimir
 
V

Vladimir Konrad

make sure that your library is in the $LOAD_PATH

not sure i understand, pam_ruby.so calls my ruby script, my ruby script
does require (for example "require pp").

the script works without require and not with require...

vlad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,124
Members
47,743
Latest member
henrywalker

Latest Threads

Top