Автоматическое создание пользователей и т.п. объектов ...

Обсуждение технических вопросов по продуктам Novell

Автоматическое создание пользователей и т.п. объектов ...

Сообщение Дмитрий Савельев » 10 окт 2003, 12:46

Доброго всем времени суток.

Уважаемые, ситуация такая, сейчас предстоит тиражирование нескольких серверов (они одинаковые будут), как следствие может кто подскажет как организовать автоматическое создание пользователей, при условии, что все дерево будет идентичное, только имя разное ...
Мне видится вариант: залить один сервер, создать на нем дерево, потом второй ввести в это дерево, положить на него реплику, выдернуть из сети и сделать реплику мастером ... Короче работать будет. Есть ли еще варианты?

НО! Есть еще один вопрос. Есть ли какой-нибудь скрипт, утилита и т.п. для создания пользователей, например из текстового файла (что-то типа uimport) ... Может что по-продвинутее есть?
Дмитрий Савельев
 
Сообщения: 48
Зарегистрирован: 17 окт 2002, 12:42
Откуда: Москва

Re: Автоматическое создание пользователей и т.п. объектов ..

Сообщение Сергей Дубров » 10 окт 2003, 14:28

Дмитрий Савельев писал(а):Есть ли какой-нибудь скрипт, утилита и т.п. для создания пользователей, например из текстового файла (что-то типа uimport) ... Может что по-продвинутее есть?

JRBIMPRT, но она не бесплатная. Для примера содержимое CTL-файла, которое она понимает (в сравнении с той же uimport):

; This file contains examples of all valid control statements. It also contains
; a reasonably complete list of possible field names i.e. attributes which can
; be set. Provision of a complete set of attributes is not possible because that
; is dependent on what products are installed and the schema extensions they add,
; and any local schema extensions.
;

Import control
Alias context = .staff.xyz
Apply template first = n
Auxiliary classes="Fire wardens,Security team"
Create aliases=y
Create groups = n
Create home directory=y
Create mail directory=n
Create second home directory=y
Create subdirectories=my documents,netscape\ini,pmail
Create subdirectory=shared,di,,.staff.xyz,[rf]
Delete attribute = #delete
Delete home directory=n
Delete mailbox dirs=n
Delete mail directory = n
Delete on name mismatch=y
Delete on rights mismatch = n
Delete property = #delete
Domain = nt.students.xyz
Group membership add = Уsales, minions, smokers.staff"
Group membership remove =.bigwigs.staff.abc
GroupWise add distribution lists="sales.ny.abc,tempstaff"
GroupWise add external entities = n
GroupWise add users=y
GroupWise distribution lists participation="to"
GroupWise domain object=.gwdomain.abc"
GroupWise post office=kaeo
GroupWise remove distribution lists="devlist.ny.abc,devlist.sf.abc"
GroupWise remove external entities = n
GroupWise remove users=n
GroupWise server path="\\yogi\gwvol\gwdomain"
GroupWise set passwords=y
Home directory attributes = p
Home directory path=students\year3
Home directory restriction=10000
Home directory rights=rwcemf
Home directory volume = .yogi_vol1.students.xyz
Import mode = c
Maximum directory retries=10
Name context = civil.students.xyz
Purge files = y
Quote="
Replace value=N
Role membership add = "helpdesk.staff"
Role membership remove = ".research admins.staff.abc"
Search nds = n
Second home directory attributes = pdiri
Second home directory path=students\year4
Second home directory restriction=5000
Second home directory rights=rwcemfa
Second home directory volume = .yogi_misc.students.xyz
Separator = ;
Set groupwise passwords=n
Set nds for nt passwords = y
Set nds passwords = y
Set nt domain passwords=n
Set passwords only on create = n
Set simple passwords =n
Target server = kowhai
Template=.t_year3.students.xyz
Use current context = n
Use two passes=n
User template = y

; In the field section below, it is possible in many cases to use two different
; field names for the same attribute. This arises because:
; (a) The actual attribute name may be used as well as a uimport/jrbimprt field
; name. The field name is usually more intuitive.
; (b) Alternative spellings are provided for some attribute names, especially to
; include spaces where the actual attribute name omits these e.g. "Access
; card number" is an alternative for the actual attribute name
; Accesscardnumber".

Fields
Name
Access card number
Accesscardnumber
Account balance
Account disabled
Account has expiration date
Alias
Allow unlimited credit
Allow user to change password
Assistant
Assistant phone
Assistantphone
Business category
Businesscategory
Car license
Carlicense
City
Co
Company
Cost center
Cost centre
Costcenter
Cost center description
Cost centre description
Costcenterdescription
Country
Date password expires
Days between forced changes
Default server
Department
Department number
Departmentnumber
Description
Display name
Displayname
Email address
Employee status
Employeestatus
Employe type
Employetype
Facsimile telephone number
Fax number
First name
Foreign email address
Full name
Generational qualifier
Given name
Grace logins allowed
Group membership
GroupWise description
GroupWise expiration date
GroupWise external net ID
Groupwise nickname
GroupWise password
GroupWise visibility
Home directory
Home phone
Homephone
Initials
Instant messaging ID
InstantmessagingID
Internet email address
Is manager
Ismanager
Language
Location
Last name
Login disabled
Login name
Login expiration time
Login grace limit
Login maximum simultaneous
Mailbox ID
Mailbox location
Mailing label information
Mailstop
Manager
Manager workforce ID
ManagerworkforceID
Maximum connections
Message server
Minimum account balance
Minimum password length
Mobile
Network address restriction
Other names
Other phone number
Otherphonenumber
Ou
Pager
Password
Password allow change
Password expiration interval
Password expiration time
Password minimum length
Password required
Password unique required
Personaltitle
Physical delivery office name
Postal address
Postal code
Postal office box
Preferred language
Preferredlanguage
Preferred name
Preferredname
Prefix
Profile
Registered address
Registeredaddress
Remaining grace logins
Require a password
Require unique passwords
Role membership
Room number
Roomnumber
S
Sa
Secretary
Security equal to
Security equals
See also
Site location
Sitelocation
Skip
State or province
Street address
Suffix
Surname
Telephone
Telephone number
Title
Toll free phone number
Tollfreephonenumber
UniqueID
Vehicle information
Vehicleinformation
Volume restrictions
Workforce ID
WorkforceID
Аватара пользователя
Сергей Дубров
 
Сообщения: 2096
Зарегистрирован: 05 июн 2002, 06:07
Откуда: Новосибирск, ин-т ядерной физики СО РАН


Вернуться в Novell

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 90