Solved

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

Posted on 2006-06-25
2
434 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now