You are not logged in.

#1 2014-02-17 04:09:06

prelog
Member
Registered: 2012-09-08
Posts: 7

pam_userdb.so gone after upgrading pam-1.1.8-2 -> pam-1.1.8-3

I’m documenting this here just in case anyone else stumbles upon this.

Upgrade pam to 1.1.8-3:

[user@host pam.d]$ sudo pacman -S pam
Packages (1): pam-1.1.8-3
(1/1) upgrading pam                                                                           [#######################################################] 100%
No pacnew files to update.

/usr/lib/security/pam_userdb.so is gone:

[user@host pam.d]$ ls -la /usr/lib/security/pam_userdb.so 
ls: cannot access /usr/lib/security/pam_userdb.so: No such file or directory

Downgrade pam to 1.1.8-2:

[user@host pam.d]$ sudo pacman -U /var/cache/pacman/pkg/pam-1.1.8-2-x86_64.pkg.tar.xz 
warning: downgrading package pam (1.1.8-3 => 1.1.8-2)
Packages (1): pam-1.1.8-2
(1/1) downgrading pam                                                                         [#######################################################] 100%

/usr/lib/security/pam_userdb.so is back:

[user@host pam.d]$ ls -la /usr/lib/security/pam_userdb.so
-rwxr-xr-x 1 root root 14408 Oct 23 16:46 /usr/lib/security/pam_userdb.so

The package contents show it as missing, but the HTML documentation for the module is included.

Sure enough, it seems to have been unceremoniously removed:

upgpkg: pam 1.1.8-3
drop support for BerkeleyDB

The only mention of this I’ve been able to find so far is Re: [arch-dev-public] db6 rebuild dropped - new ToDo list, due to licensing changes in Berkeley DB and the lack of support for the version with a compatible licence.

I’ll be trying to find an alternative to pam_userdb.so, I guess.

Last edited by prelog (2014-02-17 04:11:54)

Offline

#2 2014-02-17 09:52:11

maximalist
Member
From: Ukraine
Registered: 2008-11-11
Posts: 7

Re: pam_userdb.so gone after upgrading pam-1.1.8-2 -> pam-1.1.8-3

So, how can I make virtual user authentication in vsftpd?

Last edited by maximalist (2014-02-17 10:00:52)

Offline

#3 2014-02-17 12:04:14

progandy
Member
Registered: 2012-05-17
Posts: 3,597

Re: pam_userdb.so gone after upgrading pam-1.1.8-2 -> pam-1.1.8-3

maximalist wrote:

So, how can I make virtual user authentication in vsftpd?

There is pam_pwdfile in the aur which allows you to use an apache-like htpasswd file
http://yohanes.pradono.com/2012/11/18/i … entication

Edit: You could also create your own aur package for pam_userdb (use whole pam release as source and only compile and install pam_userdb)

Last edited by progandy (2014-02-17 12:12:14)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2014-06-07 11:59:00

andreas_baumann
Member
Registered: 2011-05-04
Posts: 25

Re: pam_userdb.so gone after upgrading pam-1.1.8-2 -> pam-1.1.8-3

Actually, I saw the rant in the bug reporting tool on dropping pam_userdb.

I understand fully the decision:
- PAM should not have plentora of dependencies: nobody would integrate
  pam-sqlite, pam-postgresql or other pam modules with external dependencies
  into the 'pam' base package
- Berkley DB has licensing issues, so AUR is a good place for it
- ArchLinux is a bleeding edge distribution, there is no such rule as "keep features for
  the current main release".

I'm personally opting for an AUR project 'pam-userdb' which just provides this one module,
so nobody has to migrate 200 users on his production system.

And a short notice on the main page about the dropping of db support in PAM and the
availability of the separate module.

Last edited by andreas_baumann (2014-06-07 12:15:06)

Offline

Board footer

Powered by FluxBB