<regretfully top-posting... :-) ><br><br>I would get rid of the CHR(39) business around everything. You need the actual values, not the values with single-quotes around them. I don't know if that will solve the whole thing, but it'll be one step closer...<br>
<br>-Peter<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 8:39 PM, Tom <span dir="ltr"><<a href="mailto:info@aurlund.no">info@aurlund.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<top posting preferred><br>
<br>
Here are some sample values for the $idinfo-array:<br>
<br>
$idinfo[1] = username => in our environment we are using a personal code like '98765432'<br>
$idinfo[2] = full name => f.eks. "Joe Doe"<br>
$idinfo[3] = Access Code:<br>
<br>
$idinfo[3] are linked to security groups in the Active Directory in the following manner:<br>
<br>
Security Group "WIKI": $idinfo[3] = "read"<br>
Security Group "PMWIKI": $idinfo[3] = "edit"<br>
Security Group "Administrators": $idinfo[3] = "admin"<br>
<br>
If username '98765432' with full name "Joe Doe" authenticates at the intranet website (via<br>
Active Directory) and he is a member of the PMWIKI Security Group then $idinfo[3] gets<br>
the value 'edit'.<br>
<br>
The resulting code in this case should be:<br>
<br>
$DefaultPasswords['edit'] = 'id:98765432'<br>
<br>
which again should give the result that the authenticated user should have site-wide edit access.<br>
<br>
But this is not the case - maybe I have got some permissions wrong on the folder structure for<br>
pmwiki ??<br>
<br>
- Regards,<br><font color="#888888">
Tom A.</font><div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, May 13, 2009 at 8:52 PM, Tom <<a href="mailto:info@aurlund.no" target="_blank">info@aurlund.no</a> <mailto:<a href="mailto:info@aurlund.no" target="_blank">info@aurlund.no</a>>> wrote:<br>
<br>
...<br>
<br>
<br>
$idName = chr(39) . "id:" . $idinfo[1] . chr(39);<br>
$idCode = chr(39) . $idinfo[3] . chr(39);<br>
<br>
$DefaultPasswords[$idCode] = $idName;<br>
<br>
<br>
This information is probably available in your post if I read it carefully enough, but, lazy man that I am, would it be possible for you to give some sample values for $idinfo[1], $idinfo[2], and $idinfo[3]? I'm thinking [1] is a username, [2] is a full name, and [3] is a group. But I'm unsure what type of values you have in [3].<br>
<br>
-Peter<br>
</blockquote>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>