The BuddyPress Simple Attributes Name Converter extension maps the AD attributes givenname and sn into a single Name field. You can use this extension as a base for your own converters.
The BuddyPress Simple Attributes premium extension must be installed and activated.
Download and install the premium extension and follow the installation procedure.
Create a directory nadiext-simple-attributes-name-converter inside wp-content/plugins and create a new index.php with the following content:
Activate the plug-in in your WordPress plug-in view