Skip to content
Permalink
74f83cb84e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 22 lines (14 sloc) 476 Bytes
#! /usr/bin/bash
# @ID@ #
# Called from rstudio-server, as given by the '--auth-pam-helper-path' option
# ARGS received are: username rstudio 1
# users' password comes on STDIN
# PASSWORD_DIGEST has to be in the environment
set -o nounset
IFS='' read -r rstudio_password
password_digest=$(echo $rstudio_password | /usr/bin/sha256sum)
password_digest=${password_digest%% *}
if [ "$USER" = "$1" ] && [ "$password_digest" = "$PASSWORD_DIGEST" ]; then
exit 0
fi
exit 1