app\models\forms\LdapLoginForm::bind PHP Method

bind() private static method

private static bind ( )
    private static function bind()
    {
        $ldapbind = null;
        if (isset(self::$_configs['username']) == true && isset(self::$_configs['password']) == true) {
            $ldapbind = ldap_bind(self::$_conn, self::$_configs['username'], self::$_configs['password']);
        } elseif (isset(self::$_configs['username']) == true) {
            $ldapbind = ldap_bind(self::$_conn, self::$_configs['username']);
        }
    }