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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| cat << EOF | ldapadd -x -D cn=admin,dc=eryajf,dc=net -w 123456 dn: uid=liqilong,ou=People,dc=eryajf,dc=net uid: liqilong cn: liqilong sn: liqilong displayName: liqilong objectClass: posixAccount objectClass: top objectClass: person objectClass: shadowAccount objectClass: inetOrgPerson gecos: System Manager loginShell: /bin/bash homeDirectory: /home/liqilong userPassword: liqilong uidNumber: 1000 gidNumber: 1009 mobile: 15638888888 mail: liqilong@eryajf.net postalAddress: Hangzhou EOF
cat << EOF | ldapadd -x -D cn=admin,dc=eryajf,dc=net -w 123456 dn: uid=zhangsan,ou=People,dc=eryajf,dc=net uid: zhangsan cn: zhangsan sn: zhangsan displayName: zhangsan objectClass: posixAccount objectClass: top objectClass: person objectClass: shadowAccount objectClass: inetOrgPerson gecos: System Manager loginShell: /bin/bash homeDirectory: /home/zhangsan userPassword: zhangsan uidNumber: 1000 gidNumber: 1009 mobile: 15638888888 mail: zhangsan@eryajf.net postalAddress: Hangzhou EOF
cat << EOF | ldapadd -x -D cn=admin,dc=eryajf,dc=net -w 123456 dn: uid=zhaosi,ou=People,dc=eryajf,dc=net uid: zhaosi cn: zhaosi sn: zhaosi displayName: zhaosi objectClass: posixAccount objectClass: top objectClass: person objectClass: shadowAccount objectClass: inetOrgPerson gecos: System Manager loginShell: /bin/bash homeDirectory: /home/zhaosi userPassword: zhaosi uidNumber: 1000 gidNumber: 1009 mobile: 15638888888 mail: zhaosi@eryajf.net postalAddress: Hangzhou EOF
|