<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,6 +8,7 @@ FEATURES
 --------
 * Unified authentication and access controls: just use your Drupal user name
   and password to login via DAV, too.
+* Works against LDAP authentication provided by ldap_integration.module.
 * The web display of DAV collection indexes is entirely themeable.
 
 INSTALLATION
@@ -41,7 +42,7 @@ TROUBLESHOOTING
 CREDITS
 -------
 Developed and maintained by Arto Bendiken &lt;http://bendiken.net/&gt;
-Additional development on Drupal 6.x by Justin R. Miller &lt;http://codesorcery.net/&gt;
+Development on Drupal 6.x by Justin R. Miller &lt;http://codesorcery.net/&gt;
 Sponsored by MakaluMedia Group &lt;http://www.makalumedia.com/&gt;
 Sponsored by M.C. Dean, Inc. &lt;http://www.mcdean.com/&gt;
 Sponsored by SPAWAR &lt;http://www.spawar.navy.mil/&gt;</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -65,8 +65,8 @@ function dav_menu() {
     DAV_ROOT =&gt; array(
       'title' =&gt; 'DAV',
       'type' =&gt; MENU_CALLBACK,
-      'access callback'  =&gt; 'user_access',
-      'access arguments' =&gt; array('access content'), // further access controls are enforced in the DAV server
+      'access callback'  =&gt; 'is_bool',
+      'access arguments' =&gt; array(TRUE), // further access controls are enforced in the DAV server
       'page callback' =&gt; 'dav_request',
     ),
     // Administer &gt;&gt; Site configuration &gt;&gt; DAV settings
@@ -334,9 +334,23 @@ function _dav_get_transient_blob($resource) {
 function _dav_authenticate($name, $pass) {
   // This is an ugly special case to support the LDAP auth module, which
   // does not use Drupal's authentication system.
-  //$func = function_exists('_ldapauth_user_authenticate') ? '_ldapauth_user_authenticate' : 'user_authenticate';
-  $func = 'user_authenticate'; // FIXME when LDAP is ported to D6
-  return $func(array('name' =&gt; $name, 'pass' =&gt; $pass));
+  if (function_exists('ldapauth_login_validate')) {
+    // emulate login form values
+    $form_state = array(
+      'values' =&gt; array(
+        'name' =&gt; $name,
+        'pass' =&gt; $pass
+      ),
+    );
+    // ldapauth_login_validate() returns nothing, but sets global $user
+    global $user;
+    ldapauth_login_validate(NULL, $form_state);
+    return $user;
+  }
+  else {
+    // user_authenticate() returns $user object
+    return user_authenticate(array('name' =&gt; $name, 'pass' =&gt; $pass));
+  }
 }
 
 function _dav_init_include_path() {</diff>
      <filename>dav.module</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>777e8aceb77084f7eef76fa76ed5db152023a2b1</id>
    </parent>
  </parents>
  <author>
    <name>Justin R. Miller</name>
    <email>incanus@codesorcery.net</email>
  </author>
  <url>http://github.com/incanus/drupal-dav/commit/20c3970301330697e710ccfffdb59636ac4d0a09</url>
  <id>20c3970301330697e710ccfffdb59636ac4d0a09</id>
  <committed-date>2008-09-11T21:54:03-07:00</committed-date>
  <authored-date>2008-09-11T21:54:03-07:00</authored-date>
  <message>merged from development repository to r5437
 * added ldap_integration.module support
 * adjusted README.txt to add LDAP info and update development credits</message>
  <tree>2993d49310a5c5945651f63f54779f79e28e82a8</tree>
  <committer>
    <name>Justin R. Miller</name>
    <email>incanus@codesorcery.net</email>
  </committer>
</commit>
