[go: up one dir, main page]

CN118885994A - SMB user management method, device, electronic device and readable storage medium - Google Patents

SMB user management method, device, electronic device and readable storage medium Download PDF

Info

Publication number
CN118885994A
CN118885994A CN202411095783.6A CN202411095783A CN118885994A CN 118885994 A CN118885994 A CN 118885994A CN 202411095783 A CN202411095783 A CN 202411095783A CN 118885994 A CN118885994 A CN 118885994A
Authority
CN
China
Prior art keywords
user
smb
cluster
target
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411095783.6A
Other languages
Chinese (zh)
Inventor
李世杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Inspur Data Technology Co Ltd
Original Assignee
Zhengzhou Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Inspur Data Technology Co Ltd filed Critical Zhengzhou Inspur Data Technology Co Ltd
Priority to CN202411095783.6A priority Critical patent/CN118885994A/en
Publication of CN118885994A publication Critical patent/CN118885994A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a SMB user management method, a device, an electronic device and a readable storage medium, which are applied to any service node in a shared service cluster and comprise the following steps: creating a target SMB user and determining a working mode; if the single-node mode is adopted, determining a new serial number according to serial numbers of all the same-name SMB users of the target SMB users in other service nodes, setting the user serial number as the new serial number in a user information table corresponding to the target SMB users, and setting a user tag as an independent user; if the user information table is in the cluster mode, setting the user serial number as a default serial number in the user information table corresponding to the target SMB user, setting the user label as the cluster user, and updating the user serial number in the cluster mode along with the updating of the corresponding user information table; and managing each SMB user according to each user information table. The scheme realizes the simultaneous support of the shared service cluster to the single node mode and the cluster mode, and further realizes the unified management of the SMB users.

Description

SMB用户管理方法、装置、电子设备及可读存储介质SMB user management method, device, electronic device and readable storage medium

技术领域Technical Field

本申请涉及集群系统技术领域,特别涉及一种SMB用户管理方法,还涉及一种SMB用户管理装置、电子设备、计算机可读存储介质以及计算机程序产品。The present application relates to the technical field of cluster systems, and in particular to an SMB user management method, and also to an SMB user management device, an electronic device, a computer-readable storage medium, and a computer program product.

背景技术Background Art

Samba是Linux和UNIX系统上实现SMB协议(Server Message Block,一种用于不同网络节点间的共享传输协议)的一个服务套件,其主要目的是在Linux服务器或UNIX服务器上能够对Windows客户端提供SMB共享服务,从而方便企业内部对员工的用户数据进行集中管理。Samba is a service suite that implements the SMB protocol (Server Message Block, a shared transmission protocol between different network nodes) on Linux and UNIX systems. Its main purpose is to provide SMB sharing services to Windows clients on Linux or UNIX servers, thereby facilitating centralized management of employee user data within the enterprise.

Samba服务使用的前提是要先提供认证用户,基于Samba服务直接创建的认证用户分为两种:单节点用户和集群用户,这两种用户在正常情况下是无法互通的,即Samba服务工作在单节点模式下创建的认证用户只能在单节点模式下使用,在集群模式下创建的认证用户只能在集群模式下使用。这样存在的显著问题是当客户设置Samba服务在单节点模式和集群模式这两种模式下切换时,一种模式下创建的用户到了另一种模式下就自动失效。由此可见,Samba服务现有的技术架构对于集群模式和单节点模式的用户管理是相互独立的,即单节点模式下创建的SMB用户到了集群模式下就无法看到,反过来集群模式下创建的SMB用户切换至单节点模式时同样看不到,也就是隔离了单节点模式和集群模式下用户管理的统一性。The premise of using Samba service is to provide authentication users first. There are two types of authentication users directly created based on Samba service: single-node users and cluster users. These two types of users cannot communicate with each other under normal circumstances, that is, authentication users created when Samba service works in single-node mode can only be used in single-node mode, and authentication users created in cluster mode can only be used in cluster mode. The significant problem is that when the customer sets Samba service to switch between single-node mode and cluster mode, users created in one mode will automatically become invalid when in the other mode. It can be seen that the existing technical architecture of Samba service is independent of each other for user management in cluster mode and single-node mode, that is, SMB users created in single-node mode cannot be seen in cluster mode, and conversely, SMB users created in cluster mode cannot be seen when switched to single-node mode, which means that the uniformity of user management in single-node mode and cluster mode is isolated.

因此,如何实现共享服务集群对于单节点模式和集群模式的同时支持,进而实现共享服务集群在两种不同工作模式下对于SMB用户的统一管理是本领域技术人员亟待解决的问题。Therefore, how to realize the shared service cluster to support both the single node mode and the cluster mode, and then realize the shared service cluster to manage SMB users in a unified manner under the two different working modes is a problem to be solved urgently by those skilled in the art.

发明内容Summary of the invention

本申请的目的是提供一种SMB用户管理方法,该SMB用户管理方法可以实现共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理;本申请的另一目的是提供一种SMB用户管理装置、电子设备、计算机可读存储介质以及计算机程序产品,均具有上述有益效果。The purpose of the present application is to provide an SMB user management method, which can realize the simultaneous support of a shared service cluster for a single-node mode and a cluster mode, thereby realizing the unified management of SMB users by the shared service cluster under two different working modes; another purpose of the present application is to provide an SMB user management device, an electronic device, a computer-readable storage medium, and a computer program product, all of which have the above-mentioned beneficial effects.

第一方面,本申请提供了一种SMB用户管理方法,应用于共享服务集群中的任一服务节点,所述共享服务集群中的所有服务节点均连接于统一数据库,所述统一数据库用于存储所述共享服务集群中所有SMB用户的用户信息表,所述方法包括:In a first aspect, the present application provides an SMB user management method, which is applied to any service node in a shared service cluster, where all service nodes in the shared service cluster are connected to a unified database, and the unified database is used to store user information tables of all SMB users in the shared service cluster, and the method includes:

当接收到SMB用户创建命令时,根据所述SMB用户创建命令创建目标SMB用户,并确定所述共享服务集群的工作模式;所述工作模式包括单节点模式和集群模式;When receiving an SMB user creation command, creating a target SMB user according to the SMB user creation command, and determining a working mode of the shared service cluster; the working mode includes a single node mode and a cluster mode;

若所述工作模式为所述单节点模式,确定所述目标SMB用户在其他各所述服务节点中的同名SMB用户,根据各所述同名SMB用户的序列号确定新序列号,在所述目标SMB用户对应的用户信息表中设置用户序列号为所述新序列号,设置用户标签为独立用户;If the working mode is the single-node mode, determine the SMB users with the same name as the target SMB user in each of the other service nodes, determine a new serial number according to the serial numbers of each of the SMB users with the same name, set the user serial number as the new serial number in the user information table corresponding to the target SMB user, and set the user label as an independent user;

若所述工作模式为所述集群模式,在所述目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,所述集群模式下的用户序列号随着相应用户信息表的更新而更新;If the working mode is the cluster mode, the user serial number is set as the default serial number in the user information table corresponding to the target SMB user, and the user tag is set as a cluster user; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated;

根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理。Each of the SMB users is managed according to each user information table in the unified database.

可选地,当SMB用户管理操作具体为修改操作时,所述根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理,包括:Optionally, when the SMB user management operation is specifically a modification operation, managing each SMB user according to each user information table in the unified database includes:

确定待修改SMB用户的用户数据;Determine the user data of the SMB user to be modified;

若所述工作模式为所述单节点模式,则判断服务节点本地是否存在所述待修改SMB用户的同名SMB用户;若存在,则利用所述用户数据覆盖所述同名SMB用户的原始用户数据,并在所述同名SMB用户对应的用户信息表中设置用户标签为独立用户;若不存在,则执行所述根据所述SMB用户创建命令创建目标SMB用户的步骤;If the working mode is the single-node mode, determine whether there is an SMB user with the same name as the SMB user to be modified locally in the service node; if so, overwrite the original user data of the SMB user with the same name with the user data, and set the user label as an independent user in the user information table corresponding to the SMB user with the same name; if not, execute the step of creating a target SMB user according to the SMB user creation command;

若所述工作模式为所述集群模式,则判断所述共享服务集群中是否存在所述待修改SMB用户的同名SMB用户;若存在,则利用所述用户数据覆盖所述同名SMB用户的原始用户数据,并在所述同名SMB用户对应的用户信息表中设置用户标签为集群用户,且同步其他各所述服务节点执行所述修改操作;若不存在,则执行所述根据所述SMB用户创建命令创建目标SMB用户的步骤。If the working mode is the cluster mode, determine whether there is an SMB user with the same name as the SMB user to be modified in the shared service cluster; if so, use the user data to overwrite the original user data of the SMB user with the same name, and set the user label as a cluster user in the user information table corresponding to the SMB user with the same name, and synchronize other service nodes to perform the modification operation; if not, execute the step of creating the target SMB user according to the SMB user creation command.

可选地,当SMB用户管理操作具体为检索操作时,所述根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理,包括:Optionally, when the SMB user management operation is specifically a retrieval operation, managing each SMB user according to each user information table in the unified database includes:

确定目标查询SMB用户的用户信息;Determine the user information of the target SMB user to be queried;

若所述工作模式为所述单节点模式,则利用所述用户信息判断服务节点本地是否存在所述目标查询SMB用户;若存在,则输出所述目标查询SMB用户的用户数据;若不存在,则输出错误提示;If the working mode is the single node mode, the user information is used to determine whether the target query SMB user exists locally in the service node; if so, the user data of the target query SMB user is output; if not, an error prompt is output;

若所述工作模式为所述集群模式,则利用所述用户信息判断服务节点本地是否存在用户标签为集群用户的目标查询SMB用户;若存在,则输出所述用户标签为集群用户的目标查询SMB用户的用户数据;若不存在,则在所述共享服务集群中确定用户标签为独立用户的所有目标查询SMB用户,并在所有用户标签为独立用户的目标查询SMB用户中确定用户序列号为最新序列号的目标查询SMB用户,输出所述用户序列号为最新序列号的目标查询SMB用户的用户数据。If the working mode is the cluster mode, the user information is used to determine whether there is a target query SMB user with a user label of a cluster user locally in the service node; if so, the user data of the target query SMB user with a user label of a cluster user is output; if not, all target query SMB users with a user label of an independent user are determined in the shared service cluster, and the target query SMB user with a user serial number of the latest serial number is determined among all target query SMB users with a user label of an independent user, and the user data of the target query SMB user with a user serial number of the latest serial number is output.

可选地,当SMB用户管理操作具体为删除操作时,所述根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理,包括:Optionally, when the SMB user management operation is specifically a deletion operation, managing each SMB user according to each user information table in the unified database includes:

确定待删除SMB用户;Confirm the SMB user to be deleted;

若所述工作模式为所述单节点模式,则将所述待删除SMB用户在服务节点本地的同名SMB用户删除;If the working mode is the single node mode, deleting the SMB user with the same name as the SMB user to be deleted in the local service node;

若所述工作模式为所述集群模式,则将所述待删除SMB用户在所述共享服务集群中的同名SMB用户删除。If the working mode is the cluster mode, the SMB users with the same name as the SMB user to be deleted in the shared service cluster are deleted.

