search
Homephp教程PHP开发SQL server middleware supports front-end and back-end password separation

After more than a month of careful analysis and research, the verification process of sql server was finally completed, and the verification process was implemented separately in the middleware oneproxy-for-sqlserver of sql server. Currently oneproxy-for-sqlserver has implemented the front-end and back-end password separation function. You can learn more about the situation through civilian software or follow the wiki of this project to learn about the situation.

As of version 1.1.0 of oneproxy-for-sqlserver, the password separation function is supported. oneproxy-for-sqlserver is developed under the open source framework oneproxy-monotor. The front end uses a different username and password to log in to the database to log in to the middleware oneproxy-for-sqlserver, and oneproxy-for-sqlserver uses another username and password to log in to the database. The following explains the configuration and usage:

[oneproxy]
logfile = oneproxy_log.log
pidfile = oneproxy_pid.pid
listen_addr = 0.0.0.0
listen_port = 9999,8888,7777,6666
httpserver_addr = 0.0.0.0
httpserver_port = 8080
log_level = error
data_dump = false
log_sql = false
clientusername = admin
clientpassword = 123456
passwordseparate = true

[database_1433]
host = 127.0.0.1
port = 1433
username = sa
password = 0000 

[sqlserver_9999]
dbmastergroup = database_1433
classname = SSProtocol
frontport = 0

The above is the content in the configuration file. The configuration related to password separation is under the [oneproxy] and [database_xxx] tags. The following is the configuration under the [oneproxy] tag. This configuration is the username and password used by the client. passwordseparate instructs the middleware to use this feature or not. By default (without this configuration item), it is true. If you need to turn off the password separation function, just set this configuration to false.

clientusername = admin
clientpassword = 123456
passwordseparate = true

At the same time, it should be noted that the database information must be placed under the [database_xxx] tag, and the name of the tag must start with database. The username and password to log in to the database must be placed under the database label and specified by username and password.

Test environment:

Server version:

Microsoft SQL Server 2014 - 12.0.2000.8 (X64) 
    Feb 20 2014 20:04:26 
    Copyright (c) Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 14393: ) (Hypervisor)

Client program and version:

1. sqlserverjdbc4

2. Microsoft SQL Server Manager studio

3. sqlstress


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function