trcshcsh shell for change password

[root@LDAP-Server openldap]# trcshcsh
[root@LDAP-Server openldap]# foreach user (`cat users.list`)

foreach? echo $user

foreach? end

[pankaj@LDAP-Server openldap]# foreach user ( `cat users.list` )

foreach? echo "============== Changing password for $user ==================="

foreach? ldappasswd -s welcome -x -W -D "cn=Manager,dc=IBMISL" "uid=,ou=People,dc=IBMISL"=$user2ibm -x -W -D "cn=Manager,dc=IBMISL" "uid=$user,ou=People,dc=IBMISL"

foreach? end

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps