Re: Tying PHP3 to Linux-PAM: opaque objects
| From: | Jim Winstead | Date: | Wed, 16 Jun 1999 04:46:33 +0000 |
| Subject: | Re: Tying PHP3 to Linux-PAM: opaque objects | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-7006@lists.php.net to get a copy of this message | ||
(Note: php3-dev isn't the list you were looking for --
php-dev@lists.php.net is the primary development list.)
I would imagine that you would want to implement the PAM "handles"
the way that connection ids are handled by the various database
interfaces. (So looking at functions/mysql.c would be a good start,
particularly the php3_mysql_connect() and php3_mysql_query()
functions.)
Jim
On Jun 15, Stephen Langasek wrote:
> Hello all,
>
> I'm currently trying to create a module for PHP3 which will add support for
> PAM (Pluggable Authentication Modules), and have run into a bit of a
> problem. The PAM API requires applications to pass an opaque,
> session-specific object to its functions, and I can't figure out how to do
> this from PHP3. (I have no experience coding in PHP3; I'm writing this for
> the benefit of our web developers at work.) Nothing I've seen in the PHP3
> documentation suggests that there's a generic pointer data type. The
> IS_OBJECT() mentioned in the manual seemed promising, but the documentation
> is scarce and my forays into the PHP3 source code have left me confused, no
> closer to an answer.
>
> A quick search through the archive of this list shows that lack of PAM
> support is considered an open bug in PHP3, but there's no sign that anyone
> has done any work on it. Perhaps anyone who's tried ran into the same
> problem that I did? :)
>
> Can anyone shed some light on this?
>
> TIA,
> -Steve Langasek
> postmodern programmer
>
>