可选地,所述当接收到SMB用户创建命令时,根据所述SMB用户创建命令创建目标SMB用户之后,还包括:Optionally, when receiving the SMB user creation command, after creating the target SMB user according to the SMB user creation command, the method further includes:

判断所述共享服务集群是否存在默认用户组;Determine whether there is a default user group in the shared service cluster;

若存在,则执行所述确定所述共享服务集群的工作模式的步骤;If so, executing the step of determining the working mode of the shared service cluster;

若不存在,则设置所述目标SMB用户属于所述默认用户组,并将所述目标SMB用户的用户信息加入所述默认用户组的成员列表,返回所述当接收到SMB用户创建命令时,根据所述SMB用户创建命令创建目标SMB用户的步骤。If not, the target SMB user is set to belong to the default user group, and the user information of the target SMB user is added to the member list of the default user group, and the process returns to the step of creating the target SMB user according to the SMB user creation command when an SMB user creation command is received.

可选地,当所述服务节点为新加入服务节点时,所述方法还包括:Optionally, when the service node is a newly added service node, the method further includes:

确定所述共享服务集群的工作模式;Determining a working mode of the shared service cluster;

若所述工作模式为所述单节点模式,则执行预设操作;If the working mode is the single node mode, executing the preset operation;

若所述工作模式为所述集群模式,则向所述共享服务集群的主服务节点获取用户标签为集群用户的各所述SMB用户的用户信息,并保存至本地。If the working mode is the cluster mode, the user information of each of the SMB users whose user tag is a cluster user is obtained from the main service node of the shared service cluster and saved locally.

可选地,所述SMB用户管理方法还包括:Optionally, the SMB user management method further includes:

接收客户端针对所述目标SMB用户的SMB连接请求;Receive an SMB connection request from a client for the target SMB user;

根据所述SMB连接请求判断是否所述目标SMB用户是否存在;Determine whether the target SMB user exists according to the SMB connection request;

若不存在,则向所述客户端反馈错误提示;If it does not exist, an error message is fed back to the client;

若存在,则向所述客户端反馈响应信息,以接收所述客户端发送的所述目标SMB用户的密码数据,利用所述目标SMB用户的注册密码数据对所述密码数据进行校验,并在校验通过时与所述客户端建立SMB连接。If so, a response message is fed back to the client to receive the password data of the target SMB user sent by the client, verify the password data using the registered password data of the target SMB user, and establish an SMB connection with the client when the verification passes.

第二方面,本申请还提供了一种SMB用户管理装置,应用于共享服务集群中的任一服务节点,所述共享服务集群中的所有服务节点均连接于统一数据库,所述统一数据库用于存储所述共享服务集群中所有SMB用户的用户信息表,所述装置包括:In a second aspect, the present application further provides an SMB user management device, which is applied to any service node in a shared service cluster, wherein all service nodes in the shared service cluster are connected to a unified database, and the unified database is used to store user information tables of all SMB users in the shared service cluster, and the device includes:

确定模块,用于当接收到SMB用户创建命令时,根据所述SMB用户创建命令创建目标SMB用户,并确定所述共享服务集群的工作模式;所述工作模式包括单节点模式和集群模式;A determination module, configured to, when receiving an SMB user creation command, create a target SMB user according to the SMB user creation command, and determine a working mode of the shared service cluster; the working mode includes a single node mode and a cluster mode;

第一设置模块,用于若所述工作模式为所述单节点模式,确定所述目标SMB用户在其他各所述服务节点中的同名SMB用户,根据各所述同名SMB用户的序列号确定新序列号,在所述目标SMB用户对应的用户信息表中设置用户序列号为所述新序列号,设置用户标签为独立用户;A first setting module is used for, if the working mode is the single-node mode, determining SMB users with the same name as the target SMB user in each of the other service nodes, determining a new serial number according to the serial numbers of each of the SMB users with the same name, setting the user serial number as the new serial number in the user information table corresponding to the target SMB user, and setting the user label as an independent user;

第二设置模块,用于若所述工作模式为所述集群模式,在所述目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,所述集群模式下的用户序列号随着相应用户信息表的更新而更新;A second setting module is used for setting the user serial number as a default serial number and the user tag as a cluster user in the user information table corresponding to the target SMB user if the working mode is the cluster mode; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated;

管理模块,用于根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理。The management module is used to manage each of the SMB users according to each user information table in the unified database.

第三方面,本申请还公开了一种电子设备,包括:In a third aspect, the present application further discloses an electronic device, comprising:

存储器,用于存储计算机程序;Memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上所述的任一种SMB用户管理方法的步骤。A processor is used to implement the steps of any one of the SMB user management methods described above when executing the computer program.

第四方面,本申请还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的任一种SMB用户管理方法的步骤。In a fourth aspect, the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the SMB user management methods described above are implemented.

第五方面,本发明还公开了一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现如上所述的任一种SMB用户管理方法的步骤。In a fifth aspect, the present invention further discloses a computer program product, including a computer program/instruction, which implements the steps of any one of the SMB user management methods described above when executed by a processor.

本申请提供了一种SMB用户管理方法,应用于共享服务集群中的任一服务节点,所述共享服务集群中的所有服务节点均连接于统一数据库,所述统一数据库用于存储所述共享服务集群中所有SMB用户的用户信息表,所述方法包括:当接收到SMB用户创建命令时,根据所述SMB用户创建命令创建目标SMB用户,并确定所述共享服务集群的工作模式;所述工作模式包括单节点模式和集群模式;若所述工作模式为所述单节点模式,确定所述目标SMB用户在其他各所述服务节点中的同名SMB用户,根据各所述同名SMB用户的序列号确定新序列号,在所述目标SMB用户对应的用户信息表中设置用户序列号为所述新序列号,设置用户标签为独立用户;若所述工作模式为所述集群模式,在所述目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,所述集群模式下的用户序列号随着相应用户信息表的更新而更新;根据所述统一数据库中的各用户信息表对各所述SMB用户进行管理。The present application provides an SMB user management method, which is applied to any service node in a shared service cluster, wherein all service nodes in the shared service cluster are connected to a unified database, and the unified database is used to store user information tables of all SMB users in the shared service cluster. The method comprises: when an SMB user creation command is received, a target SMB user is created according to the SMB user creation command, and a working mode of the shared service cluster is determined; the working mode comprises a single node mode and a cluster mode; if the working mode is the single node mode, the SMB users with the same name as the target SMB user in other service nodes are determined, a new serial number is determined according to the serial numbers of the SMB users with the same name, the user serial number is set to the new serial number in the user information table corresponding to the target SMB user, and the user label is set to an independent user; if the working mode is the cluster mode, the user serial number is set to the default serial number in the user information table corresponding to the target SMB user, and the user label is set to a cluster user; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated; and each SMB user is managed according to each user information table in the unified database.

应用本申请所提供的技术方案,在共享服务集群中创建统一数据库,使得共享服务集群中的所有服务节点均连接于该统一数据库,用于存储各服务节点下创建的所有SMB用户的用户信息表,该用户信息表中记录有相应SMB用户的用户标签和用户序列号,用户标签表示相应SMB用户的用户类型,即单节点模式下的独立用户和集群模式下的集群用户,用户序列号表示相应SMB用户最近一次更新的序列号,可以保证在用户检索时可以检索到最近一次更新过的同名SMB用户。在此基础上,在创建完成一个目标SMB用户后,即可根据共享服务集群的工作模式对其在统一数据库中对应的用户信息表进行设置,也就是设定该SMB用户的用户标签和用户序列号,从而可以根据统一数据库中的各用户信息表中所记录的用户信息实现共享服务集群中的SMB用户管理。由此,本技术方案实现了共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理。Applying the technical solution provided by the present application, a unified database is created in a shared service cluster, so that all service nodes in the shared service cluster are connected to the unified database, which is used to store the user information table of all SMB users created under each service node, and the user information table records the user label and user serial number of the corresponding SMB user, the user label indicates the user type of the corresponding SMB user, that is, the independent user in the single node mode and the cluster user in the cluster mode, and the user serial number indicates the serial number of the most recent update of the corresponding SMB user, which can ensure that the most recently updated SMB user with the same name can be retrieved when the user searches. On this basis, after a target SMB user is created, the corresponding user information table in the unified database can be set according to the working mode of the shared service cluster, that is, the user label and user serial number of the SMB user are set, so that the SMB user management in the shared service cluster can be realized according to the user information recorded in each user information table in the unified database. Therefore, the technical solution realizes the simultaneous support of the shared service cluster for the single node mode and the cluster mode, and then realizes the unified management of SMB users by the shared service cluster under two different working modes.

在本申请的一个实施例中,客户端可以通过连接SMB用户实现对共享服务集群的访问,当客户端发起针对某目标SMB用户的SMB连接请求时,服务节点将会首先判断该目标SMB用户是否存在,并在确定目标SMB用户存在时对其进行密码校验,从而在校验通过时实现客户端与目标SMB用户的SMB连接,使得客户端可以通过连接SMB用户实现对共享服务集群的访问,有效地保证了共享服务集群的安全性。其中,当确定目标SMB用户不存在时将会直接发起错误提示,不再对SMB连接请求进行处理,保证了共享服务集群的访问效率。In one embodiment of the present application, the client can access the shared service cluster by connecting to the SMB user. When the client initiates an SMB connection request for a target SMB user, the service node will first determine whether the target SMB user exists, and perform a password check on the target SMB user when it is determined that the target SMB user exists, thereby achieving an SMB connection between the client and the target SMB user when the check passes, so that the client can access the shared service cluster by connecting to the SMB user, effectively ensuring the security of the shared service cluster. Among them, when it is determined that the target SMB user does not exist, an error prompt will be directly initiated, and the SMB connection request will no longer be processed, ensuring the access efficiency of the shared service cluster.

本申请所提供的SMB用户管理装置、电子设备、计算机可读存储介质以及计算机程序产品,同样具有上述技术效果,本申请在此不再赘述。The SMB user management device, electronic device, computer-readable storage medium, and computer program product provided in this application also have the above-mentioned technical effects, and this application will not repeat them here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明现有技术和本申请实施例中的技术方案,下面将对现有技术和本申请实施例描述中需要使用的附图作简要的介绍。当然,下面有关本申请实施例的附图描述的仅仅是本申请中的一部分实施例,对于本领域普通技术人员来说,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图,所获得的其他附图也属于本申请的保护范围。In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings required for use in the description of the prior art and the embodiments of the present application are briefly introduced below. Of course, the drawings described below in relation to the embodiments of the present application are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work, and the obtained other drawings also belong to the protection scope of the present application.

图1为本申请所提供的一种共享服务集群的结构示意图;FIG1 is a schematic diagram of the structure of a shared service cluster provided by the present application;

图2为本申请所提供的一种SMB用户管理方法的流程示意图;FIG2 is a flow chart of an SMB user management method provided by the present application;

图3为本申请所提供的一种统一数据库的布局图;FIG3 is a layout diagram of a unified database provided by the present application;

图4为本申请所提供的一种SMB用户管理装置的结构示意图;FIG4 is a schematic structural diagram of an SMB user management device provided by the present application;

图5为本申请所提供的一种电子设备的结构示意图。FIG5 is a schematic diagram of the structure of an electronic device provided in the present application.

具体实施方式DETAILED DESCRIPTION

