Great Job. It works like charm. Thanks for sharing.
I edited the file wpDirAuth.php so I would be able to read some other fields such as telephone number, title, department name etc. The point is, I don't know where to put them when I want to create the wp user. Right now, I've put them in 'description' field of userData array so it shows up on the profile of user in admin page as Biographical Info!
So my question is, is there any way to add extra fields to wp user page? My ultimate purpose is to fetch these extra fields from buddypress and put them in profile page of buddypress as new fields. So basically wp user profile page does not matter bp is mine concern.
I appreciate your help.