Wednesday, May 27, 2009

PAM/LDAP authentication for webmin

In order to make it work, I have the following lines in /etc/webmin/miniserv.conf, which means it allows all unix users of admin group to login to webmin with their PAM password and act as root user of webmin or all unix users of user group to login with their PAM password and act as dnsmasq user of webmin.
unixauth=@admin=root @user=dnsmasq

The following line in /etc/webmin/miniserv.users defines users of webmin (two users defined with name root and dnsmasq)

The following lines in /etc/pam.d/webmin provides LDAP authentication for PAM password
auth sufficient
auth include system-auth

account sufficient
account required
account include system-auth

password required
password include system-auth

session sufficient
session include system-auth


Agustin said...

Excelente Guia, aplique los cambios tal y cual sugieres y funciona perfectamente.

Muchas Gracias por tu aportaciĆ³n.

Agustin Garcia-Cruz

Jason Qualkenbush said...

How did you find this out? I can't find any documentation on miniserv.conf anywhere.

Thanks for the post btw, It really helped out.