I have kept: counters in files, databases, directory, but i have found
the easiest way that produces a nice opaque id is just to generate
something random.
dave
Gavin Henry wrote:
Tim Tyler said the following on 05/03/07 16:10:
I am a newbie to ldap(openldap). We have openldap working fine. We are
in the process of writing some scripts to automate certain tasks and
adding users has created a debate here on best practice. We have about
2000 users and have decided to start user uid's at 10000 and increment
from there. We have a turn-over of about 500 new users per year. What I
am curious about is what algorithm or method do many of you use to
determine the next available uid for assiging to a new user?
Do you use ldapsearch command and tail -1 for the next uid? Do you keep
track of the latest assigned uid in a seperate file or something and
increment the file appropriately? I am curious if there is a
recommendadtion for best practice in obtaining the next available uid?
Any advise is much appreciated!
Tim
You could just have a counter entry in your directory. That's what Samba
does. The increment that and update it after adding the user.
There are many ways.
Thanks.
---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the
SUBJECT of the message.