-# will be use to authentice against bonfire's ldap
-
-# module for bonfire to connect with sfa (following the Rspec)
-# inspired by the following documenation:
-# https://svn.planet-lab.org/wiki/SfaDeveloperDummyTutorial#RunningSFAinDummyflavour
-
-# does not forget to launching this code:
-#python /usr/lib/python2.7/site-packages/sfa/dummy/dummy_testbed_api.py
-
-# documentation
-# http://wiki.bonfire-project.eu/index.php/FED4FIRE_sfa
-
-#1 - list resources
-#2 - allocate
-#3 - provisioning
-#4 - create compute VM for fr-inria/uk-epcc
-
-# 1) list all the resources of bonfire from sfa's point of view
-# python -c 'import bonfire; print bonfire.bonsources()'
-
-# 2) allocate: create an experiment bonfire with slice information (parameters : user_name, groups, description, walltime, slice_name)
-# python -c 'import bonfire; print bonfire.allocate("nlebreto", "nlebreto", "tdes", "125", "topdomain.dummy.nicolas")'
-
-# 3) provisioning: changing the status to running status for the experiment 2911
-# python -c 'import bonfire; print bonfire.provisioning("2911","running")'
-
-# 4) bonfire create virtual machine with these specific features 1) fr-inria storages n°1805 network 2 ip public 2) uk-epcc storages n°1364 network 0 bonfire wan
-# python -c 'import bonfire; print bonfire.create_vm("fr-inria", "56910", "rester", "nlebreto")'
-# python -c 'import bonfire; print bonfire.create_vm("uk-epcc", "56910", "rester", "nlebreto")'
-
-# 5) retrieve the url, the name and the key for a compute N°3656 located at fr-inria
-# python -c 'import bonfire; print bonfire.rsa_user_bonfire("fr-inria", "3656")'
-
-# 6) create a new user and slice for sfa wrap
-# python -c 'import bonfire; print bonfire.new_user_slice()'
-
-# 7) stop virtual machine in bonfire testbed (ex n°3756 at fr-inira testbed)
-# python -c 'import bonfire; print bonfire.stop_vm("fr-inria", "3756")'
-
-# 8) remove slice or key
-# python -c 'import bonfire; print bonfire.remove_slice("topdomain.dummy.alice_slice")'
-
-# 9) attach slice to a user
-# python -c 'import bonfire; print bonfire.create_slice_attach_user("topdomain.dummy.alice")'
-
-# 10) verify bonfire authentication
-# python -c 'import bonfire; print bonfire.callcurl("https://api.bonfire-project.eu/")'
-
-# 11) bonfire ldap authentification
-# python -c 'import bonfire; print bonfire.bonldap("nicolas.lebreton@inria.fr")'
-
-# ########################################################## #
-# ########################################################## #
-
-# pseudo authentication for bonfire
+from ConfigParser import SafeConfigParser
+
+parser = SafeConfigParser()
+parser.read('simple.ini')
+
+"""
+ module for bonfire to connect with sfa (following the Rspec)
+ inspired by the following documenation:
+ https://svn.planet-lab.org/wiki/SfaDeveloperDummyTutorial#RunningSFAinDummyflavour
+
+ does not forget to launching this code:
+ python /usr/lib/python2.7/site-packages/sfa/dummy/dummy_testbed_api.py
+
+ documentation
+ http://wiki.bonfire-project.eu/index.php/FED4FIRE_sfa
+
+ 1 - list resources
+ 2 - allocate
+ 3 - provisioning
+ 4 - create compute VM for fr-inria/uk-epcc
+
+ 1) list all the resources of bonfire from sfa's point of view
+ python -c 'import bonfire; print bonfire.bonsources()'
+ 2) allocate: create an experiment bonfire with slice information (parameters : user_name, groups, description, walltime, slice_name)
+ python -c 'import bonfire; print bonfire.allocate("nlebreto", "nlebreto", "tdes", "125", "topdomain.dummy.nicolas")'
+ 3) provisioning: changing the status to running status for the experiment 2911
+ python -c 'import bonfire; print bonfire.provisioning("2911","running")'
+ 4) bonfire create virtual machine with these specific features 1) fr-inria storages n°1805 network 2 ip public 2) uk-epcc storages n°1364 network 0 bonfire wan
+ python -c 'import bonfire; print bonfire.create_vm("fr-inria", "56910", "rester", "nlebreto")'
+ python -c 'import bonfire; print bonfire.create_vm("uk-epcc", "56910", "rester", "nlebreto")'
+
+ 5) retrieve the url, the name and the key for a compute N°3656 located at fr-inria
+ python -c 'import bonfire; print bonfire.rsa_user_bonfire("fr-inria", "3656")'
+ 6) create a new user and slice for sfa wrap
+ python -c 'import bonfire; print bonfire.new_user_slice()'
+ 7) stop virtual machine in bonfire testbed (ex n°3756 at fr-inira testbed)
+ python -c 'import bonfire; print bonfire.stop_vm("fr-inria", "3756")'
+ 8) remove slice or key
+ python -c 'import bonfire; print bonfire.remove_slice("topdomain.dummy.alice_slice")'
+ 9) attach slice to a user
+ python -c 'import bonfire; print bonfire.create_slice_attach_user("topdomain.dummy.alice")'
+ 10) verify bonfire authentication
+ python -c 'import bonfire; print bonfire.callcurl("https://api.bonfire-project.eu/")'
+ 11) bonfire ldap authentification
+ python -c 'import bonfire; print bonfire.bonldap("nicolas.lebreton@inria.fr")'
+"""
+
+""" pseudo authentication for bonfire """