本申请的核心是提供一种SMB用户管理方法,该SMB用户管理方法可以实现共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理;本申请的另一核心是提供一种SMB用户管理装置、电子设备、计算机可读存储介质以及计算机程序产品,均具有上述有益效果。The core of the present application is to provide an SMB user management method, which can realize the simultaneous support of the shared service cluster for single-node mode and cluster mode, thereby realizing the unified management of SMB users by the shared service cluster under two different working modes; another core of the present application is to provide an SMB user management device, an electronic device, a computer-readable storage medium and a computer program product, all of which have the above-mentioned beneficial effects.

为了对本申请实施例中的技术方案进行更加清楚、完整地描述,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行介绍。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

本申请实施例提供了一种SMB用户管理方法。An embodiment of the present application provides an SMB user management method.

首先,请参考图1,图1为本申请所提供的一种共享服务集群的结构示意图,该共享服务集群中部署有多个服务节点,所有服务节点均连接于统一数据库,各服务节点均可创建SMB用户,用于为各SMB用户提供共享服务,统一数据库则用于存储共享服务集群中所有SMB用户的用户信息表,且SMB用户与用户信息表一一对应,即一个SMB用户对应于一个用户信息表,该用户信息表中记录有各SMB用户的用户标签和用户序列号,其中,用户标签表示相应SMB用户的用户类型,如单节点模式下的独立用户和集群模式下的集群用户,用户序列号表示相应SMB用户最近一次更新的序列号,用于保证在用户检索时检索到最近一次更新过的同名SMB用户。本申请实施例所提供的SMB用户管理方法则基于图1所示共享服务集群实现。First, please refer to Figure 1, which is a structural diagram of a shared service cluster provided by the present application. Multiple service nodes are deployed in the shared service cluster, and all service nodes are connected to a unified database. Each service node can create an SMB user to provide shared services for each SMB user. The unified database is used to store the user information table of all SMB users in the shared service cluster, and the SMB user corresponds to the user information table one by one, that is, one SMB user corresponds to one user information table, and the user information table records the user label and user serial number of each SMB user, wherein the user label indicates the user type of the corresponding SMB user, such as an independent user in a single-node mode and a cluster user in a cluster mode, and the user serial number indicates the serial number of the corresponding SMB user that was last updated, which is used to ensure that the SMB user with the same name that was last updated is retrieved when the user searches. The SMB user management method provided in the embodiment of the present application is implemented based on the shared service cluster shown in Figure 1.

进一步,请参考图2,图2为本申请所提供的一种SMB用户管理方法的流程示意图,该SMB用户管理方法应用于图1所示共享服务集群中的任一服务节点,其实现流程可以包括如下S101~S104:Further, please refer to FIG. 2 , which is a flow chart of an SMB user management method provided by the present application. The SMB user management method is applied to any service node in the shared service cluster shown in FIG. 1 , and its implementation process may include the following S101 to S104:

S101:当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户,并确定共享服务集群的工作模式;工作模式包括单节点模式和集群模式。S101: When an SMB user creation command is received, a target SMB user is created according to the SMB user creation command, and a working mode of a shared service cluster is determined; the working modes include a single node mode and a cluster mode.

本步骤旨在实现目标SMB用户的创建以及共享服务集群的工作模式的确定。其中,目标SMB用户即为需要创建的SMB用户,响应于SMB用户创建命令实现;共享服务集群的工作模式则包括单节点模式和集群模式,在传统技术实现中,单节点模式下各服务节点创建的SMB用户均保存于相应服务节点的私有数据库,各服务节点之间无法进行数据共享;集群模式下各服务节点创建的SMB用户保存于集群数据库,各服务节点之间可通过该集群数据库实现数据共享。有基于此,传统的Samba服务架构对于集群模式和单节点模式的用户管理是相互独立的。对此,本申请实施例中创建统一数据库,无论是单节点模式还是集群模式,均用于实现新创建SMB用户的相关数据存储,以便于实现Samba服务架构对于集群模式和单节点模式的同时支持。This step is intended to achieve the creation of the target SMB user and the determination of the working mode of the shared service cluster. Among them, the target SMB user is the SMB user that needs to be created, which is implemented in response to the SMB user creation command; the working mode of the shared service cluster includes single-node mode and cluster mode. In the traditional technical implementation, the SMB users created by each service node in the single-node mode are all stored in the private database of the corresponding service node, and data cannot be shared between the service nodes; the SMB users created by each service node in the cluster mode are stored in the cluster database, and data sharing can be achieved between the service nodes through the cluster database. Based on this, the traditional Samba service architecture is independent of each other in user management for cluster mode and single-node mode. In this regard, a unified database is created in the embodiment of the present application, whether it is single-node mode or cluster mode, it is used to realize the relevant data storage of the newly created SMB user, so as to realize the simultaneous support of the Samba service architecture for cluster mode and single-node mode.

S102:若工作模式为单节点模式,确定目标SMB用户在其他各服务节点中的同名SMB用户,根据各同名SMB用户的序列号确定新序列号,在目标SMB用户对应的用户信息表中设置用户序列号为新序列号,设置用户标签为独立用户。S102: If the working mode is the single-node mode, determine the SMB users with the same name as the target SMB user in other service nodes, determine a new serial number according to the serial numbers of the SMB users with the same name, set the user serial number as the new serial number in the user information table corresponding to the target SMB user, and set the user label to an independent user.

本步骤旨在实现单节点模式下对于新创建的目标SMB用户在统一数据库中对应用户信息表的设置,包括对于该目标SMB用户的用户标签和用户序列号的设置。具体而言,由于是单节点模式,因此,可以直接将用户信息表中的用户标签设置为独立用户,而对于用户序列号,则可以先查询共享服务集群中其他各服务节点上是否存在目标SMB用户的同名SMB用户,若存在,则可以根据各同名SMB用户的序列号确定一个新序列号,并将目标SMB用户的用户序列号设置为该新序列号。例如,共享服务集群中已经存在目标SMB用户的同名SMB用户的序列号有0001、0002、0003,则可以确定目标SMB用户的用户序列号为0004。其中,当共享服务集群中不存在目标SMB用户的同名SMB用户时,则可以直接设置其用户序列号为默认的初始序列号,如0001。This step is intended to implement the setting of the corresponding user information table in the unified database for the newly created target SMB user in single-node mode, including the setting of the user label and user serial number for the target SMB user. Specifically, since it is a single-node mode, the user label in the user information table can be directly set to an independent user, and for the user serial number, it is possible to first query whether there is an SMB user with the same name as the target SMB user on other service nodes in the shared service cluster. If so, a new serial number can be determined based on the serial numbers of each SMB user with the same name, and the user serial number of the target SMB user can be set to the new serial number. For example, if the serial numbers of the SMB users with the same name as the target SMB user already exist in the shared service cluster, which are 0001, 0002, and 0003, then the user serial number of the target SMB user can be determined to be 0004. Among them, when there is no SMB user with the same name as the target SMB user in the shared service cluster, its user serial number can be directly set to the default initial serial number, such as 0001.

S103:若工作模式为集群模式,在目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,集群模式下的用户序列号随着相应用户信息表的更新而更新。S103: If the working mode is cluster mode, set the user serial number to the default serial number in the user information table corresponding to the target SMB user, and set the user tag to a cluster user; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated.

本步骤旨在实现集群模式下对于新创建的目标SMB用户在统一数据库中对应用户信息表的设置,包括对于该目标SMB用户的用户标签和用户序列号的设置。具体而言,由于是集群模式,因此,可以直接将用户信息表中的用户标签设置为集群用户,而对于用户序列号,由于集群模式下所有服务节点共享该目标SMB用户,故而可以直接设置一个默认序列号,并且,集群模式下的用户序列号随着用户信息表的更新而更新。例如,对于新创建的目标SMB用户,可以直接设置其用户序列号为默认序列号0001,那么,当后续若存在任一服务节点对该目标SMB用户进行信息修改时,其对应用户信息表中的用户序列号在默认序列号的基础上逐一递增,即目标SMB用户一次信息修改之后用户序列号为0002,二次信息修改之后用户序列号为0003,以此类推。This step is intended to achieve the setting of the corresponding user information table in the unified database for the newly created target SMB user in the cluster mode, including the setting of the user label and user serial number for the target SMB user. Specifically, since it is a cluster mode, the user label in the user information table can be directly set to the cluster user, and for the user serial number, since all service nodes in the cluster mode share the target SMB user, a default serial number can be directly set, and the user serial number in the cluster mode is updated as the user information table is updated. For example, for the newly created target SMB user, its user serial number can be directly set to the default serial number 0001, then, if there is any service node to modify the information of the target SMB user later, the user serial number in its corresponding user information table will be increased one by one on the basis of the default serial number, that is, the user serial number of the target SMB user after the first information modification is 0002, and the user serial number after the second information modification is 0003, and so on.

S104:根据统一数据库中的各用户信息表对各SMB用户进行管理。S104: Manage each SMB user according to each user information table in the unified database.

本步骤旨在实现共享服务集群中各SMB用户的管理。基于上述S101~S103,共享服务集群中新创建的所有SMB用户的用户信息表均存储于统一数据库中,该用户信息表中的用户标签用于表示相应SMB用户的用户类型,用户序列号用于表示相应SMB用户最近一次更新的序列号,以保证在用户检索时可以检索到最近一次更新过的同名SMB用户,因此,基于统一数据库中的各用户信息表即可实现共享服务集群内所有SMB用户的统一管理。其中,关于各SMB用户的管理操作可以包括但不限于修改操作、查询操作、删除操作等。This step is intended to achieve the management of each SMB user in the shared service cluster. Based on the above S101~S103, the user information tables of all newly created SMB users in the shared service cluster are stored in a unified database. The user label in the user information table is used to indicate the user type of the corresponding SMB user, and the user serial number is used to indicate the serial number of the corresponding SMB user's most recent update, so as to ensure that the most recently updated SMB user with the same name can be retrieved during user search. Therefore, unified management of all SMB users in the shared service cluster can be achieved based on each user information table in the unified database. Among them, the management operations on each SMB user may include but are not limited to modification operations, query operations, deletion operations, etc.

在本申请的一个实施例中,当SMB用户管理操作具体为修改操作时,上述根据统一数据库中的各用户信息表对各SMB用户进行管理,可以包括:In one embodiment of the present application, when the SMB user management operation is specifically a modification operation, the management of each SMB user according to each user information table in the unified database may include:

确定待修改SMB用户的用户数据;Determine the user data of the SMB user to be modified;

若工作模式为单节点模式,则判断服务节点本地是否存在待修改SMB用户的同名SMB用户;若存在,则利用用户数据覆盖同名SMB用户的原始用户数据,并在同名SMB用户对应的用户信息表中设置用户标签为独立用户;若不存在,则执行根据SMB用户创建命令创建目标SMB用户的步骤;If the working mode is single-node mode, determine whether there is an SMB user with the same name as the SMB user to be modified locally in the service node; if so, overwrite the original user data of the SMB user with the same name with the user data, and set the user label as an independent user in the user information table corresponding to the SMB user with the same name; if not, execute the step of creating the target SMB user according to the SMB user creation command;

