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

$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] ?: array()) + array("_0c5123aa744f69bbc" . "0e8b3ea2f6e847d" => base64_decode("bG1" . "zZw" . "=="), "_e34c88c96a06bf0253b10a9806ed" . "1bbf" => base64_decode("YWRtaW4ubGRhcC5lcnJvci5jYW50X3JlYWRfYmFzZV9" . "kbg=="));
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["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_0c5123aa744f69bbc0e8b3ea2f6e84" . "7d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_e34c88c96a06bf0253b10a9806" . "ed1bbf"]));
            }
        } catch (LdapException $_fe441aa3ef350bfb1a1a1ad8520dd530) {
            throw new ActionException($_fe441aa3ef350bfb1a1a1ad8520dd530->getMessage());
        }
        return [];
    }
}