!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simplesamlphp/modules/ldap/lib/Auth/Source/   drwxrwxr-x
Free 13.53 GB of 61.93 GB (21.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     LDAPMulti.php (3.29 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * LDAP authentication source.
 *
 * See the ldap-entry in config-templates/authsources.php for information about
 * configuration of this authentication source.
 *
 * This class is based on www/auth/login.php.
 *
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_ldap_Auth_Source_LDAPMulti extends sspmod_core_Auth_UserPassOrgBase {

    
/**
     * An array with descriptions for organizations.
     */
    
private $orgs;

    
/**
     * An array of organization IDs to LDAP configuration objects.
     */
    
private $ldapOrgs;

    
/**
     * Whether we should include the organization as part of the username.
     */
    
private $includeOrgInUsername;


    
/**
     * Constructor for this authentication source.
     *
     * @param array $info  Information about this authentication source.
     * @param array $config  Configuration.
     */
    
public function __construct($info$config) {
        
assert('is_array($info)');
        
assert('is_array($config)');

        
/* Call the parent constructor first, as required by the interface. */
        
parent::__construct($info$config);

        
$cfgHelper SimpleSAML_Configuration::loadFromArray($config,
            
'Authentication source ' var_export($this->authIdTRUE));


        
$this->orgs = array();
        
$this->ldapOrgs = array();
        foreach (
$config as $name => $value) {

            if (
$name === 'username_organization_method') {
                
$usernameOrgMethod $cfgHelper->getValueValidate(
                    
'username_organization_method',
                    array(
'none''allow''force'));
                
$this->setUsernameOrgMethod($usernameOrgMethod);
                continue;
            }

            if (
$name === 'include_organization_in_username') {
                
$this->includeOrgInUsername $cfgHelper->getBoolean(
                    
'include_organization_in_username'FALSE);
                continue;
            }

            
$orgCfg $cfgHelper->getArray($name);
            
$orgId $name;

            if (
array_key_exists('description'$orgCfg)) {
                
$this->orgs[$orgId] = $orgCfg['description'];
            } else {
                
$this->orgs[$orgId] = $orgId;
            }

            
$orgCfg = new sspmod_ldap_ConfigHelper($orgCfg,
                
'Authentication source ' var_export($this->authIdTRUE) .
                
', organization ' var_export($orgIdTRUE));
            
$this->ldapOrgs[$orgId] = $orgCfg;
        }
    }


    
/**
     * Attempt to log in using the given username and password.
     *
     * @param string $username  The username the user wrote.
     * @param string $password  The password the user wrote.
     * @param string $org  The organization the user chose.
     * @return array  Associative array with the users attributes.
     */
    
protected function login($username$password$org, array $sasl_args NULL) {
        
assert('is_string($username)');
        
assert('is_string($password)');
        
assert('is_string($org)');

        if (!
array_key_exists($org$this->ldapOrgs)) {
            
/* The user has selected an organization which doesn't exist anymore. */
            
SimpleSAML_Logger::warning('Authentication source ' var_export($this->authIdTRUE) .
                
': Organization seems to have disappeared while the user logged in.' .
                
' Organization was ' var_export($orgTRUE));
            throw new 
SimpleSAML_Error_Error('WRONGUSERPASS');
        }

        if (
$this->includeOrgInUsername) {
            
$username $username '@' $org;
        }

        return 
$this->ldapOrgs[$org]->login($username$password$sasl_args);
    }


    
/**
     * Retrieve list of organizations.
     *
     * @return array  Associative array with the organizations.
     */
    
protected function getOrganizations() {
        return 
$this->orgs;
    }

}


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.488 ]--