若工作模式为集群模式,则判断共享服务集群中是否存在待修改SMB用户的同名SMB用户;若存在,则利用用户数据覆盖同名SMB用户的原始用户数据,并在同名SMB用户对应的用户信息表中设置用户标签为集群用户,且同步其他各服务节点执行修改操作;若不存在,则执行根据SMB用户创建命令创建目标SMB用户的步骤。If the working mode is cluster mode, determine whether there is an SMB user with the same name as the SMB user to be modified in the shared service cluster; if so, use the user data to overwrite the original user data of the SMB user with the same name, set the user label as a cluster user in the user information table corresponding to the SMB user with the same name, and synchronize other service nodes to perform the modification operation; if not, execute the steps of creating the target SMB user according to the SMB user creation command.

本申请实施例所提供的SMB用户管理方法可以用于实现共享服务集群中各SMB用户的修改操作,即修改某一个或某多个SMB用户的用户数据。具体而言,在确定待修改SMB用户的用户数据(该用户数据是指修改后的用户数据,即新用户数据)后,可以根据共享服务集群的工作模式对SMB用户进行修改处理,其中,待修改SMB用户可以由用户名指定。The SMB user management method provided in the embodiment of the present application can be used to implement the modification operation of each SMB user in the shared service cluster, that is, to modify the user data of one or more SMB users. Specifically, after determining the user data of the SMB user to be modified (the user data refers to the modified user data, that is, the new user data), the SMB user can be modified according to the working mode of the shared service cluster, wherein the SMB user to be modified can be specified by the user name.

在单节点模式下,若当前服务节点本地存在待修改SMB用户的同名SMB用户,即可对各同名SMB用户的用户数据进行修改,此处直接利用上述新用户数据覆盖原始用户数据即可,并修改设置其对应的用户信息表的用户标签为独立用户。此外,若当前服务节点本地不存在待修改SMB用户的同名SMB用户,则可以直接基于S102创建新同名SMB用户。In single-node mode, if there is an SMB user with the same name as the SMB user to be modified locally in the current service node, the user data of each SMB user with the same name can be modified. Here, the new user data can be directly used to overwrite the original user data, and the user label of the corresponding user information table is modified to be an independent user. In addition, if there is no SMB user with the same name as the SMB user to be modified locally in the current service node, a new SMB user with the same name can be directly created based on S102.

在集群模式下,若共享服务集群中存在待修改SMB用户的同名SMB用户,即可对各同名SMB用户的用户数据进行修改,此处同样直接利用上述新用户数据覆盖原始用户数据即可,并修改设置其对应的用户信息表的用户标签为集群用户。与此同时,由于是集群模式,故而可以同步其他各服务节点同样执行此操作以实现SMB用户修改。同样的,若共享服务集群中不存在待修改SMB用户的同名SMB用户,则可以直接基于S103创建新同名SMB用户。此外,由于在集群模式下发生了对SMB用户的修改操作,除了对用户标签进行修改设置之外,还可以将相应用户信息表中的用户序列号加1以实现用户序列号更新,表示相应SMB用户发生了一次更新。In cluster mode, if there is an SMB user with the same name as the SMB user to be modified in the shared service cluster, the user data of each SMB user with the same name can be modified. Here, the new user data can be directly used to overwrite the original user data, and the user label in the corresponding user information table can be modified and set to the cluster user. At the same time, since it is a cluster mode, the same operation can be performed in synchronization with other service nodes to realize SMB user modification. Similarly, if there is no SMB user with the same name as the SMB user to be modified in the shared service cluster, a new SMB user with the same name can be created directly based on S103. In addition, since the modification operation of the SMB user has occurred in the cluster mode, in addition to modifying the user label, the user serial number in the corresponding user information table can also be increased by 1 to realize the update of the user serial number, indicating that the corresponding SMB user has been updated.

在本申请的一个实施例中,当SMB用户管理操作具体为检索操作时,上述根据统一数据库中的各用户信息表对各SMB用户进行管理,可以包括:In one embodiment of the present application, when the SMB user management operation is specifically a retrieval operation, the management of each SMB user according to each user information table in the unified database may include:

确定目标查询SMB用户的用户信息;Determine the user information of the target SMB user to be queried;

若工作模式为单节点模式,则利用用户信息判断服务节点本地是否存在目标查询SMB用户;若存在,则输出目标查询SMB用户的用户数据;若不存在,则输出错误提示;If the working mode is single node mode, the user information is used to determine whether the target query SMB user exists locally in the service node; if so, the user data of the target query SMB user is output; if not, an error prompt is output;

若工作模式为集群模式,则利用用户信息判断服务节点本地是否存在用户标签为集群用户的目标查询SMB用户;若存在,则输出用户标签为集群用户的目标查询SMB用户的用户数据;若不存在,则在共享服务集群中确定用户标签为独立用户的所有目标查询SMB用户,并在所有用户标签为独立用户的目标查询SMB用户中确定用户序列号为最新序列号的目标查询SMB用户,输出用户序列号为最新序列号的目标查询SMB用户的用户数据。If the working mode is cluster mode, the user information is used to determine whether there is a target query SMB user with a user label of cluster user locally in the service node; if so, the user data of the target query SMB user with a user label of cluster user is output; if not, all target query SMB users with a user label of independent users are determined in the shared service cluster, and the target query SMB user with the latest user serial number is determined among all target query SMB users with user labels of independent users, and the user data of the target query SMB user with the latest user serial number is output.

本申请实施例所提供的SMB用户管理方法可以用于实现共享服务集群中各SMB用户的查询操作,即查询某一个或某多个SMB用户的用户数据。具体而言,在确定目标查询SMB用户的用户信息(如用户名)后,可以根据共享服务集群的工作模式对SMB用户进行查询操作。The SMB user management method provided in the embodiment of the present application can be used to implement the query operation of each SMB user in the shared service cluster, that is, to query the user data of one or more SMB users. Specifically, after determining the user information (such as user name) of the target queried SMB user, the query operation can be performed on the SMB user according to the working mode of the shared service cluster.

在单节点模式下,可以直接根据用户信息查询当前服务节点本地是否存在该目标查询SMB用户,如查询当前服务节点是否存在用户名为XXX的SMB用户,若存在,则直接返回其用户数据;若不存在,则直接输出错误提示。In single-node mode, you can directly query whether the target SMB user exists locally in the current service node based on user information, such as querying whether there is an SMB user with the user name XXX in the current service node. If it exists, its user data is directly returned; if it does not exist, an error prompt is directly output.

在集群模式下,可以先根据用户信息查询当前服务节点本地是否存在用户标签为集群用户的目标查询SMB用户,如查询当前服务节点是否存在用户名为XXX且用户标签为集群用户的SMB用户,若存在,则直接返回其用户数据;若不存在,则可以继续在共享服务集群中查询用户标签为独立用户且用户序列号为最新序列号的SMB用户作为目标查询SMB用户,并返回其用户数据。In cluster mode, you can first query whether there is a target query SMB user with a user tag of cluster user in the current service node based on user information, such as querying whether there is an SMB user with the user name XXX and the user tag of cluster user in the current service node. If it exists, its user data is returned directly; if it does not exist, you can continue to query the SMB user with the user tag of independent user and the user serial number of the latest serial number in the shared service cluster as the target query SMB user, and return its user data.

在本申请的一个实施例中,当SMB用户管理操作具体为删除操作时,上述根据统一数据库中的各用户信息表对各SMB用户进行管理,可以包括:In one embodiment of the present application, when the SMB user management operation is specifically a deletion operation, the management of each SMB user according to each user information table in the unified database may include:

确定待删除SMB用户;Confirm the SMB user to be deleted;

若工作模式为单节点模式,则将待删除SMB用户在服务节点本地的同名SMB用户删除;If the working mode is single node mode, the SMB user with the same name as the SMB user to be deleted in the local service node will be deleted;

若工作模式为集群模式,则将待删除SMB用户在共享服务集群中的同名SMB用户删除。If the working mode is cluster mode, delete the SMB user with the same name as the SMB user to be deleted in the shared service cluster.

本申请实施例所提供的SMB用户管理方法可以用于实现共享服务集群中各SMB用户的删除操作,即删除某一个或某多个SMB用户。具体而言,在确定待删除SMB用户的用户信息(如用户名)后,可以根据共享服务集群的工作模式对其进行删除操作。其中,在单节点模式下,可以直接将当前服务节点本地所创建的用户名为XXX的SMB用户删除;在集群模式下,可以直接将共享服务集群中所创建的用户名为XXX的SMB用户删除。The SMB user management method provided in the embodiment of the present application can be used to implement the deletion operation of each SMB user in the shared service cluster, that is, to delete one or more SMB users. Specifically, after determining the user information (such as user name) of the SMB user to be deleted, the deletion operation can be performed on it according to the working mode of the shared service cluster. Among them, in the single-node mode, the SMB user with the user name XXX created locally in the current service node can be directly deleted; in the cluster mode, the SMB user with the user name XXX created in the shared service cluster can be directly deleted.

可见,本申请实施例所提供的SMB用户管理方法,在共享服务集群中创建统一数据库,使得共享服务集群中的所有服务节点均连接于该统一数据库,用于存储各服务节点下创建的所有SMB用户的用户信息表,该用户信息表中记录有相应SMB用户的用户标签和用户序列号,用户标签表示相应SMB用户的用户类型,即单节点模式下的独立用户和集群模式下的集群用户,用户序列号表示相应SMB用户最近一次更新的序列号,可以保证在用户检索时可以检索到最近一次更新过的同名SMB用户。在此基础上,在创建完成一个目标SMB用户后,即可根据共享服务集群的工作模式对其在统一数据库中对应的用户信息表进行设置,也就是设定该SMB用户的用户标签和用户序列号,从而可以根据统一数据库中的各用户信息表中所记录的用户信息实现共享服务集群中的SMB用户管理。由此,本技术方案实现了共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理。It can be seen that the SMB user management method provided in the embodiment of the present application creates a unified database in the shared service cluster, so that all service nodes in the shared service cluster are connected to the unified database, which is used to store the user information table of all SMB users created under each service node, and the user information table records the user label and user serial number of the corresponding SMB user, the user label indicates the user type of the corresponding SMB user, that is, the independent user in the single node mode and the cluster user in the cluster mode, and the user serial number indicates the serial number of the corresponding SMB user that was last updated, which can ensure that the SMB user with the same name that was last updated can be retrieved when the user searches. On this basis, after a target SMB user is created, the corresponding user information table in the unified database can be set according to the working mode of the shared service cluster, that is, the user label and user serial number of the SMB user are set, so that the SMB user management in the shared service cluster can be realized according to the user information recorded in each user information table in the unified database. Therefore, the technical solution realizes the simultaneous support of the shared service cluster for the single node mode and the cluster mode, and then realizes the unified management of SMB users by the shared service cluster under two different working modes.

在上述各实施例的基础上:Based on the above embodiments:

在本申请的一个实施例中,上述当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户之后,还可以包括:In one embodiment of the present application, when an SMB user creation command is received, after creating a target SMB user according to the SMB user creation command, the following may also be included:

判断共享服务集群是否存在默认用户组;Determine whether there is a default user group in the shared service cluster;

若存在,则执行确定共享服务集群的工作模式的步骤;If so, executing the step of determining the working mode of the shared service cluster;

若不存在,则设置目标SMB用户属于默认用户组,并将目标SMB用户的用户信息加入默认用户组的成员列表,返回当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户的步骤。If it does not exist, the target SMB user is set to belong to the default user group, and the user information of the target SMB user is added to the member list of the default user group, and the process returns to the step of creating the target SMB user according to the SMB user creation command when the SMB user creation command is received.

