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
Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 …

860 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