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
[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
Post a Comment