05 2023 档案
摘要:[root@scheduler shell]# cat ldapserver.sh #!/bin/bash # # LdapServer install Script # author: liulingfeng # 2023-04-29 # #1、关闭防火墙 sed -i '/SELINUX/s/e
阅读全文
摘要:#!/bin/bashcat>function<<'EOF'#远程主机登录用户V_USERNAME="root" #远程主机登录密码V_PASSWORD="huawei@123" #远程主机列表V_HOSTLIST="168.17.1.{2..250}" #当前目录和上一层目录CDDIR="$(cd
阅读全文
摘要:cat>ipscan<<'EOFABC' #!/bin/bash CDDIR="$(cd "$(dirname "$0")" ; pwd -P)" NDIR="$CDIR/.." starttime=$(date +%s) rm -rf ${CDDIR}/.ip.txt for i in 168.1
阅读全文
摘要:#!/bin/bash starttime=$(date +%s) rm -rf ip.txt for i in 168.17.1.{2..253}; do ping -W 1 -w 0.05 -c 1 $i &>/dev/null && echo $i is up && echo $i >> ip
阅读全文
摘要:#!/bin/bash ##!/bin/bash # # 脚本自动生成根证书和用户服务器证书 # DomainName="huawei.com" CA="CA" ServerName="ldapserver" AdminPd="Huawei@123" LdifPath="/etc/openldap/
阅读全文
摘要:#!/bin/bash ################################################################### # # phpldapadmin install script # 方式一: 使用cn=admin,dc=huawei,dc=com登录方式
阅读全文
摘要:# 将创建的用户和组导入到ldap数据库 # 1、创建ldap user useradd ldapuser01 useradd ldapuser02 echo "Huawei@123" | passwd --stdin ldapuser01 echo "Huawei@123" | passwd --
阅读全文
摘要:#!/bin/bash # # LdapServer install Script # author: liulingfeng # 2023-04-29 # #1、关闭防火墙 sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config sy
阅读全文
摘要:#!/bin/bash # # LdapServer install Script # author: liulingfeng # 2023-04-29 # LdapServerIP="192.168.1.24" DomainPrefix="huawei" DomainSuffix="com" Ad
阅读全文