APACHE: Tie in Web Page login with server login

Hello,

I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification.

I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server.

i.e. the same login info. is used for both, when the password is changed for the server login it changes both, and when l login using this info on the web page, I am considered the same user as when I logon to the server.

Any help with this would be greatly appreciated,
Thank you.

Somebody has written unofficial Apache modules that authenticate directly from the PAM.

Here is one example:
mod_auth_pam.c, pluggable authentication (PAM) for Apache

Not sure if that's useful to you.

hmmm,

not really sure if I can use PAM.

Thanks for the suggestion though.