[pmwiki-users] pmwiki and Active Directory
Tom
info at aurlund.no
Thu May 14 16:33:38 CDT 2009
Well...
I have tried to do it without using the chr(39)-things, but
unfortunately it didn't work.
- With the chr(39)-stuff the Main.HomePage was displayed.
- Without the chr(39)-stuff all I got was a blank page, obviously some
sort of syntax error or something in the script.
But I'm not an PHP-expert..
Regards,
Tom A.
> <regretfully top-posting... :-) >
>
> 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...
>
> -Peter
>
> On Thu, May 14, 2009 at 8:39 PM, Tom <info at aurlund.no
> <mailto:info at aurlund.no>> wrote:
>
> <top posting preferred>
>
> Here are some sample values for the $idinfo-array:
>
> $idinfo[1] = username => in our environment we are using a
> personal code like '98765432'
> $idinfo[2] = full name => f.eks. "Joe Doe"
> $idinfo[3] = Access Code:
>
> $idinfo[3] are linked to security groups in the Active Directory
> in the following manner:
>
> Security Group "WIKI": $idinfo[3] = "read"
> Security Group "PMWIKI": $idinfo[3] = "edit"
> Security Group "Administrators": $idinfo[3] = "admin"
>
> If username '98765432' with full name "Joe Doe" authenticates at
> the intranet website (via
> Active Directory) and he is a member of the PMWIKI Security Group
> then $idinfo[3] gets
> the value 'edit'.
>
> The resulting code in this case should be:
>
> $DefaultPasswords['edit'] = 'id:98765432'
>
> which again should give the result that the authenticated user
> should have site-wide edit access.
>
> But this is not the case - maybe I have got some permissions wrong
> on the folder structure for
> pmwiki ??
>
> - Regards,
> Tom A.
>
>
> On Wed, May 13, 2009 at 8:52 PM, Tom <info at aurlund.no
> <mailto:info at aurlund.no> <mailto:info at aurlund.no
> <mailto:info at aurlund.no>>> wrote:
>
> ...
>
>
> $idName = chr(39) . "id:" . $idinfo[1] . chr(39);
> $idCode = chr(39) . $idinfo[3] . chr(39);
>
> $DefaultPasswords[$idCode] = $idName;
>
>
> 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].
>
> -Peter
>
>
>
>
>
>
More information about the pmwiki-users
mailing list