Solved

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

Posted on 2006-06-25
2
433 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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

763 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

9 Experts available now in Live!

Get 1:1 Help Now