Nội dung của SAP Note này đề cập đến cơ chế “Ngăn chặn lạm dụng bản quyền” (License Abuse Prevention) được áp dụng từ phiên bản SAP Business One 9.0 trở đi.
Dưới đây là các điểm chính bạn cần lưu ý:
1. Mục đích thay đổi
Thay thế các tính năng cũ (như dual login hay logon limitation) bằng một cơ chế chặt chẽ hơn để đảm bảo một User ID chỉ được sử dụng trong một phiên làm việc (session) duy nhất tại một thời điểm.
2. Quy tắc “3 Thông số”
Hệ thống sẽ kiểm soát việc đăng nhập dựa trên sự kết hợp của 3 yếu tố:
-
IP máy trạm (Workstation IP).
-
Tên người dùng Windows (Windows User).
-
ID phiên làm việc Windows (Windows Session ID).
3. Cách thức hoạt động
-
Đăng nhập thành công (Không bị khóa): Nếu cả 3 thông số trên giống hệt nhau, User có thể mở thêm bao nhiêu cửa sổ SAP hoặc đăng nhập vào bao nhiêu Database công ty tùy ý mà không gặp vấn đề gì.
-
Xảy ra xung đột (Bị khóa phiên cũ): Nếu User đó đăng nhập từ một nơi mà chỉ cần 1 trong 3 thông số trên thay đổi, hệ thống sẽ coi đó là một phiên làm việc mới. Lúc này:
-
Phiên đăng nhập mới vẫn thành công.
-
Nhưng: Phiên đăng nhập trước đó sẽ ngay lập tức bị khóa (Locked).
-
4. Ví dụ thực tế
| Trường hợp | Thay đổi | Kết quả |
| Mở thêm 1 Database khác trên cùng máy, cùng User Windows | Không thay đổi gì | Bình thường, không bị khóa. |
| User khác (UserB) đăng nhập trên cùng máy đó | Tên User SAP khác | Bình thường, vì đây là User khác. |
| UserA sang máy khác đăng nhập (Khác IP) | Khác IP và Session ID | Thành công nhưng phiên cũ bị khóa. |
| UserA dùng Remote Desktop vào máy cũ nhưng tạo Session mới | Khác Session ID | Thành công nhưng phiên cũ bị khóa. |
Description
Symptom
In SAP Business One versions lower than 9.0, the license mechanism could be abused in several ways.
SAP Business One 9.0 features a new “License Abuse Prevention”. This enhancement replaces both the “dual login” feature of earlier versions and the “logon limitation” in version 8.82.
Solution
As of SAP Business One 9.0 the license manager verifies the user name together with the following 3 parameters: workstation IP, Windows user and Windows session ID.
The purpose of this solution is to ensure that one user can connect to SAP Business One only via one single session.
Once the user logs on via a second session, the first session will be locked. A session can be either a new Windows logon to the same machine (with the same Windows user or a different Windows user) or a logon from a second station.
DETAIL:
One SAP Business One user can log on successfully if all of the 3 parameters are the same. It means during one session, one user can log on to an unlimited number of companies and/or can have unlimited logons to the same company.
However, if any of these parameters are changed when the same user logs on, the system will treat it as a second session, and the first session will be locked.
EXAMPLE:
When a user (called UserA) logs on to SAP Business One for the first time, the system records its parameters:
- Workstation IP (a)
- Windows User (b)
- Windows session ID (c)
Now for the following operations:
- UserA opens a new SAP Business One at the same workstation and logs on to another company database: It is an existing SAP Business One user name. All 3 parameters are unchanged. Logon is successful.
- UserB logs on to SAP Business One via the same workstation: It is a new SAP Business One user name. Logon is successful.
- UserA logs on to SAP Business One via another workstation with the same Windows user account: It is an existing SAP Business One user name, but parameters a and c are changed. Logon is successful but the previous session is locked.
- UserA logs on to SAP Business One via the remote connection to the same workstation with the same Windows user account: It is an existing SAP Business One user name, but parameter c is changed. Logon is successful but the previous session is locked.
LOCKED:
As mentioned above, when another session of your logged user is connected, your current user session is locked for all the companies, as when pressing File → Lock Screen menu in SAP Business One.
A system message appears: “Your session has been locked because another session was started using the same user ID. To continue, exit or lock the other session.”
EXCEPTION:
User “manager” is exceptional and it can log on via two sessions at the same time. This exception is to support the implementation scenario, in which SAP consultants use the “manager” account without interrupting or taking other users’ licenses.
Note:
The logon limitation is also applicable for the DI API.