Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:30:12+00:00 2026-06-05T09:30:12+00:00

I am looking at the way PAM modules are designed as guidelines for my

  • 0

I am looking at the way PAM modules are designed as guidelines for my own JAAS LoginModule. One thing that surprised me is that, although the method used to access an hashed password is mostly orthogonal to the hash method itself, I was not able to find any PAM modules that would make good use of this property. Is it because of some security issue that I overlooked, or is it simply something that was not explored yet?

To explain a little bit more what I mean, let’s say that we have we have 3 different methods to access a hashed password (LDAP, SQL, plain files) and 2 hash methods (MD5, SHA1). Currently there is is one or more PAM modules for each access method, each one implementing one or more of these hash methods. Adding a new hash method (say BCrypt) means that all these access method needs to be modified to support the new hash type. A better design would be to have one PAM module for each access method that simply retrieves the hashed password using the user name, then to have a separate set of PAM modules that do the hash verification, with the hashed value shared between modules (like the password is). So if I use a database to store my password, and use MD5 to verify the password, my configuration would look like this:

password  required  pam_sql.so
password  required  pam_md5.so

In this configuration pam_sql retrieves the hashed password from a database (or fails if the username does not exist). Then pam_md5 compares the hashed password with the password to test and fails if they do not match. In a different configuration using Bcrypt, I would just have to replace pam_md5 by pam_bcrypt, without having to wait that the developers of pam_sql update it for the new hash method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:30:14+00:00Added an answer on June 5, 2026 at 9:30 am

    PAM doesn’t have knowledge of password hashing or methods of comparing passwords (whether hashed or not). PAM provides facilities for modules to have a “conversation” with the user, i.e. ask them questions and get answers from them. The usual questions are, of course, “what’s your username?” and “what’s your password?”, but they need not be. For all PAM cares, some module could ask the user 5 questions or none before deciding the outcome of the authentication process.

    What you are asking for is an abstraction at a lower layer than PAM that provides common services to that subset of PAM modules that deal with hashed passwords.

    What’s your question? Do you want to implement such an abstraction and promote it as a standard?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem is that I was looking for way to use both storyboard and
I'm looking the way to build an AddIn for Outlook with Python that add
I'm looking for way to change all array's keys to one key for all
Hi im looking a way to bookmark a page with JavaScript so that when
I am looking a way to set CommandTimeout for DbContext. After searching I found
I'm looking a way to quickly find a file in the eclipse Project Explorer/Navigator
I'm looking a way to enable IP logging with log4net in ASP.NET. I found
I'm looking for way to write Javascript programs / scripts on desktop, not inside
I'm looking a way to build conditional assignments in bash: In Java it looks
I am using codeigniter and looking a way to enable directly editting of doc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.