diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php
index <HASH>..<HASH> 100644
--- a/auth/ldap/lib.php
+++ b/auth/ldap/lib.php
@@ -1063,7 +1063,7 @@ function auth_ldap_getdefaults(){
                         'rfc2307' => 'member',
                         'rfc2307bis' => 'member',
                         'samba' => 'member',
-                        'ad' => 'member', //is this right?
+                        'ad' => 'memberOf', 
                         'default' => 'member'
                         );
     $default['ldap_memberattribute_isdn'] = array(
Merged from MOODLE_<I>_STABLE - Updated the definition of member for AD - thanks to Inaki for the tip!