Scripts to populate the UNIX attributes when migrating from SFU 3.5 to RFC 2307 schema

We do get lot of issues where customer has migrated\upgraded from SFU 3.5 to Windows 2003 R2\2008\2008 R2 and is having issues with the Unix attributes of the users. In case you want to uninstall SFU 3.5 from your domain controllers and install the inbuilt components (i.e, Server for NIS, Password Sync) we need to run the script to populate the newer attributes after migrating to new OS. These scripts can be used to copy the values from the older attribute (SFU 3.5 schema) to the new RFC 2307 attributes for users and groups. Please save the script as .vbs instead of .txt.

The script (attached) will populate the entries below from the older SFU 3.5 attributes to new RFC 2307 attributes:

List of attributes for a group:

gidNumber – an unique number for the group in a domain

List of attributes for a user:

uid – generally the sAMAccountName

uidNumber – an unique number for the user in a domain

gidNumber – number same as of the gidNumber of the group to which this user belongs

msSFU30Name - generally the sAMAccountName

unixHomeDirectory – home directory for UNIX environment

loginShell – default shell for user

BTW, SyncRFC2307_passwd.txt is for users’ UNIX related attribute and SyncRFC2307_group is for the group. I would recommend to run these scripts on a test environment before putting it on the production.

You can then run them from the command prompt: 'cscript <name of the script>'

Currently, we are testing and would come up with one more script to populate the memberuid attribute from SFU 3.5 to RFC 2307.

SyncRFC2307.zip