> is there any possibility to do $SUBJ? I need to load PAM dynamically, > but there's a problem with pam_authenticate(). What problem ? You probably need RTLD_LAZY and RTLD_GLOBAL flags when using the dlopen() in this case. Else post what is going wrong (example code is best). Igmar