creating a user on windows "Services for Unix 3.5" with a unique UID
Posted on 2006-06-25
im trying to write a program which will give an interface for creating a users in our windows 2000 domain.
our domain also holds a NIS server on the DC by using "SFU 3.5" which provides centrat location for managing users also for our Unix Servers.
the problem is how do i know which UID should i give to the user im creating?
when you do it through the GUI the UID just appears , and i have no idea how it is being generated.
the msSFU30UidNumber is the property that i have to assing the UID to.
the piece of the code is standard:
objUser.Put "msSFU30GidNumber", GID
objUser.Put "msSFU30UidNumber", UID
objUser.Put "msSFU30HomeDirectory","/projecto/" & strUserID
objUser.Put "msSFU30Name", strUserID
' Commit again
Thanks for the help,