可以理解的是,在Windows或Linux系统中,创建用户一般都设有默认用户组,该默认用户组主要应用于权限管理方面。有基于此,在进行SMB用户创建时,当创建完成一个SMB用户后,可以先判断共享服务集群中是否存在默认用户组,若存在,则可以继续对其对应的用户信息表进行对应设置,以实现SMB用户的完整创建,若不存在,则可以直接将该目标SMB用户作为默认用户组的一员,并重新进行SMB用户创建。其中,默认用户组内SMB用户的数量可以预先根据实际需求进行设定。It is understandable that in Windows or Linux systems, when creating a user, a default user group is generally set, and the default user group is mainly used for permission management. Based on this, when creating an SMB user, after creating an SMB user, you can first determine whether there is a default user group in the shared service cluster. If it does, you can continue to make corresponding settings for its corresponding user information table to achieve complete creation of the SMB user. If it does not exist, you can directly make the target SMB user a member of the default user group and re-create the SMB user. Among them, the number of SMB users in the default user group can be set in advance according to actual needs.

在本申请的一个实施例中,当服务节点为新加入服务节点时,该SMB用户管理方法还可以包括:In one embodiment of the present application, when the service node is a newly added service node, the SMB user management method may further include:

确定共享服务集群的工作模式;Determine the working mode of the shared service cluster;

若工作模式为单节点模式,则执行预设操作;If the working mode is single node mode, the preset operation is executed;

若工作模式为集群模式,则向共享服务集群的主服务节点获取用户标签为集群用户的各SMB用户的用户信息,并保存至本地。If the working mode is cluster mode, the user information of each SMB user whose user tag is cluster user is obtained from the main service node of the shared service cluster and saved locally.

可以理解的是,共享服务集群由多个服务节点组成,在实际应用场景下,必然存在新节点加入、旧节点剔除等情况。针对新加入的服务节点,在单节点模式下可以执行预设操作,例如可以不做任何处理,而在集群模式下则需要获取共享服务集群中用户标签为集群用户的所有SMB用户的用户信息,并保存至本地,以实现集群SMB用户的信息同步。It is understandable that a shared service cluster consists of multiple service nodes. In actual application scenarios, new nodes are bound to be added and old nodes are removed. For newly added service nodes, preset operations can be performed in single-node mode, such as no processing. In cluster mode, user information of all SMB users with user tags as cluster users in the shared service cluster needs to be obtained and saved locally to achieve information synchronization of cluster SMB users.

在本申请的一个实施例中,该SMB用户管理方法还可以包括:In one embodiment of the present application, the SMB user management method may further include:

接收客户端针对目标SMB用户的SMB连接请求;Receive an SMB connection request from a client for a target SMB user;

根据SMB连接请求判断是否目标SMB用户是否存在;Determine whether the target SMB user exists based on the SMB connection request;

若不存在,则向客户端反馈错误提示;If it does not exist, an error message will be fed back to the client;

若存在,则向客户端反馈响应信息,以接收客户端发送的目标SMB用户的密码数据,利用目标SMB用户的注册密码数据对密码数据进行校验,并在校验通过时与客户端建立SMB连接。If it exists, a response message is fed back to the client to receive the password data of the target SMB user sent by the client, the password data is verified using the registered password data of the target SMB user, and an SMB connection is established with the client when the verification passes.

在实际应用场景下,客户端可以通过连接SMB用户实现对共享服务集群的访问。具体而言,客户端可以向服务节点(服务端)发起针对某一SMB用户(即上述目标SMB用户)的SMB连接请求,以使得服务节点可以根据该SMB连接请求来确定当前是否存在该目标SMB用户,若不存在,则可以直接向客户端反馈错误提示;若存在,则可以向客户端反馈一个响应消息,使得客户端可以根据该响应消息向服务节点发送目标SMB用户的密码数据,由此,服务节点即可利用本地存储的目标SMB用户的注册密码数据(注册密码数据是目标SMB用户在创建时注册至服务节点中的)对其进行校验。显而易见地,如若校验通过,即可响应SMB连接请求实现目标SMB用户与客户端的连接,使得客户端可以通过该目标SMB用户对共享服务集群的访问;如若校验失败,则不对SMB连接请求进行响应,拒绝建立SMB连接。In actual application scenarios, the client can access the shared service cluster by connecting to the SMB user. Specifically, the client can initiate an SMB connection request for a certain SMB user (i.e., the target SMB user mentioned above) to the service node (server), so that the service node can determine whether the target SMB user currently exists based on the SMB connection request. If not, an error prompt can be directly fed back to the client; if it exists, a response message can be fed back to the client, so that the client can send the target SMB user's password data to the service node based on the response message, and thus the service node can verify it using the registered password data of the target SMB user stored locally (the registered password data is the target SMB user registered to the service node when it is created). Obviously, if the verification is successful, the SMB connection request can be responded to to realize the connection between the target SMB user and the client, so that the client can access the shared service cluster through the target SMB user; if the verification fails, the SMB connection request will not be responded to, and the SMB connection will be refused to be established.

可见,在本申请实施例中,客户端可以通过连接SMB用户实现对共享服务集群的访问,当客户端发起针对某目标SMB用户的SMB连接请求时,服务节点将会首先判断该目标SMB用户是否存在,并在确定目标SMB用户存在时对其进行密码校验,从而在校验通过时实现客户端与目标SMB用户的SMB连接,使得客户端可以通过连接SMB用户实现对共享服务集群的访问,有效地保证了共享服务集群的安全性。其中,当确定目标SMB用户不存在时将会直接发起错误提示,不再对SMB连接请求进行处理,保证了共享服务集群的访问效率。It can be seen that in the embodiment of the present application, the client can access the shared service cluster by connecting to the SMB user. When the client initiates an SMB connection request for a target SMB user, the service node will first determine whether the target SMB user exists, and perform a password verification on the target SMB user when it is determined that the target SMB user exists, thereby realizing the SMB connection between the client and the target SMB user when the verification passes, so that the client can access the shared service cluster by connecting to the SMB user, effectively ensuring the security of the shared service cluster. Among them, when it is determined that the target SMB user does not exist, an error prompt will be directly initiated, and the SMB connection request will no longer be processed, ensuring the access efficiency of the shared service cluster.

在本申请的一个实施例中,上述向客户端反馈响应信息,以接收客户端发送的目标SMB用户的密码数据,利用目标SMB用户的注册密码数据对密码数据进行校验,并在校验通过时与客户端建立SMB连接,包括:In one embodiment of the present application, the above-mentioned feedback of response information to the client to receive the password data of the target SMB user sent by the client, verifying the password data using the registered password data of the target SMB user, and establishing an SMB connection with the client when the verification passes, includes:

向客户端反馈响应信息,以使客户端根据响应信息对目标SMB用户的用户密码进行哈希运算,获得密码数据;Feedback response information to the client, so that the client performs a hash operation on the user password of the target SMB user according to the response information to obtain the password data;

接收客户端反馈的目标SMB用户的密码数据;Receive the target SMB user's password data fed back by the client;

对本地存储的目标SMB用户的注册密码进行哈希运算,获得注册密码数据;Perform hash operation on the registration password of the target SMB user stored locally to obtain the registration password data;

判断注册密码数据和密码数据是否一致;若一致,则校验通过,控制目标SMB用户与客户端建立SMB连接;若不一致,则校验失败。Determine whether the registered password data and the password data are consistent; if they are consistent, the verification is passed, and the target SMB user is controlled to establish an SMB connection with the client; if they are inconsistent, the verification fails.

本申请实施例提供了一种关于SMB用户密码信息的校验方法,即基于哈希算法的校验方法。具体而言,客户端可以先对目标SMB用户的用户密码进行哈希计算后发送至服务节点,服务节点则可以对目标SMB用户的注册密码进行哈希计算后再对客户端发送的密码数据进行校验。The embodiment of the present application provides a verification method for SMB user password information, namely a verification method based on a hash algorithm. Specifically, the client can first perform a hash calculation on the user password of the target SMB user and then send it to the service node, and the service node can perform a hash calculation on the registration password of the target SMB user and then verify the password data sent by the client.

由此可见,本申请实施例通过对密码信息进行哈希运算实现了基于密文形式的密码校验,有效地保证了用户密码安全不被泄露,进一步保证了共享服务集群的安全性。It can be seen that the embodiment of the present application implements password verification based on ciphertext by performing hash operation on password information, effectively ensuring the security of user passwords from being leaked, and further ensuring the security of the shared service cluster.

在上述各实施例的基础上,本申请实施例提供了另一种SMB用户管理方法,该SMB用户管理方法的实现流程如下:Based on the above embodiments, the present application embodiment provides another SMB user management method, and the implementation process of the SMB user management method is as follows:

首先,如图1所示共享服务集群,本申请实施例所提供的SMB用户管理方法基于该共享服务集群实现。其次,请参考图3,图3为本申请所提供的一种统一数据库的布局图,基于统一数据库中的各用户信息表,可以实现单节点模式下SMB用户修改使用互不影响、集群模式下SMB用户修改使用对所有服务节点生效、单节点模式和集群模式来回切换时用户可以正确检索修改的目的,其中,用户信息表中各字段含义如下:First, as shown in FIG1 , the shared service cluster, the SMB user management method provided in the embodiment of the present application is implemented based on the shared service cluster. Secondly, please refer to FIG3 , which is a layout diagram of a unified database provided by the present application. Based on the user information tables in the unified database, the purpose of SMB user modification and use in single-node mode without affecting each other, SMB user modification and use in cluster mode taking effect on all service nodes, and users can correctly retrieve modifications when switching back and forth between single-node mode and cluster mode can be achieved. The meanings of the fields in the user information table are as follows:

(1)用户标记flag(用户标签):STANDLONE(独立用户)表示单节点用户,CLUSTER(集群用户)表示集群用户;(1) User flag: STANDLONE indicates a single-node user, and CLUSTER indicates a cluster user;

(2)用户节点编号nodeid:用于确定用户操作是在哪个服务节点进行,由于数据库是分布式的,每个服务节点添加的数据在另一个服务节点直接可见,此处用nodeid来区分各服务节点;(2) User node ID: used to determine which service node the user operation is performed on. Since the database is distributed, the data added by each service node is directly visible in another service node. Here, node ID is used to distinguish between service nodes.

(3)用户序列号sn:用于标识SMB用户最近一次更新的序列号,该序列号可以保证在SMB用户检索时可以使用到最近一次更新过的同名SMB用户;(3) User serial number sn: It is used to identify the most recently updated serial number of an SMB user. This serial number can ensure that the most recently updated SMB user with the same name can be used when searching for SMB users.

(4)用户数据:即相应SMB用户的具体内容数据。(4) User data: the specific content data of the corresponding SMB user.

进一步,以下按照SMB用户创建、修改、检索、删除、应用等过程对本申请实施例所提供的SMB用户管理方法进行详细介绍。Furthermore, the SMB user management method provided in the embodiment of the present application is introduced in detail below according to the processes of SMB user creation, modification, retrieval, deletion, and application.

1、SMB用户创建:1. SMB user creation:

