Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Axel Luttgens <email@hidden>
- Date: Thu, 29 Jan 2004 09:58:23 +0100
Isaac Ordonez wrote:
Hello,
Guess this is an Applescript/Server question. I would like to add
users either via command line or apple script. Since workgroup
manager is not scriptable I'm guessing my best bet would be to use a
command line argument. I've found niutil will write users and values
to the netinfo database but that leaves me with a problem, it only
writes to the local netinfo database.
Or a parent netinfo db, as far as I remember.
But yes, that leaves your problem open anyway (LDAP).
And, more generally, I'm not sure that such a command would achieve the
required synchronization with all the aspects of the server's functions.
We are currently using LDAP on OS X 10.3. Does anyone know of a way
to addusers (and LDAP entries such as LasName, Password, etc.) easily
into the LDAP database from the command line
You could perhaps have a look at dscl(1), which somehow is the
generalization of nicl to every datasources known through directory
services (aka open directory).
But the same caution applies as for niutil or nicl.
On the server, you should have dsimport (or is it dsimportexport?),
which should allow you to import users within WM; I guess there would be
a man page for that one.
There is also an ubiquitous serversetup command.
A guide about command-line administration for Mac OS X Server is
available on Apple's site.
OR an applescriptable way?
Once you have the shell command and "do script"... ;-)
But a "true" AS way, I fear there is none.
HTH,
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Isaac Ordonez <email@hidden>) |