Added basic configuration for rfc2307bis
authorpaca70 <paca70>
Tue, 28 Sep 2004 12:50:33 +0000 (12:50 +0000)
committerpaca70 <paca70>
Tue, 28 Sep 2004 12:50:33 +0000 (12:50 +0000)
auth/ldap/lib.php

index 2f266a2ba0d6ef3944d0c73176fdcb612b6d0e97..48c9b431592a68efb2f3a703d6d58af429a5862d 100644 (file)
@@ -568,7 +568,8 @@ function auth_ldap_suppported_usertypes (){
 // And then add case clauses in relevant places in functions
 // iauth_ldap_init, auth_user_create, auth_check_expire, auth_check_grace
     $types['edir']='Novell Edirectory';
-    $types['posix']='posixAccount (rfc2307)';
+    $types['rfc2307']='posixAccount (rfc2307)';
+    $types['rfc2307bis']='posixAccount (rfc2307bis)';
     $types['samba']='sambaSamAccount (v.3.0.7)';
     $types['ad']='MS ActiveDirectory'; 
     return $types;
@@ -580,35 +581,40 @@ function auth_ldap_init () {
     global $CFG;
     $default['ldap_objectclass'] = array(
                         'edir' => 'User',
-                        'posix' => 'posixAccount',
+                        'rfc2703' => 'posixAccount',
+                        'rfc2703bis' => 'posixAccount',
                         'samba' => 'sambaSamAccount',
                         'ad' => 'user',
                         'default' => '*'
                         );
     $default['ldap_user_attribute'] = array(
                         'edir' => 'cn',
-                        'posix' => 'uid',
+                        'rfc2307' => 'uid',
+                        'rfc2307bis' => 'uid',
                         'samba' => 'uid',
                         'ad' => 'cn',
                         'default' => 'cn'
                         );
     $default['ldap_memberattribute'] = array(
                         'edir' => 'member',
-                        'posix' => 'member',
+                        'rfc2307' => 'member',
+                        'rfc2307bis' => 'member',
                         'samba' => 'member',
                         'ad' => 'member', //is this right?
                         'default' => 'member'
                         );
     $default['ldap_memberattribute_isdn'] = array(
                         'edir' => '1',
-                        'posix' => '0',
+                        'rfs2307' => '0',
+                        'rfs2307bis' => '1',
                         'samba' => '0', //is this right?
                         'ad' => '0', //is this right?
                         'default' => '0'
                         );
     $default['ldap_expireattr'] = array (
                         'edir' => 'passwordExpirationTime',
-                        'posix' => 'shadowExpire',
+                        'rfc2307' => 'shadowExpire',
+                        'rfc2307bis' => 'shadowExpire',
                         'samba' => '', //No support yet
                         'ad' => '', //No support yet
                         'default' => ''