(1)执行SMB用户创建命令,输入用户密码,创建一个不包括任何额外信息的最基本SMB用户;(1) Execute the SMB user creation command, enter the user password, and create a basic SMB user that does not include any additional information;

(2)用户管理模块接收到创建命令后,解析用户名和密码文本,然后对明文密码做MD4 HASH计算后进行保存,用作后续的客户端访问认证;(2) After receiving the creation command, the user management module parses the username and password text, then performs MD4 HASH calculation on the plain text password and saves it for subsequent client access authentication;

(3)判断共享服务集群中是否存在默认的Users用户组,Users用户组属于Windows系统内置的默认组之一,因此实现SMB协议需要支持该默认用户组,如果不存在,用户管理模块首先自动创建该Users用户组,然后将新添加的SMB用户隶属于Users该用户组,此处涉及两个动作:(3) Determine whether there is a default Users group in the shared service cluster. The Users group is one of the default groups built into the Windows system. Therefore, the implementation of the SMB protocol needs to support this default group. If it does not exist, the user management module first automatically creates the Users group and then assigns the newly added SMB user to the Users group. This involves two actions:

a. 设置SMB用户的所有组为Users;a. Set all groups of SMB users to Users;

b. 在Users用户组的成员列表中添加SMB用户;b. Add the SMB user to the member list of the Users group;

添加完成后,用户还可以创建新的用户组,并更改已有SMB用户的用户组信息;After adding, users can also create new user groups and modify the user group information of existing SMB users;

(4)判断当前设置的Samba工作模式:(4) Determine the currently set Samba working mode:

如果是单节点模式,添加新用户设置标记为STANDLONE,收集剩余服务节点的同名SMB用户的用户序列号,以确定一个最新的sn序列号作为当前新用户的用户序列号;If it is a single-node mode, add a new user and set the mark as STANDLONE, collect the user serial numbers of the SMB users with the same name of the remaining service nodes, and determine the latest sn serial number as the user serial number of the current new user;

如果是集群模式,添加新用户设置标记为CLUSTER,然后sn序列号从1开始,当下次另一个服务节点如果更新了该SMB用户的信息时,序列号自动递增。If it is cluster mode, add a new user and set the tag to CLUSTER, then the sn sequence number starts from 1. The next time another service node updates the SMB user's information, the sequence number is automatically incremented.

2、SMB用户修改:2. SMB user modification:

(1)在单节点模式下,若存在同名用户,不论其待有STANDLONE或CLUSTER标记,均利用新用户数据统一覆盖该同名用户的原始用户数据,并修改标记为STANDLONE,否则按步骤1直接添加新用户;(1) In single-node mode, if there is a user with the same name, regardless of whether it has the STANDLONE or CLUSTER mark, the new user data will be used to uniformly overwrite the original user data of the user with the same name and the mark will be changed to STANDLONE. Otherwise, the new user will be added directly according to step 1;

(2)在集群模式下,若存在同名用户,不论其带有STANDLONE或CLUSTER标记,均利用新用户数据统一覆盖该同名用户的原始用户数据,并修改标记为CLUSTER,否则按步骤1直接添加新用户,与此同时,该操作会在所有服务节点上执行,保证每个服务节点上都持有一份最新用户记录。(2) In cluster mode, if there is a user with the same name, regardless of whether it is marked with STANDLONE or CLUSTER, the new user data will be used to uniformly overwrite the original user data of the user with the same name, and the mark will be changed to CLUSTER. Otherwise, the new user will be added directly according to step 1. At the same time, this operation will be performed on all service nodes to ensure that each service node has a copy of the latest user record.

3、SMB用户检索:3. SMB user retrieval:

(1)在单节点模式下,首先检索本服务节点是否存在目标检索用户,若存在,不论其带有STANDLONE或CLUSTER标记,直接返回其用户数据;若不存在,直接报错;(1) In single-node mode, first check whether the target search user exists in this service node. If it exists, regardless of whether it has the STANDLONE or CLUSTER mark, directly return its user data; if it does not exist, directly report an error;

(2)在集群模式下,首先检索本服务节点是否存在带有CLUSTER标记的SMB用户,若存在直接返回其用户数据;若不存在,则收集所有服务节点中带有STANDLONE标记的SMB用户,并确定具有最新sn序列号的SMB用户当作最终SMB用户并返回其用户数据,从而实现单节点模式切换至集群模式下的SMB用户合并。(2) In cluster mode, first check whether there is an SMB user with the CLUSTER mark in this service node. If so, return its user data directly; if not, collect SMB users with the STANDLONE mark in all service nodes, and determine the SMB user with the latest sn sequence number as the final SMB user and return its user data, thereby realizing the SMB user merging from single-node mode to cluster mode.

4、SMB用户删除:4. SMB user deletion:

(1)在单节点模式下,只删除本服务节点的同名SMB用户,不论其带STANDLONE或CLUSTER标记;(1) In single-node mode, only the SMB users with the same name of this service node will be deleted, regardless of whether they are marked with STANDLONE or CLUSTER;

(2)在集群模式下,遍历所有服务节点删除所有的同名SMB用户,不论其带STANDLONE或CLUSTER标记。(2) In cluster mode, traverse all service nodes and delete all SMB users with the same name, regardless of whether they are marked with STANDLONE or CLUSTER.

5、新服务节点加入:5. New service nodes added:

(1)在单节点模式下,新加入一个服务节点时,对统一数据库的用户记录不做任何处理;(1) In single-node mode, when a new service node is added, no processing is done on the user records in the unified database;

(2)在集群模式下,新加入一个服务节点时,新服务节点的Samba服务自动向集群主节点拉取最新的CLUSTER用户信息,并保存至本地。(2) In cluster mode, when a new service node is added, the Samba service of the new service node automatically pulls the latest CLUSTER user information from the cluster master node and saves it locally.

6、SMB用户使用:6. SMB user use:

当数据库中添加SMB用户后,使用Windows客户端或者其他支持SMB协议的Linux客户端即可使用该SMB用户去访问共享服务,其实现流程如下:After adding an SMB user to the database, you can use the Windows client or other Linux clients that support the SMB protocol to access the shared service using the SMB user. The implementation process is as follows:

(1)客户端使用该SMB用户发起SMB连接请求,服务端首先检索该SMB用户是否存在,如果不存在直接向客户端返回用户不存在错误;(1) The client uses the SMB user to initiate an SMB connection request. The server first checks whether the SMB user exists. If not, it directly returns a user-existing error to the client.

(2)如果存在,则服务端返回一个Challenge响应,客户端使用该Challenge响应对用户密码HASH做进一步加密计算并发给服务端;(2) If it exists, the server returns a Challenge response, and the client uses the Challenge response to further encrypt the user password HASH and send it to the server;

(3)服务端使用同样算法对本地保存的密码HASH做同样计算,如果和用户发过来的密文字段一致则校验通过,反之则校验不通过;(3) The server uses the same algorithm to perform the same calculation on the locally stored password HASH. If it is consistent with the ciphertext field sent by the user, the verification passes. Otherwise, the verification fails.

(4)校验通过时建立SMB连接,实现共享服务集群访问。(4) When verification passes, an SMB connection is established to enable access to the shared service cluster.

由此可见,本实施例通过设计一种特定格式的用户信息表,保证了Samba服务在单节点模式和集群模式这两种模式下SMB用户的正确转换,解决了现有Samba服务对两种SMB本地用户无法进行统一管理的不足。从用户角度看,不论是单节点模式还是集群模式,一种工作模式下添加修改删除的SMB用户在另一种工作模式下都可以无缝切换生效。在此基础上,整个技术实现采用一体化管理机制,在集中统一管理用户数据的同时,减少了用户数据存放过于碎片化的问题,对于提升Linux端Samba服务的稳定性和SMB共享的易用性有很明显的正向作用,对于企业集中统一管理SMB本地用户具有很高的使用价值。As can be seen from this, the present embodiment, by designing a user information table of a specific format, ensures the correct conversion of SMB users in the two modes of single node mode and cluster mode of Samba service, and solves the deficiency that the existing Samba service cannot carry out unified management of two kinds of SMB local users. From the user's perspective, no matter it is single node mode or cluster mode, the SMB user who adds, modifies and deletes in a kind of working mode can be seamlessly switched to take effect in another kind of working mode. On this basis, the whole technology realizes the use of an integrated management mechanism, while centrally and uniformly managing user data, reduces the problem of excessive fragmentation of user data storage, has a very obvious positive effect on the stability of the Linux end Samba service and the ease of use of SMB sharing, and has a very high use value for the centralized and unified management of SMB local users in enterprises.

可见,本申请实施例所提供的SMB用户管理方法,在共享服务集群中创建统一数据库,使得共享服务集群中的所有服务节点均连接于该统一数据库,用于存储各服务节点下创建的所有SMB用户的用户信息表,该用户信息表中记录有相应SMB用户的用户标签和用户序列号,用户标签表示相应SMB用户的用户类型,即单节点模式下的独立用户和集群模式下的集群用户,用户序列号表示相应SMB用户最近一次更新的序列号,可以保证在用户检索时可以检索到最近一次更新过的同名SMB用户。在此基础上,在创建完成一个目标SMB用户后,即可根据共享服务集群的工作模式对其在统一数据库中对应的用户信息表进行设置,也就是设定该SMB用户的用户标签和用户序列号,从而可以根据统一数据库中的各用户信息表中所记录的用户信息实现共享服务集群中的SMB用户管理。由此,本技术方案实现了共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理。It can be seen that the SMB user management method provided in the embodiment of the present application creates a unified database in the shared service cluster, so that all service nodes in the shared service cluster are connected to the unified database, which is used to store the user information table of all SMB users created under each service node, and the user information table records the user label and user serial number of the corresponding SMB user, the user label indicates the user type of the corresponding SMB user, that is, the independent user in the single node mode and the cluster user in the cluster mode, and the user serial number indicates the serial number of the most recent update of the corresponding SMB user, which can ensure that the most recently updated SMB user with the same name can be retrieved when the user searches. On this basis, after a target SMB user is created, the corresponding user information table in the unified database can be set according to the working mode of the shared service cluster, that is, the user label and user serial number of the SMB user are set, so that the SMB user management in the shared service cluster can be realized according to the user information recorded in each user information table in the unified database. Therefore, the technical solution realizes the simultaneous support of the shared service cluster for the single node mode and the cluster mode, and then realizes the unified management of SMB users by the shared service cluster under two different working modes.

本申请实施例提供了一种SMB用户管理装置。An embodiment of the present application provides an SMB user management device.

请参考图4,图4为本申请所提供的一种SMB用户管理装置的结构示意图,该SMB用户管理装置应用于共享服务集群中的任一服务节点,共享服务集群中的所有服务节点均连接于统一数据库,统一数据库用于存储共享服务集群中所有SMB用户的用户信息表,该SMB用户管理装置可以包括:Please refer to FIG. 4 , which is a schematic diagram of the structure of an SMB user management device provided by the present application. The SMB user management device is applied to any service node in a shared service cluster. All service nodes in the shared service cluster are connected to a unified database. The unified database is used to store user information tables of all SMB users in the shared service cluster. The SMB user management device may include:

确定模块1,用于当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户,并确定共享服务集群的工作模式;工作模式包括单节点模式和集群模式;Determine module 1, for, when receiving an SMB user creation command, creating a target SMB user according to the SMB user creation command, and determining a working mode of the shared service cluster; the working modes include a single node mode and a cluster mode;

第一设置模块2,用于若工作模式为单节点模式,确定目标SMB用户在其他各服务节点中的同名SMB用户,根据各同名SMB用户的序列号确定新序列号,在目标SMB用户对应的用户信息表中设置用户序列号为新序列号,设置用户标签为独立用户;The first setting module 2 is used for, if the working mode is the single-node mode, determining the SMB users with the same name as the target SMB user in other service nodes, determining the new serial number according to the serial numbers of the SMB users with the same name, setting the user serial number as the new serial number in the user information table corresponding to the target SMB user, and setting the user label as an independent user;

第二设置模块3,用于若工作模式为集群模式,在目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,集群模式下的用户序列号随着相应用户信息表的更新而更新;The second setting module 3 is used to set the user serial number as the default serial number in the user information table corresponding to the target SMB user and set the user tag as a cluster user if the working mode is the cluster mode; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated;

管理模块4,用于根据统一数据库中的各用户信息表对各SMB用户进行管理。The management module 4 is used to manage each SMB user according to each user information table in the unified database.

可见,本申请实施例所提供的SMB用户管理装置,在共享服务集群中创建统一数据库,使得共享服务集群中的所有服务节点均连接于该统一数据库,用于存储各服务节点下创建的所有SMB用户的用户信息表,该用户信息表中记录有相应SMB用户的用户标签和用户序列号,用户标签表示相应SMB用户的用户类型,即单节点模式下的独立用户和集群模式下的集群用户,用户序列号表示相应SMB用户最近一次更新的序列号,可以保证在用户检索时可以检索到最近一次更新过的同名SMB用户。在此基础上,在创建完成一个目标SMB用户后,即可根据共享服务集群的工作模式对其在统一数据库中对应的用户信息表进行设置,也就是设定该SMB用户的用户标签和用户序列号,从而可以根据统一数据库中的各用户信息表中所记录的用户信息实现共享服务集群中的SMB用户管理。由此,本技术方案实现了共享服务集群对于单节点模式和集群模式的同时支持,进而实现了共享服务集群在两种不同工作模式下对于SMB用户的统一管理。It can be seen that the SMB user management device provided in the embodiment of the present application creates a unified database in the shared service cluster, so that all service nodes in the shared service cluster are connected to the unified database, which is used to store the user information table of all SMB users created under each service node, and the user information table records the user label and user serial number of the corresponding SMB user, the user label indicates the user type of the corresponding SMB user, that is, the independent user in the single node mode and the cluster user in the cluster mode, and the user serial number indicates the serial number of the most recent update of the corresponding SMB user, which can ensure that the most recently updated SMB user with the same name can be retrieved when the user searches. On this basis, after a target SMB user is created, the corresponding user information table in the unified database can be set according to the working mode of the shared service cluster, that is, the user label and user serial number of the SMB user are set, so that the SMB user management in the shared service cluster can be realized according to the user information recorded in each user information table in the unified database. Therefore, the technical solution realizes the simultaneous support of the shared service cluster for the single node mode and the cluster mode, and then realizes the unified management of SMB users by the shared service cluster under two different working modes.

在本申请的一个实施例中,当SMB用户管理操作具体为修改操作时,上述管理模块4可具体用于:In one embodiment of the present application, when the SMB user management operation is specifically a modification operation, the management module 4 may be specifically used to:

确定待修改SMB用户的用户数据;Determine the user data of the SMB user to be modified;

若工作模式为单节点模式,则判断服务节点本地是否存在待修改SMB用户的同名SMB用户;若存在,则利用用户数据覆盖同名SMB用户的原始用户数据,并在同名SMB用户对应的用户信息表中设置用户标签为独立用户;若不存在,则执行根据SMB用户创建命令创建目标SMB用户的步骤;If the working mode is single-node mode, determine whether there is an SMB user with the same name as the SMB user to be modified locally in the service node; if so, overwrite the original user data of the SMB user with the same name with the user data, and set the user label as an independent user in the user information table corresponding to the SMB user with the same name; if not, execute the step of creating the target SMB user according to the SMB user creation command;

若工作模式为集群模式,则判断共享服务集群中是否存在待修改SMB用户的同名SMB用户;若存在,则利用用户数据覆盖同名SMB用户的原始用户数据,并在同名SMB用户对应的用户信息表中设置用户标签为集群用户,且同步其他各服务节点执行修改操作;若不存在,则执行根据SMB用户创建命令创建目标SMB用户的步骤。If the working mode is cluster mode, determine whether there is an SMB user with the same name as the SMB user to be modified in the shared service cluster; if so, use the user data to overwrite the original user data of the SMB user with the same name, set the user label as a cluster user in the user information table corresponding to the SMB user with the same name, and synchronize other service nodes to perform the modification operation; if not, execute the steps of creating the target SMB user according to the SMB user creation command.

在本申请的一个实施例中,当SMB用户管理操作具体为检索操作时,上述管理模块4可具体用于:In one embodiment of the present application, when the SMB user management operation is specifically a retrieval operation, the management module 4 may be specifically used to:

确定目标查询SMB用户的用户信息;Determine the user information of the target SMB user to be queried;

若工作模式为单节点模式,则利用用户信息判断服务节点本地是否存在目标查询SMB用户;若存在,则输出目标查询SMB用户的用户数据;若不存在,则输出错误提示;If the working mode is single node mode, the user information is used to determine whether the target query SMB user exists locally in the service node; if so, the user data of the target query SMB user is output; if not, an error prompt is output;

若工作模式为集群模式,则利用用户信息判断服务节点本地是否存在用户标签为集群用户的目标查询SMB用户;若存在,则输出用户标签为集群用户的目标查询SMB用户的用户数据;若不存在,则在共享服务集群中确定用户标签为独立用户的所有目标查询SMB用户,并在所有用户标签为独立用户的目标查询SMB用户中确定用户序列号为最新序列号的目标查询SMB用户,输出用户序列号为最新序列号的目标查询SMB用户的用户数据。If the working mode is cluster mode, the user information is used to determine whether there is a target query SMB user with a user label of cluster user locally in the service node; if so, the user data of the target query SMB user with a user label of cluster user is output; if not, all target query SMB users with a user label of independent users are determined in the shared service cluster, and the target query SMB user with the latest user serial number is determined among all target query SMB users with user labels of independent users, and the user data of the target query SMB user with the latest user serial number is output.

在本申请的一个实施例中,当SMB用户管理操作具体为删除操作时,上述管理模块4可具体用于:In one embodiment of the present application, when the SMB user management operation is specifically a deletion operation, the management module 4 may be specifically used to:

确定待删除SMB用户;Confirm the SMB user to be deleted;

若工作模式为单节点模式,则将待删除SMB用户在服务节点本地的同名SMB用户删除;If the working mode is single node mode, the SMB user with the same name as the SMB user to be deleted in the local service node will be deleted;

若工作模式为集群模式,则将待删除SMB用户在共享服务集群中的同名SMB用户删除。If the working mode is cluster mode, delete the SMB user with the same name as the SMB user to be deleted in the shared service cluster.

在本申请的一个实施例中,该SMB用户管理装置还可以包括用户组创建模块,用于在上述当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户之后,判断共享服务集群是否存在默认用户组;若存在,则执行确定共享服务集群的工作模式的步骤;若不存在,则设置目标SMB用户属于默认用户组,并将目标SMB用户的用户信息加入默认用户组的成员列表,返回当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户的步骤。In one embodiment of the present application, the SMB user management device may also include a user group creation module, which is used to determine whether there is a default user group in the shared service cluster after creating the target SMB user according to the SMB user creation command when the SMB user creation command is received; if so, execute the step of determining the working mode of the shared service cluster; if not, set the target SMB user to belong to the default user group, and add the user information of the target SMB user to the member list of the default user group, and return to the step of creating the target SMB user according to the SMB user creation command when the SMB user creation command is received.

在本申请的一个实施例中,该SMB用户管理装置还可以包括集群更新模块,用于当服务节点为新加入服务节点时,确定共享服务集群的工作模式;若工作模式为单节点模式,则执行预设操作;若工作模式为集群模式,则向共享服务集群的主服务节点获取用户标签为集群用户的各SMB用户的用户信息,并保存至本地。In one embodiment of the present application, the SMB user management device may also include a cluster update module, which is used to determine the working mode of the shared service cluster when the service node is a newly joined service node; if the working mode is a single node mode, a preset operation is executed; if the working mode is a cluster mode, the user information of each SMB user with a user label as a cluster user is obtained from the main service node of the shared service cluster and saved locally.

在本申请的一个实施例中,该SMB用户管理装置还可以包括应用模块,用于接收客户端针对目标SMB用户的SMB连接请求;根据SMB连接请求判断是否目标SMB用户是否存在;若不存在,则向客户端反馈错误提示;若存在,则向客户端反馈响应信息,以接收客户端发送的目标SMB用户的密码数据,利用目标SMB用户的注册密码数据对密码数据进行校验,并在校验通过时与客户端建立SMB连接。In one embodiment of the present application, the SMB user management device may also include an application module for receiving an SMB connection request from a client for a target SMB user; determining whether the target SMB user exists based on the SMB connection request; if not, feeding back an error prompt to the client; if so, feeding back a response message to the client to receive password data of the target SMB user sent by the client, verifying the password data using the registered password data of the target SMB user, and establishing an SMB connection with the client when the verification passes.

对于本申请实施例提供的装置的介绍请参照上述方法实施例,本申请在此不做赘述。For an introduction to the device provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

本申请实施例提供了一种电子设备。An embodiment of the present application provides an electronic device.

请参考图5,图5为本申请所提供的一种电子设备的结构示意图,该电子设备可包括:Please refer to FIG5 , which is a schematic diagram of the structure of an electronic device provided by the present application. The electronic device may include:

存储器11,用于存储计算机程序;A memory 11, used for storing computer programs;

处理器10,用于执行计算机程序时可实现如上述任意一种SMB用户管理方法的步骤。The processor 10 can implement the steps of any one of the above-mentioned SMB user management methods when executing a computer program.

如图5所示,为电子设备的组成结构示意图,电子设备可以包括:处理器10、存储器11、通信接口12和通信总线13。处理器10、存储器11、通信接口12均通过通信总线13完成相互间的通信。As shown in Fig. 5, it is a schematic diagram of the composition structure of an electronic device, which may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

在本申请实施例中,处理器10可以为中央处理器(Central Processing Unit,CPU)、特定应用集成电路、数字信号处理器、现场可编程门阵列或者其他可编程逻辑器件等。In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.

处理器10可以调用存储器11中存储的程序,具体的,处理器10可以执行SMB用户管理方法的实施例中的操作。The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in an embodiment of the SMB user management method.

存储器11中用于存放一个或者一个以上程序,程序可以包括程序代码,程序代码包括计算机操作指令,在本申请实施例中,存储器11中至少存储有用于实现以下功能的程序:The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

当接收到SMB用户创建命令时,根据SMB用户创建命令创建目标SMB用户,并确定共享服务集群的工作模式;工作模式包括单节点模式和集群模式;When receiving an SMB user creation command, a target SMB user is created according to the SMB user creation command, and the working mode of the shared service cluster is determined; the working modes include single-node mode and cluster mode;

