Last active
April 8, 2016 22:00
-
-
Save zushane/a38f156823b5c90dcfe6ada6dea80c9c to your computer and use it in GitHub Desktop.
Revisions
-
Shane Doucette revised this gist
Apr 8, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,5 +11,5 @@ ROOT_DN="cn=admin,${BASE_DN}" USER_DN="uid=${1},ou=Users,${BASE_DN}" echo "Changing password for $1." ldappasswd -h $HOST -x -D $ROOT_DN -W -S $USER_DN -
Shane Doucette revised this gist
Apr 8, 2016 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ #!/bin/bash if [[ $# -ne 1 ]]; then echo "Usage: $(basename $0) user" exit 99 fi HOST=ldap.example.com BASE_DN="dc=example,dc=com" ROOT_DN="cn=admin,${BASE_DN}" -
Shane Doucette created this gist
Apr 8, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash HOST=ldap.example.com BASE_DN="dc=example,dc=com" ROOT_DN="cn=admin,${BASE_DN}" USER_DN="uid=${1},ou=Users,${BASE_DN}" echo "Changing password for $1." ldappasswd -h $HOST -x -D $ROOT_DN -W _S $USER_DN