[pmwiki-users] userAuth and unix passwd file

Masschelein Bart masschel at imec.be
Mon Jun 13 03:35:52 CDT 2005


Hello,

Back just now. Apparently I don't have direct access to the password file, but what I could do is on a regular basis "ypcat passwd > passwd.local". Like that I have a local copy of all passwords. So thats one problem solved. How do you see the next step? The problem is that the Unix pwd file does of course not contain the authentication attributes required by PmWiki (edit, read, etc). So would a good idea to proceed be that whenever a user logs in using his unix password, a local copy of the users entry is made in the .htpasswd file, used by PmWiki? And there then add the the attributes specific to the user?

Bart.

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: Thursday, June 09, 2005 19:53
To: Masschelein Bart
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] userAuth and unix passwd file


On Tue, Jun 07, 2005 at 06:16:45PM +0200, Masschelein Bart wrote:
>    Hello,
>     
>    I've installed the latest version of the PmWiki on the intranet of my
>    work, to be used among several users of several groups. I want to use the
>    userauth plug in, to to authentication. Is the only way to use this by
>    having the users enter their email addres and preferred username, and then
>    the admin has to send a pwd? Is there a way to link the unix passwd file
>    with the .passwd file required by PnWiki? Like this I don't have to give
>    everybody a new password. My guess is that it is not possible, as you have
>    to set the permission (read, edit, etc) as well. Any clues?

PmWiki's built-in authentication system can do what you want, *provided*
there's some way for PmWiki to be able to get read access to the
encrypted unix passwords.  Most modern unix systems store the passwords
in /etc/shadow or somewhere that makes it difficult for a web script
to be able to access them.  But if they're available somewhere, it's 
fairly simple to get PmWiki to use the unix passwords (and I'll be
happy to write the code to set that up).

Pm




More information about the pmwiki-users mailing list