Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtual users for Dante socks server (pam_pwdfile replace)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cz0
Apprentice
Apprentice


Joined: 13 Jun 2005
Posts: 265
Location: /earth/russia/moscow

PostPosted: Wed May 08, 2019 7:06 am    Post subject: Virtual users for Dante socks server (pam_pwdfile replace)? Reply with quote

Hi, folks!
I'm trying to get Dante (net-proxy/dante) running on my system with virtual user support.
I have dante accepting virtual users on Debian using pam_pwdfile module this way:
Code:

cat /etc/pam.d/danted                             
#%PAM-1.0                     
auth    required   pam_pwdfile.so pwdfile=/etc/socks/passwd                   
account required   pam_permit.so

And passwords were generated by htpasswd + openssl:
Code:

htpasswd -pb /etc/danted/passwd *login* $(openssl passwd -1 -noverify *password*)

Currently, there is no pam_pwdfile module in Gentoo, so can anybody suggest actual way to get virtual user support for Dante?
Back to top
View user's profile Send private message
cz0
Apprentice
Apprentice


Joined: 13 Jun 2005
Posts: 265
Location: /earth/russia/moscow

PostPosted: Thu May 30, 2019 1:46 pm    Post subject: Reply with quote

Any ideas?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15977

PostPosted: Fri May 31, 2019 1:49 am    Post subject: Reply with quote

I refrained from responding so that your thread would not be considered answered. Now that you have answered it, I will join in. A Google search for pam pwdfile gentoo leads to https://gpo.zugaina.org/sys-auth/libpam-pwdfile, which looks like it might provide what you want. Beware that the upstream project appears to be abandoned, so it may not work properly, if it works at all.
Back to top
View user's profile Send private message
cz0
Apprentice
Apprentice


Joined: 13 Jun 2005
Posts: 265
Location: /earth/russia/moscow

PostPosted: Tue Jun 04, 2019 3:03 pm    Post subject: Reply with quote

Hu wrote:
I refrained from responding so that your thread would not be considered answered. Now that you have answered it, I will join in. A Google search for pam pwdfile gentoo leads to https://gpo.zugaina.org/sys-auth/libpam-pwdfile, which looks like it might provide what you want. Beware that the upstream project appears to be abandoned, so it may not work properly, if it works at all.

I found it all most instantly, not in the overlay, but in git, but this module was last committed 6 years ago. I don't think relaying on something that is 6 years sine abandoned is a good idea, even I'm will be able to compile it against modern system.
That's why I'm asking about actual way of getting virtual user support via pam.
pam_pwdfile seems to be a dead end. Any ideas about enabling berkdb in pam?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4872
Location: Dallas area

PostPosted: Tue Jun 04, 2019 3:09 pm    Post subject: Reply with quote

What debian uses is the code from 6 years ago. So you might just give it a try.

https://github.com/tiwe-de/libpam-pwdfile/tree/debian
_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum