private function GetLDAPConnectionOptions()
    {

        if (!isset($this->ldapConOp) || is_null($this->ldapConOp)) {
            // Build basic LDAP connection configuration.
            $this->ldapConOp = [
                "account_suffix"     => Settings::get('eloquent-ldap.account_suffix'),
                "base_dn"            => Settings::get('eloquent-ldap.base_dn'),
                "domain_controllers" => [ Settings::get('eloquent-ldap.server') ], // config item must be an array.
                "admin_username"     => Settings::get('eloquent-ldap.user_name'),
                "admin_password"     => Settings::get('eloquent-ldap.password'),
//                "real_primarygroup"  => Settings::get('eloquent-ldap.return_real_primary_group'),
//                "recursive_groups"   => Settings::get('eloquent-ldap.recursive_groups'),
//                "sso"                => false, // Settings::get('eloquent-ldap.sso'), // NOT SUPPORTED HARD CODED TO FALSE.
                "follow_referrals"   => false, // Settings::get('eloquent-ldap.follow_referrals'), // NOT SUPPORTED HARD CODED TO FALSE.
            ];
            // Create the communication option part, add the encryption and port info.
            if ('tls' === Settings::get('eloquent-ldap.secured')) {
                $comOpt = [
                    "use_ssl" => false,
                    "use_tls" => true,
                    "port" => Settings::get('eloquent-ldap.secured_port'),
                ];
            } else if ('ssl' === Settings::get('eloquent-ldap.secured')) {
                $comOpt = [
                    "use_ssl" => true,
                    "use_tls" => false,
                    "port" => Settings::get('eloquent-ldap.secured_port'),
                ];
            } else {
                $comOpt = [
                    "use_ssl" => false,
                    "use_tls" => false,
                    "port" => Settings::get('eloquent-ldap.port'),
                ];
            }
            // Merge all options together.
            $this->ldapConOp = array_merge($this->ldapConOp, $comOpt);
        }

        return $this->ldapConOp;

    }
private function GetLDAPConnectionOptions()
    {

        if (!isset($this->ldapConOp) || is_null($this->ldapConOp)) {
            // Build basic LDAP connection configuration.
            $this->ldapConOp = [
                "account_suffix"     => Settings::get('eloquent-ldap.account_suffix'),
                "base_dn"            => Settings::get('eloquent-ldap.base_dn'),
                "domain_controllers" => [ Settings::get('eloquent-ldap.server') ], // config item must be an array.
                "admin_username"     => Settings::get('eloquent-ldap.user_name'),
                "admin_password"     => Settings::get('eloquent-ldap.password'),
//                "real_primarygroup"  => Settings::get('eloquent-ldap.return_real_primary_group'),
//                "recursive_groups"   => Settings::get('eloquent-ldap.recursive_groups'),
//                "sso"                => false, // Settings::get('eloquent-ldap.sso'), // NOT SUPPORTED HARD CODED TO FALSE.
                "follow_referrals"   => false, // Settings::get('eloquent-ldap.follow_referrals'), // NOT SUPPORTED HARD CODED TO FALSE.
            ];
            // Create the communication option part, add the encryption and port info.
            if ('tls' === Settings::get('eloquent-ldap.secured')) {
                $comOpt = [
                    "use_ssl" => false,
                    "use_tls" => true,
                    "port" => Settings::get('eloquent-ldap.secured_port'),
                ];
            } else if ('ssl' === Settings::get('eloquent-ldap.secured')) {
                $comOpt = [
                    "use_ssl" => true,
                    "use_tls" => false,
                    "port" => Settings::get('eloquent-ldap.secured_port'),
                ];
            } else {
                $comOpt = [
                    "use_ssl" => false,
                    "use_tls" => false,
                    "port" => Settings::get('eloquent-ldap.port'),
                ];
            }
            // Merge all options together.
            $this->ldapConOp = array_merge($this->ldapConOp, $comOpt);
        }

        return $this->ldapConOp;

    }
private function GetLDAPConnectionOptions ( ) { if ( ! isset ( $ this -> ldapConOp ) || is_null ( $ this -> ldapConOp ) ) { // Build basic LDAP connection configuration. $ this -> ldapConOp = [ "account_suffix" => Settings :: get ( 'eloquent-ldap.account_suffix' ) , "base_dn" => Settings :: get ( 'eloquent-ldap.base_dn' ) , "domain_controllers" => [ Settings :: get ( 'eloquent-ldap.server' ) ] , // config item must be an array. "admin_username" => Settings :: get ( 'eloquent-ldap.user_name' ) , "admin_password" => Settings :: get ( 'eloquent-ldap.password' ) , //                "real_primarygroup"  => Settings::get('eloquent-ldap.return_real_primary_group'), //                "recursive_groups"   => Settings::get('eloquent-ldap.recursive_groups'), //                "sso"                => false, // Settings::get('eloquent-ldap.sso'), // NOT SUPPORTED HARD CODED TO FALSE. "follow_referrals" => false , // Settings::get('eloquent-ldap.follow_referrals'), // NOT SUPPORTED HARD CODED TO FALSE. ] ; // Create the communication option part, add the encryption and port info. if ( 'tls' === Settings :: get ( 'eloquent-ldap.secured' ) ) { $ comOpt = [ "use_ssl" => false , "use_tls" => true , "port" => Settings :: get ( 'eloquent-ldap.secured_port' ) , ] ; } else if ( 'ssl' === Settings :: get ( 'eloquent-ldap.secured' ) ) { $ comOpt = [ "use_ssl" => true , "use_tls" => false , "port" => Settings :: get ( 'eloquent-ldap.secured_port' ) , ] ; } else { $ comOpt = [ "use_ssl" => false , "use_tls" => false , "port" => Settings :: get ( 'eloquent-ldap.port' ) , ] ; } // Merge all options together. $ this -> ldapConOp = array_merge ( $ this -> ldapConOp , $ comOpt ) ; } return $ this -> ldapConOp ; }
Builds the LDAP connection options from the configuration files.

@return array
Builds the LDAP connection options from the configuration files .