[pmwiki-users] private group access question(s)

Neil Herber nospam at mail.eton.ca
Fri Mar 4 21:59:07 CST 2005


At 2005-03-04  03:47 PM -0600, Patrick R. Michaud is rumored to have said:
> > Hmmm ... whatever will alllow Neil and Bob to use pages in the Private
> > group just like all the other pages (read, edit, upload).
> > And whatever will prevent others from accessing the group. I already have
> > (:pagelist:) and (:searchbox:) suppression for the group.
>
>Okay, you'll want to keep the group read password on the Private
>group so that pages don't show up in pagelist and search.  That means
>we just need some way to automatically supply the read password
>when Neil or Bob are logged in.  So, maybe
>
>     if (@$_SESSION['REMOTE_USER'] == 'Neil'
>         || @$_SESSION['REMOTE_USER'] == 'Bob') {
>       session_start();
>       $_SESSION['authpw']['abcdef']++;
>     }
>
>where 'abcdef' should be the password to access the Private group.
>Essentially, this just says that whenever Neil or Bob access the
>site (as authenticated by the web server), then pretend that
>'abcdef' is already in the list of passwords they've sent.
>
>Yeah, it's a hack, but it should work.  :-)

I cut and pasted the code to config.php on the wiki field. I changed the 2 
usernames to their real values. I changed the abcdef to the real read 
password for the group. It still asks for the password! I also tried the 
"crypted" version of the password.

This would be ideal if I could get it to work!


Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list