filePro access unix login?

Fairlight fairlite at fairlite.com
Fri Jan 28 08:56:44 PST 2005


>From inside the gravity well of a singularity, Scott Nelson shouted:
> Can filePro, or a perl or javascript, access the user authentication, to
> allow a user login in a fp process to check the name and password?
>
> The idea is for a single source of authentication, for webifed filePro,
> and permit a filePro file that contains suppliment info and controls of
> the users.
>
> Any ideas?

Yes, you can.  I have perl code that checks the user's password against the
system password entry.  It works without using the raw files--so it even
works on FreeBSD.  It also handles MD5-style encryptions.  You need to
install an extra CPAN module for that.

The only downside of doing this is that you -must- be root on any system
that uses shadow or requires root access to get the encryption field (FBSD
doesn't use shadow, but you -do- have to be root).  So you'd need to use
sudo or the like.

But yes, I have such perl code.

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list