?
Solved

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

Posted on 2006-06-25
2
Medium Priority
?
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
Progress

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