Re: dlopen("libpam.so", ...);

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you, RTLD_LAZY | RTLD_GLOBAL solves my problem. I'm still not sure, 
whether this will work:

struct pamSec {
    ...
    pam_start
    pam_end
    pam_authenticate
    ...
};

...
pamSec = loadPamLib(); /* this fills the pamSec structure */
pamSec->pam_start("service1", ...);
pamSec->pam_authenticate(...);
pamSec->pam_end(...);
...
pamSec->pam_start("service2", ...);
pamSec->pam_authenticate(...);
pamSec->pam_end(...);
...

when service1 and service2 use different modules, would pam_authenticate 
be different?

With regards
                 Ondrej Svetlik





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux