Hello
I am doing some test.
In a script I have to call a change password routine ( ldap ) which ask confirmation. This can be done from terminal.
Is there a way to do something like this :
#!/bin/bash
#
blabla
blabla
blabla
blabla
# changing_password_routine user_name new-password new-password
user_name=$1
new-pass=$2
smbldap-passwd $user_name < $new-pass $new-pass
# end
I have try it dose not work.
smbldap-passwd $user_name
new password :
Retype new password :
thank you for helping
jcd