Антон Савельев писал(а):Сергей,
А нельзя ли поиметь доку в части утилиты-аналога UIMPORT, или какой-нибудь хелп, если выдирается...
Спасибо!
Встроенный хелп см. ниже, полный - pdf ~260 лкбайт. Что мне особо нравится в этой программе - про реплики знает и может разнести по времени создание пользователя и модификацию его атрибутов, чтобы они успели "прорости" (эти запросы могут отрабатывать разные серверы и есть очень большая вероятность попасть на ситуацию, когда сервер получит запрос на модификацию атрибутов объекта, когда сам объект в его реплике ещё не создался):
Jrbimprt-W32 v3.41: Creates NDS users using uimport control and data files.
Copyright (c) 2000-2002, JRB Software Ltd. All rights reserved.
Send bug reports or other feedback to
support@jrbsoftware.com.
Usage: jrbimprt <control file> <data file> [options]
control file
A uimport control file.
data file A uimport data file.
options Comprise a single letter preceded by '-' or '/' possibly
followed by a value. The value may be separated from the option
by ':' or '=' e.g. /y=c, and /y:c and /yc are all valid.
/$ Convert the case of the object name so that the first
character is uppercase, the remainder are lowercase.
/@ Retrieve command line switches from a file e.g. /@=john.ini.
/a Create a PMAIL subdirectory of each user's home directory.
/c Perform a syntax check of the control and data files. Do not
create any users. User /c=t to check the tree for objects
with the same name, when using 'create' or 'both' modes.
/e Controls output of errors to the console, an output log and
to an error log. One or more values may be given separated by
commas and without spaces. Possible values are:
none (z) Suppress all error output.
nocon (s) Suppress error output to CON:.
con Enable error output to CON:.
log Include errors in the log file (see /l).
filename Write errors to this file.
append Append errors to an existing file.
Each may be truncated to the minimum number of unique letters
or the single letter in parenthesis may be used. When /e is
used without values, it defaults to "con,jrbimprt.err".
/i Initiate partition synchronization immediately after creation
of each new object.
/j Suppress output of headers and totals.
/k Forces jrbimprt to disconnect from other servers it has
established a connection to.
/l Controls non-error output to the console and to a log file.
One or more values may be given separated by commas and
without spaces. These values are the same as for /e (see
above). When /l is used without values, it defaults to
"con,jrbimprt.log".
/p Display output one screenful at a time. Give /p any value
to add a page break immediately prior to exit.
/q Query whether or not to process each user.
/v Verbose mode. List directories and files created or deleted,
trustee assignments granted, attributes set. Verbose mode
is automatically used when updating users.
/x Specify a delay in seconds to pause after object creation to
allow replication to occur before continuing. When using two
passes, the delay will occur at the end of the first pass.
/y Controls how NDS object names are displayed. Values are:
c Canonical form
d Canonical form with leading period
s Short (common) name
t Types included
u Replace spaces with underscores
x Relative to current context
Important advantages of jrbimprt over uimport:
1. Supports a wider range of attributes e.g. "Internet Email Address".
2. Supports creation of home directories in the long name space
allowing directories longer than 8 characters to be created. The
"Home Directory" attribute will also be set in the long name space.
3. Supports a "Template" control statement specifying the name of a
template object to use e.g. "template=.t_1.sales.abc".
4. Supports attributes specific to template objects such as "New
Object's DS Rights" and "Volume Space Restrictions".
5. Supports a "Home directory rights" control statement specifying
the rights to be granted to the home directory e.g. "home directory
rights=RWCEMF".
6. Supports a "Home directory restriction" control statement allowing
a space restriction to be set on each user's home directory. The size
is specified in KB e.g. "home directory restriction=5000".
7. Has an option (/c) to check the syntax of the input files and the
validity of NDS objects referenced in the data file. This also checks
for the existence of the object to be created, and can optionally
search the tree for other users of the same name.
8. Has an option (/x) to wait for a specified number of seconds after
object creation to allow replication to occur.
9. Has an option (/i) to initiate a replica synchronization after
object creation to speed replication.
10. Has an option (/$) to standardise the case in new user names. The
first character is made uppercase, the remainder lowercase.
11. Allows object names to be used as attribute values in the data file
to be specified relative to the current context rather than the
context in which the new users are to be created. This can be
achieved by placing the import control statement "Use current
context=y" before the "Name context" statement in the control
file.
12. Can do two passes through the data file for import modes 'b' and 'c'.
Users are created on the first pass, attribute values are set on the
second. This potentially avoids replication issues and the need to
introduce delays after creating each user. Use the import control
statement "Use two passes=y" to enable this option.
13. Can create a subdirectory of sys:mail for each user. Use the import
control statement "Create mail directory=y" to enable this option.
It will be created on the same server as the home directory.
14. Deletes home and mail directories by default when deleting users.
The following import control statements control this:
Delete home directory=[y/n]
Delete mail directory=[y/n]
Delete on name mismatch=[y/n]
Delete on rights mismatch=[y/n]
Purge files=[y/n]
By default, the user, mail and home directory are not deleted if
either the user name does not match the lowest level directory of
the home directory, or no trustee assignment exists granting the
user [RWCEMFA] rights to the home directory. Deleted files are
purged by default.
15. Can create an alias for each new user. This can be done in one of
two ways. The first is to specify "alias" as a field name and to
give the alias object name in the data file. The name may be a
distinguished name with a leading '.', or it may be relative to the
context in which the new user is created. The second method is
controlled by two import control statements and creates aliases with
the same name as the new object:
Create aliases=[y/n]
Alias context=<context>
16. Can create subdirectories of each user's home directory via the
"Create subdirectories" import control statement e.g. "create
subdirectories=pmail,netscape\ini,photographs"
17. Has an "Apply template first=y" import control statement allowing
attributes from a template to be applied to a new object before the
attribute values given in the data file.
18. Does not require a "last name" field. When omitted, the last name
is set to the user name.
19. Is available in a 32 bit version.
The following features are not supported in the 16 bit version:
20. Supports NDS for NT (Corporate Edition). It can add each user to a
domain via a template, or via a "Domain" import control statement,
and can set NDS for NT passwords. Use the import control statement
"Set nds for nt passwords=y" to set these in addition to the
NetWare passwords.
21. Can set IPX and IP network address restrictions.
22. Can add NDS 8 auxiliary classes to users via the "auxiliary classes"
control statement and can set attributes added via auxiliary classes.
23. Can create groups that users are to be made members of.
24. Added a "target server" control statement. All NDS requests are sent
to the designated server to try to overcome replication issues. Note
that when home directories are created, they must be on the designated
server. All NDS objects referenced during user creation or updating
must exist in partitions on the designated server.
25. Can set NMAS/NFAP simple passwords via the "Set simple passwords"
control statement.
26. Can control whether the NDS password is set via "Set NDS passwords".
27. Can set NT domain passwords via the "Set nt domain passwords" control
statement for existing domain accounts.
28. Can search NDS for users when it is not known what context they are in.
Use the control statment "Search NDS".
29. Can set attributes of each user's home directory via the "Home
directory attributes" control statement.
30. Added support for Groupwise via the following control statements:
"Groupwise server path" specifies the path to the database.
"Groupwise domain object" specifies the name of the domain object.
"Groupwise post office" specifies the name of the post office.
"Groupwise add users" adds users into groupwise.
"Groupwise remove users" removes users from groupwise.
"Groupwise add distribution lists" gives a list of distribution
lists to which each user will be added.
"Groupwise remove distribution lists" gives a list of distribution
lists from which each user will be removed.
"GroupWise distribution lists participation" specifies the
participation type.
"Groupwise set passwords" is self explanatory.
"Set groupwise passwords" is an alternative to the previous control
statement.
One of the first two statements must be present when adding users into
GroupWise. In addition the following field names may be used:
"Groupwise description" sets the description.
"Groupwise expiration date" sets the mailbox expiration date.
"Groupwise password" allows a GroupWise specific password to be set.
"Groupwise visibility" sets the visibility.
31. Added a "set passwords only on create" control statement to prevent
setting passwords if the user is being updated rather than created.
32. Added "group membership add" and "group membership remove" control
statements to allow adding and removing from groups without having to
place the group names in the data file.
33. Added a "Create subdirectory" control statement to complement the
existing "Create subdirectories" statement. This new statement
allows a single directory to be specified, but it may be followed by
the attributes to be set, then one or more object name and rights
pairs for creation of trustee assignments.
Related programs: creatobj, delobj, setname