X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fsliverauth.py;h=51f44c9c767a6aed7d4656444e508a957f0772a0;hb=2d7b127c806b5ca661b03f1c21926f1b9f7fa1e8;hp=9ff2f385a76f6d61ec2bec1f1b83f22dd5baa938;hpb=08d6f2b70b86a10b222a5afe80945598296196ad;p=nodemanager.git diff --git a/plugins/sliverauth.py b/plugins/sliverauth.py index 9ff2f38..51f44c9 100644 --- a/plugins/sliverauth.py +++ b/plugins/sliverauth.py @@ -92,7 +92,11 @@ def manage_hmac (plc, sliver): # create the key if needed and returns the key contents def generate_sshkey (sliver): - keyfile="/vservers/%s/home/%s/.ssh/id_rsa"%(sliver['name'],sliver['name']) +# initial version was storing stuff in the sliver directly +# keyfile="/vservers/%s/home/%s/.ssh/id_rsa"%(sliver['name'],sliver['name']) +# we're now storing this in the same place as the authorized_keys, which in turn +# gets mounted to the user's home directory in the sliver + keyfile="/home/%s/.ssh/id_rsa"%(sliver['name']) pubfile="%s.pub"%keyfile dotssh=os.path.dirname(keyfile) # create dir if needed