Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: space in reset.sh was messing it up. Also, I had to use sudo last time I did an ldapmodify

...

Code Block
#!/bin/sh

# ./reset.sh johndoe <secret>

cat << EOF

dn: uid=$1,ou=people,dc=mifos,dc=org
changetype: modify
replace: userPassword
userPassword: $2
EOF

...

Code Block
./reset.sh johndoe <THE NEW PASSWORD> | sudo ldapmodify -x -W -D cn=admin,dc=mifos,dc=org -h ldap.mifos.org -ZZ

...