LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-24-2015, 10:24 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
What is the alternative to PAM in Slackware?


For example, a machine I have runs Centos 6 and hosts a website, when I click on a certain link (ive made it do this) a dialog box opens up asking for username/password authentication over https which uses PAM (local accounts are still being used). How could this be done on Slackware without PAM (I am not actually asking how this would get done, but what would be used rather than PAM)?
 
Old 06-24-2015, 11:48 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The estimable V. Batts has (more or less) resolved that pesky PAM problem for us, so plain old PAM is an option.

If you don't want to use PAM for a web server, you can use CGI scripts or PHP code to simulate the same functionality, without the security.
 
Old 06-25-2015, 12:45 AM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
The estimable V. Batts has (more or less) resolved that pesky PAM problem for us, so plain old PAM is an option.

If you don't want to use PAM for a web server, you can use CGI scripts or PHP code to simulate the same functionality, without the security.
So, obviously I don't know how this works. How come apache can't just use regular user authentication for this like programs such as postfix/dovecot can? Also, I thought PAM was insecure (or that it's complex which can lead to being insecure for some?)? Just seems confusing to me thats all, why does apache need PAM when other software (even vsftpd) does not need it.
 
Old 06-25-2015, 03:31 AM   #4
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Rep: Reputation: 30
Possibly this - https://code.google.com/p/mod-auth-external

This is not a recommendation. I haven't used it and have no idea how secure it is but it may help.
 
Old 06-25-2015, 06:05 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by vulcan59 View Post
Possibly this - https://code.google.com/p/mod-auth-external

This is not a recommendation. I haven't used it and have no idea how secure it is but it may help.
I use this myself. I have a package here: http://www.slackware.com/~alien/slac...thnz_external/

In your httpd.conf you'd add lines that look like this for a dual authentication against the shadow database (which uses pwauth - included in my package) as well as a speparate htaccess file with custome accounts (for instance people you do not want to give shell access):
Code:
    ......
    <IfModule mod_auth_external.c>
        AddExternalAuth shadow_auth /usr/libexec/pwauth
        SetExternalAuthMethod shadow_auth pipe
    </IfModule>
    ......
    <Directory /some/directory>
        ......
        AuthBasicAuthoritative off
        AuthExternal shadow_auth
        AuthUserFile /some/htaccess/file/with/accounts/not/in/your/passwd
        AuthType Basic
        AuthName "Some protected area"
        require valid-user
        ......
    </Directory>
    ......
 
1 members found this post helpful.
Old 06-25-2015, 06:44 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
So, obviously I don't know how this works.
No worries, there's a manual.....
The first two paragraphs should help you better understand "why PAM instead of the local authentication subsystem ?".

Quote:
How come apache can't just use regular user authentication
It can and in high security environment, it does (though that's to segregate accounts in the DMZ from domain accounts, which means if you loose control of an asset in the wild lands, it wont create an exploitation path into the domain).

Quote:
I thought PAM was insecure
You have to write rules for it and if you screw that up, you can leave a hole in the system, or conversely you can make the thing so damn secure even you can't get back into it (trust me, I know this for true...)

Last edited by dijetlo; 06-25-2015 at 06:51 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration