- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: PAM Module loading error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 06:30 AM
10-10-2000 06:30 AM
PAM Module loading error
- I built a first PAM module doing nothing but writting in the syslog. I had no problems.
- Then i add a function needing the use of external shared libraries.
In this case i have the same error "Can't load module...".
I tried to link dynamically the external shared libraries (using shl_load in my module code).
Now the PAM is able to load the module, but i still have the following problems:
- My module library is able to find the external dependencies ONLY if i put the hard-coded full path of this library.
The pam module doesn't use the SHLIB_PATH define and the path given with the +b option while linking it.
- If the dependency library has its own dependencies, it won't be able to find the libraries, even with the SHLIB_PATH defined.
Sometimes, i manage to make it work with SU, but i never made it working with DTLOGIN.
Does Anyone have an idea ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 07:08 AM
10-10-2000 07:08 AM
Re: PAM Module loading error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 07:08 AM
10-10-2000 07:08 AM
Re: PAM Module loading error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 07:10 AM
10-10-2000 07:10 AM
Re: PAM Module loading error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 07:24 AM
10-10-2000 07:24 AM
Re: PAM Module loading error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2000 07:42 AM
10-10-2000 07:42 AM
Re: PAM Module loading error
Are they really the patches to install ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 12:43 AM
10-11-2000 12:43 AM
Re: PAM Module loading error
The problem is stil there...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 04:27 AM
10-11-2000 04:27 AM
Re: PAM Module loading error
Are you specifying the +b option in your link? This would allow you set a library search path for use at runtime.
Here's example output from running chatr on 10.20 xclock.
/usr/bin/X11/xclock:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /opt/audio/lib:/opt/image/lib:/optb
internal name:
xclock
shared library list:
dynamic /vobs/build_backing/feb96_1010//lib/libXt.1
dynamic /vobs/build_backing/feb96_1010//lib/libXext.1
dynamic /vobs/build_backing/feb96_1010//lib/libX11.1
dynamic /vobs/common/10.10/usr/lib/libc.1
shared library binding:
deferred
static branch prediction disabled
kernel assisted branch predictionenabled
lazy swap allocationdisabled
text segment lockingdisabled
data segment lockingdisabled
data page size: 4K
instruction page size: 4K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2000 05:09 AM
10-11-2000 05:09 AM
Re: PAM Module loading error
I even tried to manually set SHLIB_PATH in the code (putenv("SHLIB_PATH=
I still have the error : can't find module.
here is my module's chatr:
-------------------------------------------
ser-250:/usr/lib/security> chatr libpam_am.1
libpam_am.1:
shared library
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /lib:/usr/lib:/opt/ism5/shared_lib
shared library list:
dynamic /usr/lib/libpam.1
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
data page size: D (default)
instruction page size: D (default)
-------------------------------------------
you don't see the external needed library in the dependencies since i dynamically load it in the code.
If i link with it, i have the error "can not module" from the libpam in the syslog, straight at the library load.