1

Topic: Change password from the command line.

Hi

Is it possibile to change the password from the shell ?

something like: ./change-pass.sh foo@domain.com new_password

I know that with a little bit of work could be done, but i'd like to know if someone have already done it.

thx in advance.

2

Re: Change password from the command line.

Seems iRedMail doesn't provide similar tools. Sorry.

3

Re: Change password from the command line.

In the end i hacked around the create_user_ldap.sh script and modify it a little bit to do a ldapmodify .

thx

4

Re: Change password from the command line.

I did it too. Modify create_user_ldap.sh and do something like:

ldapmodify -x -D "${BINDDN}" -w "${BINDPW}" <<EOF
dn: mail=${MAIL},${OU_USER_DN},${DOMAIN_DN},${BASE_DN}
userPassword: ${PASSWD}
${LDIF_PUREFTPD_USER}
EOF