<?php
namespace Claromentis\Admin\Sysadmin\Ldap\Action;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] ?: array()) + array("_e34c88c96a06bf0253b10" . "a9806ed1bbf" => base64_decode("YWRtaW4ubGRh" . "cC5lcnJvci5j" . "YW50X3JlYWRf" . "YmFzZV9kbg=="), "_0c5123aa744f69bbc" . "0e8b3ea2f6e847d" => base64_decode("bG1zZw" . "=="));
use Claromentis\Admin\Sysadmin\Ldap\Action;
use Claromentis\Admin\Sysadmin\Ldap\ConnectionInfo;
use Claromentis\Admin\Sysadmin\Ldap\Exception\ActionException;
use Claromentis\Core\User\Directory\Exception\LdapException;








class Connect implements Action
{
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function Run(ConnectionInfo $_12e791699eac68001ce474ba4b8c1031, array $data)
    {
        try {
            $_360c647d4c765175a91a97e78e9f9558 = $_12e791699eac68001ce474ba4b8c1031->GetConnection();
            $_360c647d4c765175a91a97e78e9f9558->Connect();
            $_0d554e76e5204294feffa4dddea981e2 = $_360c647d4c765175a91a97e78e9f9558->Read($_12e791699eac68001ce474ba4b8c1031->GetSettings()->base_dn);
            if (!$_0d554e76e5204294feffa4dddea981e2) {
                throw new ActionException($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0c5123aa744f69bbc0e8b3ea" . "2f6e847d"]($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_e34c88c96a06bf02" . "53b10a9806ed1bbf"]));
            }
        } catch (LdapException $_fe441aa3ef350bfb1a1a1ad8520dd530) {
            throw new ActionException($_fe441aa3ef350bfb1a1a1ad8520dd530->getMessage());
        }
        return [];
    }
}