ldap安装与使用
发表于更新于
宁波
IT运维ldap安装与使用
观默Jira & Confluence 安装与破解 基于 ubuntu 22.04
LDAP 部署与使用 基于 centos 7.9
GitLab 接入 LDAP
LDAP 客户端工具&破解
LDAP 允许用户修改密码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
LDAP_BASE_DN='dc=cptgroup,dc=cn' cat <<EOF > /root/openldap/jira-software-users.ldif dn: cn=jira-software-users,ou=group,${LDAP_BASE_DN} objectClass: groupOfNames cn: jira-software-users description: JIRA Users member: cn=lujiehui,ou=people,${LDAP_BASE_DN} EOF
ldapadd -x -D cn=root,dc=cptgroup,dc=cn -W -f /root/openldap/jira-software-users.ldif
ldapsearch -x -LLL -D cn=root,dc=cptgroup,dc=cn -w rh888888 -b cn=lujiehui,ou=people,dc=cptgroup,dc=cn dn memberof
LDAP_USER_PW=`slappasswd -s rh888888`
LDAP_BASE_DN='dc=cptgroup,dc=cn' cat <<EOF > /root/openldap/user.ldif dn: cn=carry,ou=people,${LDAP_BASE_DN} cn: carry givenName: carry sn: carry uid: carry uidNumber: 10002 gidNumber: 10002 homeDirectory: /home/carry mail: carry@cptgroup.cn objectClass: top objectClass: posixAccount objectClass: shadowAccount objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person loginShell: /bin/bash userPassword: ${LDAP_USER_PW} EOF
ldapadd -x -D cn=root,dc=cptgroup,dc=cn -W -f /root/openldap/user.ldif
ldapsearch -x -LLL -D cn=root,dc=cptgroup,dc=cn -w rh888888 -b cn=lujiehui,ou=people,dc=cptgroup,dc=cn dn memberof
|