FusionDirectory
class_userinfoNoAuth.inc
Go to the documentation of this file.
1 <?php
2 /*
3  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
4  Copyright (C) 2017-2018 FusionDirectory
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
30 class userinfoNoAuth extends userinfo
31 {
32  function __construct ($context = 'fake')
33  {
34  parent::__construct($context);
35 
36  /* This fake user have all rights */
37  $this->ignoreACL = TRUE;
38  }
39 
40  function loadLDAPInfo ()
41  {
42  $this->cn = $this->dn;
43  $this->uid = $this->dn;
44  }
45 
46  function getBase ()
47  {
48  global $config;
49 
50  return $config->current['BASE'];
51  }
52 }
Class userinfoNoAuth This represents a fake user used by public pages such as password recovery or se...
Class userinfo This class contains all informations and functions about user.