<div>Thank you Julian and Patrick for your comments and advice.</div>
<div> </div>
<div>I've decided to follow Patrick's suggestion to work within LDAP and have created a dedicated user within the Windows active directory which only edits content ('xerte_author') -- this Windows user account is used for nothing else and has never been logged in or signed in to any system other that via Xerte/LDAP. (I will have to find some LDAP administration software that will allow me to manage LDAP/Active Directory users and groups in conjunction with a customized Microsoft ASP/MSSQL user database--your suggestions for the most appropriate software to accomplish this would be appreciated).</div>
<div> </div>
<div>Meanwhile, I was able to get the LDAP authentication working after commenting out the following section of code within login_library.php:</div>
<div> </div>
<div>// ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);<br></div>
<div>Setting this particular option generates an error response of 1 which according the MSDN/LDAP reference is LDAP_OPERATIONS_ERROR. Interestingly, if I replace the line with ldap_get_option I see that the LDAP_OPT_PROTOCOL_VERSION is already set to 3 so I commented the line out.</div>
<div> </div>
<div>and later on :</div>
<div> </div>
<div>//$entry = ldap_get_entries($ds, $sr);</div>
<div>//if(! $entry or ! $entry[0]) {<br>// receive_message($username, "USER", "CRITICAL", "Login failed for " . $username, "Login failed for " . $username);<br>//return false;</div>
<div>//}else {</div>
<div>{<br><br>$entry is presently returning an array of 0 elements. </div>
<div> </div>
<div>Once these two sections of code are commented out I am able to log in, create and edit templates with ease. Do you foresee any difficulties with keeping these customizations?</div>
<div> </div>
<div>Thanks :-)</div>
<div> </div>
<div>Vince.</div>
<div><br> </div>
<div class="gmail_quote">On Sat, Mar 28, 2009 at 12:02 PM, Patrick Lockley <span dir="ltr"><<a href="mailto:Patrick.Lockley@nottingham.ac.uk">Patrick.Lockley@nottingham.ac.uk</a>></span> wrote:
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr">
<div dir="ltr"><font face="Arial" size="2"></font> </div>
<div dir="ltr"><font face="Arial" size="2">I don't see ms sql and LDAP as alternatives to each other - but if you wish to use another form of authentication then you would need to modify the code in the login_library.php functions. It would be a matter of writing a select query on the password and username variables, and then seeing what it returns.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font> </div>
<div dir="ltr"><font face="Arial" size="2">Pat</font></div></div></div></blockquote></div>