Skip to content

Why does your code work? #1

Description

@milkpirate

Hey,

I am using the same package for handling PAM as you do (https://github.com/donpark/pam). And I am basically trying to do a HTTPS GET in the Authenticate(...) function. But as soon as I GET it hangs. Compiling as a regular binary everything is fine, but as a shared library it hangs as soon as I call the interesting functions in net/http. It is pretty much the same behavior as described here.

As a solution:

Using dlopen and dlsym will allow you to control when the Go runtime get loaded.

is mentioned but sicher PAM is invoking our modules we do not have control over how they are called. Since my code seem to me pretty similar to yours, I really would like to know if you could explain what you are doing differently or explain the solution from above.

Thank you very much in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions