<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>LDAP - the Never Ending Saga</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT FACE="Gill Sans MT">Hi, we just d/l'ed PMWiki, and think it will be a fantastic addition to our toolchest. We are setting up our wiki under Windows, and would like to use our Active Directory database to control access.</FONT></P>

<P><FONT FACE="Gill Sans MT">I have searched the forum (most notably in the August gzip), and am still not sure how to make this thing work. What I would like to do is:</FONT></P>

<P><FONT FACE="Gill Sans MT">&quot;Technology Services&quot; group members (CN=Technology Services,CN=Users,DC=GCSWV,DC=mygcs,DC=biz) - edit access;</FONT>

<BR><FONT FACE="Gill Sans MT">&quot;Information Technology Group&quot; (CN=Information Technology Group,CN=Users,DC=GCSWV,DC=mygcs,DC=biz) - read access</FONT>

<BR><FONT FACE="Gill Sans MT">&quot;Chris Williams&quot; (CN=Chris Williams,CN=Users,DC=GCSWV,DC=mygcs,DC=biz) - admin access</FONT>

<BR><FONT FACE="Gill Sans MT">&quot;Don Johnson&quot; (CN=Don Johnson,CN=Users,DC=GCSWV,DC=mygcs,DC=biz) - admin access<BR>
</FONT>

<BR><FONT FACE="Gill Sans MT">What I've got so far is :</FONT>

<BR><FONT SIZE=2 FACE="Courier New">$AuthUser['ldap'] = 'ldap://</FONT><FONT SIZE=2 FACE="Courier New">MTHOPE.GCSWV.mygcs.biz</FONT><FONT SIZE=2 FACE="Courier New">/cn=Users,dc=</FONT><FONT SIZE=2 FACE="Courier New">GCSWV,dc=mygcs</FONT><FONT SIZE=2 FACE="Courier New">,dc=</FONT><FONT SIZE=2 FACE="Courier New">biz</FONT><FONT SIZE=2 FACE="Courier New">?uid?sub';<BR>
&nbsp;&nbsp;&nbsp; $AuthLDAPBindDN = '</FONT><FONT SIZE=2 FACE="Courier New">$$$$Prod</FONT><FONT SIZE=2 FACE="Courier New">';</FONT><FONT SIZE=2 FACE="Courier New">&nbsp; # &lt;--Is this the login, or the Common name (&quot;Production Monitor&quot;)</FONT><BR>
<FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; $AuthLDAPBindPassword = '</FONT><FONT SIZE=2 FACE="Courier New">********</FONT><FONT SIZE=2 FACE="Courier New">';<BR>
<BR>
&nbsp;&nbsp;&nbsp; include_once(&quot;$FarmD/scripts/authuser.php&quot;);<BR>
</FONT>

<BR><FONT FACE="Gill Sans MT">But this does not work&#8230;we are too newbie to really get this.</FONT>
</P>

<P><FONT FACE="Gill Sans MT">Can someone tell me how to code this? </FONT>
</P>

<P><FONT COLOR="#000080" FACE="Gill Sans MT">Don Johnson</FONT>

<BR><FONT COLOR="#000080" FACE="Gill Sans MT">Technology Services VP</FONT>

<BR><FONT COLOR="#000080" FACE="Gill Sans MT">Global Contact Services, LLC</FONT>

<BR><FONT COLOR="#000080" FACE="Gill Sans MT">101 Martin Drive</FONT>

<BR><FONT COLOR="#000080" FACE="Gill Sans MT">Mt. Hope, WV&nbsp; 25880</FONT>

<BR><FONT COLOR="#000080" FACE="Gill Sans MT">+01.304.877.0427</FONT>
</P>

</BODY>
</HTML>