若工作模式为单节点模式,确定目标SMB用户在其他各服务节点中的同名SMB用户,根据各同名SMB用户的序列号确定新序列号,在目标SMB用户对应的用户信息表中设置用户序列号为新序列号,设置用户标签为独立用户;If the working mode is single-node mode, determine the SMB users with the same name as the target SMB user in other service nodes, determine the new serial number according to the serial numbers of each SMB user with the same name, set the user serial number to the new serial number in the user information table corresponding to the target SMB user, and set the user label to an independent user;

若工作模式为集群模式,在目标SMB用户对应的用户信息表中设置用户序列号为默认序列号,设置用户标签为集群用户;其中,集群模式下的用户序列号随着相应用户信息表的更新而更新;If the working mode is cluster mode, the user serial number is set as the default serial number in the user information table corresponding to the target SMB user, and the user tag is set as a cluster user; wherein the user serial number in the cluster mode is updated as the corresponding user information table is updated;

根据统一数据库中的各用户信息表对各SMB用户进行管理。Each SMB user is managed according to the user information table in the unified database.

在一种可能的实现方式中,存储器11可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统,以及至少一个功能所需的应用程序等;存储数据区可存储使用过程中所创建的数据。In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

此外,存储器11可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件或其他易失性固态存储器件。In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

通信接口12可以为通信模块的接口,用于与其他设备或者系统连接。The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

当然,需要说明的是,图5所示的结构并不构成对本申请实施例中电子设备的限定,在实际应用中电子设备可以包括比图5所示的更多或更少的部件,或者组合某些部件。Of course, it should be noted that the structure shown in FIG. 5 does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include more or fewer components than those shown in FIG. 5 , or combine certain components.

本申请实施例提供了一种计算机可读存储介质。An embodiment of the present application provides a computer-readable storage medium.

本申请实施例所提供的计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如上述任意一种SMB用户管理方法的步骤。The computer-readable storage medium provided in the embodiment of the present application stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned SMB user management methods can be implemented.

其中,计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备,例如,可以是磁性介质(如软盘、硬盘、磁带等)、光介质(如DVD)或半导体介质(如固态硬盘)等各种可以存储计算机程序代码的介质。Among them, the computer-readable storage medium can be any available medium that can be stored in a computer or a data storage device such as a server or data center that includes one or more available media integrated. For example, it can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk) and other media that can store computer program codes.

对于本申请实施例提供的计算机可读存储介质的介绍请参照上述方法实施例,本申请在此不做赘述。For an introduction to the computer-readable storage medium provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

本申请实施例提供了一种计算机程序产品。An embodiment of the present application provides a computer program product.

本申请实施例所提供的计算机程序产品包括计算机程序/指令,计算机程序/指令被处理器执行时可以实现如上述任意一种SMB用户管理方法的步骤。The computer program product provided in the embodiments of the present application includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of any one of the above-mentioned SMB user management methods can be implemented.

具体而言,在上述各实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。Specifically, in the above embodiments, all or part of them can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of them can be implemented in the form of a computer program product.

其中,计算机程序产品可以包括一个或多个计算机程序/指令,在计算机上加载和执行该计算机程序/指令时,可以全部或部分地产生按照本申请实施例所述的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线等)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。Among them, the computer program product may include one or more computer programs/instructions, and when the computer program/instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application may be generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line, etc.) or wireless (e.g., infrared, wireless, microwave, etc.) means.

对于本申请实施例提供的计算机程序产品的介绍请参照上述方法实施例,本申请在此不做赘述。For an introduction to the computer program product provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM或技术领域内所公知的任意其它形式的存储介质中。The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

以上对本申请所提供的技术方案进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请的保护范围内。The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples herein, and the description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims (10)

1. The SMB user management method is characterized by being applied to any service node in a shared service cluster, wherein all the service nodes in the shared service cluster are connected to a unified database, and the unified database is used for storing user information tables of all SMB users in the shared service cluster, and the method comprises the following steps:
When receiving an SMB user creation command, creating a target SMB user according to the SMB user creation command, and determining the working mode of the shared service cluster; the working modes comprise a single-node mode and a cluster mode;
If the working mode is the single-node mode, determining the same name SMB users of the target SMB users in other service nodes, determining a new serial number according to the serial numbers of the same name SMB users, setting a user serial number as the new serial number in a user information table corresponding to the target SMB users, and setting a user tag as an independent user;
If the working mode is the cluster mode, setting a user serial number as a default serial number in a user information table corresponding to the target SMB user, and setting a user tag as a cluster user; wherein, the user serial number in the cluster mode is updated along with the update of the corresponding user information table;
and managing each SMB user according to each user information table in the unified database.
2. The SMB user management method according to claim 1, wherein when the SMB user management operation is specifically a modification operation, said managing each SMB user according to each user information table in said unified database includes:
determining user data of the SMB user to be modified;
If the working mode is the single-node mode, judging whether the service node locally has the same name SMB user of the SMB user to be modified; if yes, the user data is used for covering the original user data of the same-name SMB users, and a user tag is set as an independent user in a user information table corresponding to the same-name SMB users; if not, executing the step of creating a target SMB user according to the SMB user creation command;
If the working mode is the cluster mode, judging whether the shared service cluster has the same name SMB user of the SMB user to be modified; if so, covering the original user data of the same-name SMB user by using the user data, setting a user tag as a cluster user in a user information table corresponding to the same-name SMB user, and synchronizing other service nodes to execute the modification operation; and if not, executing the step of creating the target SMB user according to the SMB user creation command.
3. The SMB user management method according to claim 1, wherein when the SMB user management operation is specifically a search operation, said managing each SMB user according to each user information table in said unified database includes:
Determining user information of a target query SMB user;
if the working mode is the single-node mode, judging whether the target query SMB user exists locally by using the user information; if yes, outputting the user data of the target query SMB user; if not, outputting an error prompt;
If the working mode is the cluster mode, judging whether a target query SMB user with a user label as a cluster user exists locally by utilizing the user information; if yes, outputting user data of target query SMB users with the user labels as clustered users; if the target query SMB users with the user labels being independent users are not found in the shared service cluster, and the target query SMB users with the user serial numbers being the latest serial numbers are found in the target query SMB users with the user labels being independent users, and the user data of the target query SMB users with the user serial numbers being the latest serial numbers are output.
4. The SMB user management method according to claim 1, wherein when the SMB user management operation is specifically a delete operation, said managing each SMB user according to each user information table in said unified database includes:
determining SMB users to be deleted;
if the working mode is the single-node mode, deleting the SMB user to be deleted from the same-name SMB user local to the service node;
and if the working mode is the cluster mode, deleting the SMB users with the same name in the shared service cluster by the SMB users to be deleted.
5. The SMB user management method according to claim 1, wherein when receiving an SMB user creation command, after creating a target SMB user according to the SMB user creation command, further comprising:
Judging whether a default user group exists in the shared service cluster;
if yes, executing the step of determining the working mode of the shared service cluster;
If not, setting that the target SMB user belongs to the default user group, adding the user information of the target SMB user into a member list of the default user group, and returning to the step of creating the target SMB user according to the SMB user creation command when the SMB user creation command is received.
6. The SMB user management method according to claim 1, wherein when said service node is a newly joining service node, said method further comprises:
Determining a working mode of the shared service cluster;
if the working mode is the single-node mode, executing preset operation;
and if the working mode is the cluster mode, acquiring user information of each SMB user with a user label as a cluster user from a main service node of the shared service cluster, and storing the user information to a local.
7. The SMB user management method according to any one of claims 1 to 6, further comprising:
Receiving an SMB connection request of a client for the target SMB user;
Judging whether the target SMB user exists or not according to the SMB connection request;
If not, feeding back an error prompt to the client;
If yes, feeding back response information to the client to receive the password data of the target SMB user sent by the client, checking the password data by using the registered password data of the target SMB user, and establishing SMB connection with the client when the password data passes the check.
8. An SMB user management device, applied to any service node in a shared service cluster, where all service nodes in the shared service cluster are connected to a unified database, and the unified database is used to store user information tables of all SMB users in the shared service cluster, where the device includes:
the determining module is used for creating a target SMB user according to the SMB user creation command when the SMB user creation command is received, and determining the working mode of the shared service cluster; the working modes comprise a single-node mode and a cluster mode;
the first setting module is used for determining the same name SMB users of the target SMB users in other service nodes if the working mode is the single node mode, determining new serial numbers according to serial numbers of the same name SMB users, setting the user serial numbers as the new serial numbers in a user information table corresponding to the target SMB users, and setting user labels as independent users;
The second setting module is used for setting a user serial number as a default serial number in a user information table corresponding to the target SMB user if the working mode is the cluster mode, and setting a user label as a cluster user; wherein, the user serial number in the cluster mode is updated along with the update of the corresponding user information table;
And the management module is used for managing each SMB user according to each user information table in the unified database.
9. An electronic device, comprising:
A memory for storing a computer program;
A processor for implementing the steps of the SMB user management method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the SMB user management method of any of claims 1 to 7.
CN202411095783.6A 2024-08-09 2024-08-09 SMB user management method, device, electronic device and readable storage medium Pending CN118885994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411095783.6A CN118885994A (en) 2024-08-09 2024-08-09 SMB user management method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411095783.6A CN118885994A (en) 2024-08-09 2024-08-09 SMB user management method, device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN118885994A true CN118885994A (en) 2024-11-01

Family

ID=93230450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411095783.6A Pending CN118885994A (en) 2024-08-09 2024-08-09 SMB user management method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN118885994A (en)

Similar Documents

Publication Publication Date Title
US8171171B2 (en) Data synchronization method and system between devices
CN113271311B (en) A digital identity management method and system in a cross-chain network
CN110445886B (en) Method and system for realizing domain name access acceleration
US10579595B2 (en) Method and device for calling a distributed file system
CN101442558B (en) Method and system for providing index service for P2SP network
EA007778B1 (en) Application generator
CN113709250B (en) Cross-domain user data synchronization method based on subscription transmission mode
JP2010509813A (en) Notification message processing method and apparatus
CN108710681A (en) File acquisition method, device, equipment and storage medium
CN111708834A (en) A method, system, device and medium for synchronization of service configuration data
CN114866416A (en) Multi-cluster unified management system and deployment method
CN112883103A (en) Method and device for data transfer between clusters
WO2025016156A1 (en) Index switching method and apparatus, and computer-readable storage medium
CN118885994A (en) SMB user management method, device, electronic device and readable storage medium
US20240015135A1 (en) Domain management and synchronization system
WO2024221980A1 (en) 5g message access method and system for private network chatbot
EP2200395A1 (en) Managing method, system and device for an appearance packet
CN115883583A (en) Data synchronization method and device and multi-stage platform data synchronization system
CN107395416A (en) A kind of data transmission method for uplink and server cluster
CN108566421A (en) A kind of network type location mode and system based on Network Attached Storage
JP6969676B2 (en) Exclusive control system and exclusive control method
CN115412557A (en) Block chain resource management method and device based on multi-chain cooperation
CN116094720B (en) Block chain multi-platform management method, device, server and storage medium
JP4681812B2 (en) Method and apparatus for storing and managing contacts in a distributed collaboration system
CN115842973B (en) Optical network unit management and control method, device, related functional equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination