CN107040424A - 一种自动化配置ldap服务器的方法 - Google Patents

一种自动化配置ldap服务器的方法 Download PDF

Info

Publication number
CN107040424A
CN107040424A CN201710381984.6A CN201710381984A CN107040424A CN 107040424 A CN107040424 A CN 107040424A CN 201710381984 A CN201710381984 A CN 201710381984A CN 107040424 A CN107040424 A CN 107040424A
Authority
CN
China
Prior art keywords
ldap server
linux system
automatic configuration
instruction
configuration
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
CN201710381984.6A
Other languages
English (en)
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 Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710381984.6A priority Critical patent/CN107040424A/zh
Publication of CN107040424A publication Critical patent/CN107040424A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Abstract

本发明公开了一种自动化配置LDAP服务器的方法通过Python自动化配置脚本,实现了LDAP服务器一键式搭建。大大提高了LDAP服务器的搭建效率,同时可以实现LDAP服务器批量搭建。本发明构建出了基于Python实现Linux系统下服务的自动化配置的系统框架,为后续Linux系统下服务的配置自动化提供了可能。

Description

一种自动化配置LDAP服务器的方法
技术领域
本发明涉及服务器安装配置领域。
背景技术
企业内部需要认证的服务越来越多,需要记住的密码也越来越多,如果这些服务进行相同的密码设置,会存在很大的安全隐患。LADP作为一种轻量级目录访问协议,在统一身份认证过程中大大简化的管理过程得到了绝大多数认证机制的支持。在整个LADP服务环节中LDAP服务器便是LDAP服务使用过程中重要的环节,然而由于LDAP服务器搭建步骤复杂,耗时耗力,本发明通过Python脚本实现了LDAP服务器的自动化搭建,大大简化了人工配置过程耗时耗力同时避免了人工配置过程中的失误。
发明内容
本发明为解决上述技术问题,为此,本发明提供一种自动化配置LDAP服务器的方法,它具有实现LDAP服务器快速批量搭建、实现Linux系统下服务的自动化配置的优点。
为了实现上述目的,本发明采用如下技术方案。
一种自动化配置LDAP服务器的方法,包含以下步骤:
创建lib库,实现对Linux系统的登录、指令发送、指令的执行等待后继续发送指令、登出功能;
调用Lib库中的指令,对LDAP服务器配置。
优选的,调用Lib库中的指令,包含,登录linux系统、向linux系统发送配置指令、用户添加、登出linux系统。
本发明的有益效果:本发明通过Python自动化配置脚本,实现了LDAP服务器一键式搭建。大大提高了LDAP服务器的搭建效率,同时可以实现LDAP服务器批量搭建。本发明构建出了基于Python实现Linux系统下服务的自动化配置的系统框架,为后续Linux系统下服务的配置自动化提供了可能。
附图说明
图1是本实施例LDAP服务器自动化配置过程图。
图2是Python自动化配置lib库调用过程示意图。
具体实施方式
下面结合附图与实施例对本发明作进一步说明。
图1是LDAP服务器的配置过程。首先挂载安装光盘并且配置本地yum源方便本地服务的安装。然后通过yum指令安装LDAP的相关服务,并且配置LDAP的相关配置文件。配置完成后重启slapd服务。创建100个LDAP共享用户,使用migrationtools格式转换工具转换用户格式后把用户添加到LDAP服务器中,最后重启slapd服务并刷新防火墙完成配置。
图2是python脚本自动化配置过程中对lib库中类的调用过程。开始执行Autoset后,首先使用Useradd实例创建100个ldapuser。Useradd首先调用ssh2_login登录linux系统,然后通过ssh2_cmd向linux系统下发送配置指令,通过for虚幻实现100个用户的添加操作。添加完成后调用ssh2_logout登出linux系统。然后使用CrtLADP开始配置LDAP服务器,CreLDAP首先调用ssh2_login登录linux系统,然后通过ssh2_cmd和ssh2_cmd_with_interaciton向linux系统下发送配置指令,通过配合linux系统下echo和sed等指令的使用完成LDAP服务器的配置。完成配置后调用ssh2_logout登出linux系统。
(1) Useradd函数
该函数的主要作用是在linux系统下创建用户。通过调用lib库中类实现用户的创建。
(2) CrtLDAP函数
该函数的主要作用是在linux系统下配置LDAP服务器。通过调用lib库中类实现LDAP服务器的配置。
(3) ssh2_login函数
该函数的主要作用是通过ssh服务登录指定的linux系统。根据远程调用的请求进行本调用返回执行结果。
(4) ssh2_sendcmd函数
该函数的主要作用是通过ssh服务登录指定的linux系统。根据远程调用的请求进行本调用返回执行结果。
(5) ssh2_sendcmd_with_interaction函数
该函数的主要作用是通过ssh服务登录指定的linux系统。根据远程调用的请求进行本调用返回执行结果。
(6) ssh2_logout函数
该函数的主要作用是通过ssh服务登出指定的linux系统。根据远程调用的请求进行本调用返回执行结果。
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。

Claims (2)

1.一种自动化配置LDAP服务器的方法,其特征在于,包含以下步骤:
创建lib库,实现对Linux系统的登录、指令发送、指令的执行等待后继续发送指令、登出功能;
调用Lib库中的指令,对LDAP服务器配置。
2.如权利要求1所述的调用Lib库中的指令,其特征在于,包含登录linux系统、向linux系统发送配置指令、用户添加、登出linux系统的指令。
CN201710381984.6A 2017-05-26 2017-05-26 一种自动化配置ldap服务器的方法 Pending CN107040424A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710381984.6A CN107040424A (zh) 2017-05-26 2017-05-26 一种自动化配置ldap服务器的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710381984.6A CN107040424A (zh) 2017-05-26 2017-05-26 一种自动化配置ldap服务器的方法

Publications (1)

Publication Number Publication Date
CN107040424A true CN107040424A (zh) 2017-08-11

Family

ID=59540426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710381984.6A Pending CN107040424A (zh) 2017-05-26 2017-05-26 一种自动化配置ldap服务器的方法

Country Status (1)

Country Link
CN (1) CN107040424A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981743A (zh) * 2019-02-27 2019-07-05 苏州浪潮智能科技有限公司 一种icos5.5-ldap与as-13000存储多节点融合部署方法

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999033211A1 (en) * 1997-12-23 1999-07-01 Mediaone Group, Inc. Method and system for automatic allocation of resources in a network
EP1289243A1 (en) * 2001-08-31 2003-03-05 Openwave Systems Inc. System and method for implementing an Interactive Voice Response (IVR) system based on the LDAP protocol
US20080104215A1 (en) * 2006-10-25 2008-05-01 Sun Microsystems, Inc. Method and system for managing server configuration data
CN102064953A (zh) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 ldap服务器的用户权限信息配置系统、装置和方法
CN102306147A (zh) * 2011-03-18 2012-01-04 北京神州数码思特奇信息技术股份有限公司 一种java语言对ldap的访问操作的方法及系统
CN102510413A (zh) * 2012-01-04 2012-06-20 北京邮电大学 一种基于ldap的配置管理方法和系统
US20140289722A1 (en) * 2013-03-22 2014-09-25 International Business Machines Corporation Parallel program installation and configuration
CN105450606A (zh) * 2014-08-27 2016-03-30 中国银联股份有限公司 一种ldap服务节点及同步方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999033211A1 (en) * 1997-12-23 1999-07-01 Mediaone Group, Inc. Method and system for automatic allocation of resources in a network
EP1289243A1 (en) * 2001-08-31 2003-03-05 Openwave Systems Inc. System and method for implementing an Interactive Voice Response (IVR) system based on the LDAP protocol
US20080104215A1 (en) * 2006-10-25 2008-05-01 Sun Microsystems, Inc. Method and system for managing server configuration data
CN102064953A (zh) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 ldap服务器的用户权限信息配置系统、装置和方法
CN102306147A (zh) * 2011-03-18 2012-01-04 北京神州数码思特奇信息技术股份有限公司 一种java语言对ldap的访问操作的方法及系统
CN102510413A (zh) * 2012-01-04 2012-06-20 北京邮电大学 一种基于ldap的配置管理方法和系统
US20140289722A1 (en) * 2013-03-22 2014-09-25 International Business Machines Corporation Parallel program installation and configuration
CN105450606A (zh) * 2014-08-27 2016-03-30 中国银联股份有限公司 一种ldap服务节点及同步方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LO散落: "LDAP学习及服务器的搭建", 《HTTPS://BLOG.CSDN.NET/QQ_15117745/ARTICLE/DETAILS/45749359》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981743A (zh) * 2019-02-27 2019-07-05 苏州浪潮智能科技有限公司 一种icos5.5-ldap与as-13000存储多节点融合部署方法

Similar Documents

Publication Publication Date Title
US10348735B2 (en) Systems and methods for accessing cloud resources from a local development environment
CN105099985B (zh) 多应用程序登录实现方法和装置
US20190288996A1 (en) System and method for centralized authentication and authorization for cloud platform with multiple deployments
US20210021584A1 (en) Methods and Systems for Providing Wake-On-Demand Access to Session Servers
CN105872019A (zh) 一种Web端登录Docker容器的方法和装置
EP3185619A1 (en) Method and device for connecting to network
CN112235285B (zh) 基于非会话的用户认证模式和服务的方法及系统
CN103368809A (zh) 一种互联网反向穿透隧道的实现方法
CN109547567B (zh) 代理连接方法和装置
JP7344310B2 (ja) クラウド・コンピューティング環境における仮想エージェントのためのシステムおよび方法
US11494057B2 (en) System and method for delivering modular tools
CN107040424A (zh) 一种自动化配置ldap服务器的方法
US20140310522A1 (en) Network apparatus for secure remote access and control
US20200007607A1 (en) Updates and support channel through mobile
CN103618617A (zh) 一种pppoe零配置业务实现方法及系统
CN101459543A (zh) 一种电信设备集中登录的系统及其实现方法
CN103942134B (zh) 查看嵌入式设备日志的方法及系统
CN115150113A (zh) 访问内网应用的方法及相关设备
Kapicak et al. Remote control of asterisk via web services
CN105959197B (zh) 一种ssl vpn用户界面定制方法及装置
US9178761B2 (en) Provisioning VPN phones
WO2021137921A1 (en) Automated configuration and deployment of contact center software suite
KR102192321B1 (ko) 클라우드 컴퓨터 구동 방법 및 장치
US20150163348A1 (en) Debug Line Tracer
WO2014183507A1 (zh) 一种呼叫中心系统、设备及通讯方法

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170811

RJ01 Rejection of invention patent application after publication