<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi, everyone.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;m brand new here and I&#8217;ve searched through the
archives for assistance.&nbsp; I found the topic of AD authentication in the
archives but couldn&#8217;t really get anything working right.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I feel bad asking more about it but I really want to get
this working for my company.&nbsp; Basically, I&#8217;m running MS Server 2003 with
PmWiki, Apache, php, etc. installed and we have an Active Directory Server that
I want to use to authenticate employees at the company.&nbsp; Until this point,
since the wiki is being used for documentation, I&#8217;ve had a default
password for both reading and editing that only IT knows here.&nbsp; But I want
to expand the wiki so that employees can use a general section of it too.&nbsp;
The best way is definitely AD since we already have this set up here.&nbsp; I&#8217;ve
tried the steps listed here: <a
href="http://www.pmwiki.org/wiki/PmWiki/AuthUser">http://www.pmwiki.org/wiki/PmWiki/AuthUser</a>
and I can login through our Administrator AD account, but not my personal one
(and I assume no other accounts either).&nbsp; So, it is indeed authenticating
but only for one account?&nbsp; So weird.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here&#8217;s the php code I&#8217;m using for this:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>#Security Variables set login for edit &amp; history page<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; # to let anyone edit that has an ldap
entry:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; $HandleAuth['diff'] = 'edit';<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; $DefaultPasswords['read'] = 'id:*';<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; $DefaultPasswords['edit'] = 'id:*';<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; $Author = $AuthId;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>$AuthLDAPBindDN = &quot;caldwellfunding\\one of our
usernames&quot;;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>$AuthLDAPBindPassword = &quot;the password for that username&quot;;
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>$AuthUser['ldap'] = 'ldap://cfc-ct-ad01.caldwellfunding.com/dc=caldwellfunding,dc=com?mailNickname?sub';
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>include_once(&quot;$FarmD/scripts/authuser.php&quot;);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Again, this is based on the Pmwiki documentation.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Anyway, does anyone have a successful setup with a remote AD
server that can help out?&nbsp; Thanks so much!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=3 color=black face=Arial><span style='font-size:12.0pt;font-family:Arial;
color:black;font-weight:bold'>David Johnson</span></font></b><b><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black;font-weight:bold'><br>
<st1:place w:st="on"><st1:City w:st="on"><strong><b><font face=Arial><span
  style='font-family:Arial'>Caldwell</span></font></b></strong></st1:City></st1:place><strong><b><font
face=Arial><span style='font-family:Arial'> Funding Corporation</span></font></b></strong></span></font></b><font
size=2 color=black><span style='font-size:10.0pt;color:black'> <br>
</span></font><st1:Street w:st="on"><st1:address w:st="on"><font size=2
  color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:black'>1055 Washington Boulevard</span></font></st1:address></st1:Street><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>, 8th Floor</span></font><font color=black><span style='color:
black'><br>
</span></font><st1:place w:st="on"><st1:City w:st="on"><font size=2
  color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:black'>Stamford</span></font></st1:City><font size=2 color=black
 face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>, <st1:State
 w:st="on">CT</st1:State> <st1:PostalCode w:st="on">06901</st1:PostalCode></span></font></st1:place><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'> <br>
</span></font><font color=black face=Arial><span style='font-family:Arial;
color:black'><a href="mailto:david.johnson@caldwellfunding.com"><font size=2
color=black><span style='font-size:10.0pt;color:black'>david.johnson@caldwellfunding.com</span></font></a></span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>T: (203) 517 0100 (Office)<br>
T: (203) 517 0034 (Direct)<br>
Fax: (203) 517 0109</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

<pre>The information contained in this message, including any attachment hereto, may contain confidential and/or privileged material. 
This message is intended solely for the person(s) to whom it is addressed. If you are not an intended recipient, please be advised 
that any review, use, dissemination, forwarding or copying of this message is strictly prohibited. If you received this
message in error, please notify the sender immediately and delete it from your system. E-mail transmissions are not secure, 
and we accept no liability for errors in transmission, delayed transmission, changes made to this message after it was originally sent, 
or other transmission-related issues. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the 
responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments 
will not adversely affect its systems or data. No responsibility is accepted by Caldwell Funding Corporation and its affiliates in this 
regard and the recipient should carry out such virus and other checks as it considers appropriate.