DragonFly BSD
DragonFly bugs List (threaded) for 2012-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2407] openpam won't look for pkgsrc pam module path


From: Sascha Wildner via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 2 Sep 2012 06:49:20 -0700

Issue #2407 has been updated by Sascha Wildner.


On Sun, 02 Sep 2012 15:30:27 +0200, Stephane Russell via Redmine  
<bugtracker-admin@leaf.dragonflybsd.org> wrote:

> The default pam configuration files in DragonFly and pkgsrc are  
> specifying pam_krb5.so without the path. pkgsrc seems to take for  
> granted that /usr/pkg/lib/security is in the libpam search path. To fix  
> this, I added the complete path with all pam_krb5.so modules with  
> success.
>
> I noticed that the build of libpam is made with this flag:  
> -DOPENPAM_MODULES_DIR='"/usr/lib/security/"'
>
> This flag is defined here:
> lib/libpam/Makefile:MODULE_DIR=     ${LIBDIR}/security
> lib/libpam/Makefile:CFLAGS+= -DOPENPAM_MODULES_DIR='"${MODULE_DIR}/"'
>
> This parameter is hardcoded and for what I see, there is no way to add  
> dynamically other search paths.

Yeah this is what I meant, it is just one dir and not a list. The only way  
to override it (from looking at openpam_dynamic.c) seems to be an absolute  
path:

[...]
/* Prepend the standard prefix if not an absolute pathname. */
if (path[0] != '/')
         prefix = OPENPAM_MODULES_DIR;
else
         prefix = "";
[...]

Sascha
----------------------------------------
Bug #2407: openpam won't look for pkgsrc pam module path
http://bugs.dragonflybsd.org/issues/2407

Author: Stephane Russell
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


When I try to load pam modules that where installed from pkgsrc, they're installed in /usr/pkg/lib/security, which is not included in the openpam's search paths defined at compile time. I'm getting this error:

Aug 18 12:45:38 yyy login: in openpam_dynamic(): No such file or directory
Aug 18 12:45:38 yyy login: in openpam_load_module(): no pam_xxx.so found
Aug 18 12:45:38 yyy login: pam_start(): system error

The complete path is not specified in the default pam.d service files that comes with DragonFly.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



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