コード例 #1
0
ファイル: localusers.php プロジェクト: bloveing/openulteo
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('override_password', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     return $ret;
 }
コード例 #2
0
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('use_child_group', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     return $ret;
 }
コード例 #3
0
ファイル: internal.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('generate_aps_login', _("Which login should be used for the ApplicationServer's generated user?"), _("Which login should be used for the ApplicationServer's generated user?"), _("Which login should be used for the ApplicationServer's generated user?"), 1);
     $c->setContentAvailable(array(0 => _('Use given login'), 1 => _('Auto-generate')));
     $ret[] = $c;
     return $ret;
 }
コード例 #4
0
ファイル: novell.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('dlu', _('Manage users by ZENworks DLU instead of native method'), _('Manage users by ZENworks DLU instead of native method'), _('Manage users by ZENworks DLU instead of native method'), 0);
     $c->setContentAvailable(array(0 => _('no'), 1 => _('yes')));
     $ret[] = $c;
     return $ret;
 }
コード例 #5
0
ファイル: RemoteUser.php プロジェクト: bloveing/openulteo
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_input('user_authenticate_trust', 'REMOTE_USER');
     $ret[] = $c;
     $c = new ConfigElement_select('remove_domain_if_exists', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     return $ret;
 }
コード例 #6
0
ファイル: internal.php プロジェクト: bloveing/openulteo
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('generate_aps_login', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     $c = new ConfigElement_select('generate_aps_password', 1);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     return $ret;
 }
コード例 #7
0
ファイル: ldap.php プロジェクト: bloveing/openulteo
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_input('filter', '(objectClass=posixGroup)');
     $ret[] = $c;
     $c = new ConfigElement_dictionary('match', array('name' => 'cn', 'description' => 'description'));
     $ret[] = $c;
     $c = new ConfigElement_multiselect('group_match_user', array('group_field'));
     $c->setContentAvailable(array('user_field', 'group_field'));
     $ret[] = $c;
     $c = new ConfigElement_input('user_field', 'member');
     $ret[] = $c;
     $c = new ConfigElement_select('user_field_type', 'group_dn');
     $c->setContentAvailable(array('group_dn', 'group_name'));
     $ret[] = $c;
     $c = new ConfigElement_input('group_field', 'memberUid');
     $ret[] = $c;
     $c = new ConfigElement_select('group_field_type', 'user_login');
     $c->setContentAvailable(array('user_dn', 'user_login'));
     $ret[] = $c;
     $c = new ConfigElement_input('ou', '');
     // optionnal
     $ret[] = $c;
     return $ret;
 }
コード例 #8
0
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_list('hosts', array());
     $ret[] = $c;
     $c = new ConfigElement_input('domain', NULL);
     $ret[] = $c;
     $c = new ConfigElement_input('login', NULL);
     $ret[] = $c;
     $c = new ConfigElement_password('password', NULL);
     $ret[] = $c;
     $c = new ConfigElement_input('port', '389');
     $ret[] = $c;
     $c = new ConfigElement_select('use_ssl', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     $c = new ConfigElement_dictionary('match', array());
     $ret[] = $c;
     $c = new ConfigElement_select('accept_expired_password', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     return $ret;
 }
コード例 #9
0
ファイル: Preferences.class.php プロジェクト: skdong/nfs-ovd
 public function getPrefsModules()
 {
     $available_module = $this->getAvailableModule();
     // we remove all diseable modules
     foreach ($available_module as $mod2 => $sub_mod2) {
         foreach ($sub_mod2 as $sub_mod_name2 => $sub_mod_pretty2) {
             $enable = call_user_func(array($mod2 . '_' . $sub_mod_name2, 'enable'));
             if ($enable !== true) {
                 unset($available_module[$mod2][$sub_mod_name2]);
             }
         }
     }
     $modules_prettyname = array();
     $enabledByDefault = array();
     foreach ($available_module as $module_name => $sub_module) {
         $modules_prettyname[$module_name] = $module_name;
         if (call_user_func(array($module_name, 'enabledByDefault'))) {
             $enabledByDefault[] = $module_name;
         }
     }
     $c2 = new ConfigElement_multiselect('module_enable', _('Modules activation'), _('Choose the modules you want to enable.'), _('Choose the modules you want to enable.'), $enabledByDefault);
     $c2->setContentAvailable($modules_prettyname);
     $this->add($c2, 'general');
     foreach ($available_module as $mod => $sub_mod) {
         $module_is_multiselect = call_user_func(array($mod, 'multiSelectModule'));
         if ($module_is_multiselect) {
             $c = new ConfigElement_multiselect('enable', $mod, $mod, $mod, array());
             $c->setContentAvailable($sub_mod);
         } else {
             $c = new ConfigElement_select('enable', $mod, $mod, $mod, NULL);
             $c->setContentAvailable($sub_mod);
         }
         foreach ($sub_mod as $k4 => $v4) {
             $default1 = call_user_func(array($mod . '_' . $k4, 'isDefault'));
             if ($default1 === true) {
                 if ($module_is_multiselect) {
                     $c->content[] = $k4;
                 } else {
                     $c->content = $k4;
                 }
             }
         }
         //dirty hack (if this->elements[mod] will be empty)
         if (!isset($this->elements[$mod])) {
             $this->elements[$mod] = array();
         }
         $this->add($c, $mod);
         $this->addPrettyName($mod, 'Module ' . $mod);
         foreach ($sub_mod as $sub_mod_name => $sub_mod_pretty) {
             $module_name = $mod . '_' . $sub_mod_name;
             $list_conf = call_user_func(array($module_name, 'configuration'));
             if (is_array($list_conf)) {
                 foreach ($list_conf as $l_conf) {
                     $this->add($l_conf, $mod, $sub_mod_name);
                 }
             }
         }
     }
 }
コード例 #10
0
ファイル: activedirectory.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_list('hosts', _('Server host address'), _('The address of your Active Directory server.'), _('The address of your Active Directory server.'), array());
     $ret[] = $c;
     $c = new ConfigElement_input('domain', _('Domain name'), _('Domain name used by Active Directory'), _('Domain name used by Active Directory'), NULL);
     $ret[] = $c;
     $c = new ConfigElement_input('login', _('Administrator DN'), _('The user login that must be used to access the database (to list users accounts).'), _('The user login that must be used to access the database (to list users accounts).'), NULL);
     $ret[] = $c;
     $c = new ConfigElement_password('password', _('Administrator password'), _('The user password that must be used to access the database (to list users accounts).'), _('The user password that must be used to access the database (to list users accounts).'), NULL);
     $ret[] = $c;
     $c = new ConfigElement_dictionary('match', _('match'), _('match'), _('match'), array());
     $ret[] = $c;
     $c = new ConfigElement_select('accept_expired_password', _('Accept expired password'), _('Authorize a user connection even if the password has expired, to have the Windows server perform the password renew process'), _('Authorize a user connection even if the password has expired, to have the Windows server perform the password renew process'), 0);
     $c->setContentAvailable(array(0 => _('no'), 1 => _('yes')));
     $ret[] = $c;
     return $ret;
 }
コード例 #11
0
ファイル: ldap.php プロジェクト: bloveing/openulteo
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_list('hosts', array('servldap.example.com'));
     $ret[] = $c;
     $c = new ConfigElement_input('port', '389');
     $ret[] = $c;
     $c = new ConfigElement_select('use_ssl', 0);
     $c->setContentAvailable(array(0, 1));
     $ret[] = $c;
     $c = new ConfigElement_input('login', '');
     $ret[] = $c;
     $c = new ConfigElement_password('password', '');
     $ret[] = $c;
     $c = new ConfigElement_input('suffix', 'dc=servldap,dc=example,dc=com');
     $ret[] = $c;
     $c = new ConfigElement_dictionary('options', array('LDAP_OPT_PROTOCOL_VERSION' => '3', 'LDAP_OPT_REFERRALS' => 0));
     $ret[] = $c;
     $c = new ConfigElement_input('filter', '(objectClass=posixAccount)');
     $ret[] = $c;
     $c = new ConfigElement_dictionary('match', array('login' => 'uid', 'uid' => 'uidnumber', 'displayname' => 'displayName', 'distinguishedname' => 'distinguishedname'));
     $ret[] = $c;
     $c = new ConfigElement_input('ou', '');
     // optionnal
     $ret[] = $c;
     $c = new ConfigElement_dictionary('extra', array());
     $ret[] = $c;
     return $ret;
 }
コード例 #12
0
ファイル: ldap_memberof.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_dictionary('match', _('Matching'), _('Matching'), _('Matching'), array('description' => 'description', 'name' => 'name', 'member' => 'member'));
     $ret[] = $c;
     $c = new ConfigElement_select('use_child_group', _('Use child groups'), _('Use child groups'), _('Use child groups'), 0);
     $c->setContentAvailable(array(0 => _('No'), 1 => _('Yes')));
     $ret[] = $c;
     return $ret;
 }
コード例 #13
0
ファイル: sql_external.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_input('host', _('Server host address'), _('The address of your MySQL server.'), _('The address of your MySQL server.'), '');
     $ret[] = $c;
     $c = new ConfigElement_input('user', _('User login'), _('The user login that must be used to access the database (to list users accounts).'), _('The user login that must be used to access the database (to list users accounts).'), '');
     $ret[] = $c;
     $c = new ConfigElement_password('password', _('User password'), _('The user password that must be used to access the database (to list users accounts).'), _('The user password that must be used to access the database (to list users accounts).'), '');
     $ret[] = $c;
     $c = new ConfigElement_input('database', _('Database name'), _('The name of the database.'), _('The name of the database.'), '');
     $ret[] = $c;
     $c = new ConfigElement_input('table', _('Table of users'), _('Table of users'), _('Table of users'), '');
     $ret[] = $c;
     $c = new ConfigElement_dictionary('match', _('Matching'), _('Matching'), _('Matching'), array('login' => 'login', 'displayname' => 'displayname'));
     $ret[] = $c;
     $c = new ConfigElement_select('hash_method', _('Hash method'), _('Hash method'), _('Hash method'), 'plain');
     $c->setContentAvailable(array('md5' => _('MD5'), 'crypt' => _('Crypt'), 'shadow' => _('Shadow'), 'plain' => _('Plain')));
     $ret[] = $c;
     return $ret;
 }
コード例 #14
0
ファイル: Auto.php プロジェクト: skdong/nfs-ovd
 public static function configuration()
 {
     $ret = array();
     $c = new ConfigElement_select('uselogin', _('Use the given login to generate user'), _('Use the given login to generate user.'), _('Use the given login to generate user.'), 0);
     $c->setContentAvailable(array(0 => _('No'), 1 => _('Yes')));
     $ret[] = $c;
     return $ret;
 }