Your friend gave you the wrong power adapter. It will not harm the iPad, but will not charge it in a timely manner. You need the 10W power adapter for the iPad 2.
It's not harmful per se. But yes, it will charge very slowly, as in take you all night and still not be fully charged. You'd probably be best served to go out and buy the appropriate adapter.