Solved

creating a user on windows "Services for Unix 3.5" with a unique UID

Posted on 2006-06-25
2
435 Views
Last Modified: 2008-02-01
hi,

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.SetInfo
'SFU Attributes
objUser.Put "syncNisDomain","win"
objUser.Put "msSFU30NisDomain","win"
objUser.Put "msSFU30GidNumber", GID
objUser.Put "msSFU30UidNumber", UID
objUser.Put "msSFU30LoginShell","/bin/bash"
objUser.Put "msSFU30HomeDirectory","/projecto/" & strUserID
objUser.Put "msSFU30Name", strUserID
' Commit again
objUser.SetInfo


Thanks for the help,
                              Or
0
Comment
Question by:Kazabubu
2 Comments
 
LVL 1

Author Comment

by:Kazabubu
ID: 16983444
i found a file called passwd.byuid
that file holds all the users sorted by uid , so all i have to look is at the last line of the file
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 17134869
Kazabubu,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question