mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
3.5 KiB
129 lines
3.5 KiB
/**********************************************************************/
|
|
/** Microsoft Windows NT **/
|
|
/** Copyright(c) Microsoft Corp., 1991 **/
|
|
/**********************************************************************/
|
|
|
|
|
|
grpmemb.ut
|
|
Group Memerships User Properties subdialog unit test
|
|
|
|
|
|
FILE HISTORY:
|
|
o-SimoP 25-Nov-1991 Created
|
|
|
|
|
|
NOTE: You may want to check before test 1. and after each test
|
|
user/group situation with LM 2.X net admin program.
|
|
|
|
The user priv groups and the phantom groups have special
|
|
icon to make it easier to make the difference between
|
|
normal 'user defined' groups and the special groups.
|
|
The user priv groups are DOMAIN USERS, DOMAIN ADMINS and
|
|
DOMAIN GUESTS.
|
|
The phantom groups are DOMAIN COMM OPERATORS, DOMAIN
|
|
ACCOUNT OPERATORS, DOMAIN PRINT OPERATORS and DOMAIN SERVER
|
|
OPERATORS.
|
|
|
|
|
|
1. Select New User... from User pulldown menu and from
|
|
User Properties dialog press Groups button
|
|
|
|
Expect:
|
|
Group Memberships dialog will appear
|
|
w/ DOMAIN USERS user priv group in Member of
|
|
listbox and all other groups in Not members of lisbox.
|
|
Add and remove buttons are disabled.
|
|
|
|
Check accelerator keys and TAB order.
|
|
|
|
Try to move the user priv groups
|
|
|
|
Expect:
|
|
You shouldn't be able to move them, Add and Remove
|
|
buttons should remain disabled.
|
|
|
|
Try to move another groups.
|
|
|
|
Expect:
|
|
You should be able to move non special groups and
|
|
phantom groups.
|
|
|
|
Press Cancel.
|
|
|
|
Expect:
|
|
Dialog disappears.
|
|
|
|
|
|
|
|
2. Same as 1. but before pressing Groups button press Account
|
|
button and change the Privilege Level to a) Administrator
|
|
b) Guest and press OK and press Groups button
|
|
|
|
Expect:
|
|
Group Memberships dialog will appear w/ appropriate
|
|
user priv group according to a/b) in Member of
|
|
listbox and all other groups in Not members of lisbox.
|
|
Add and remove buttons are disabled.
|
|
|
|
Try to move groups.
|
|
|
|
Expect:
|
|
You should be able to move non special groups.
|
|
|
|
Press Cancel.
|
|
|
|
Expect:
|
|
Dialog disappears.
|
|
|
|
|
|
3. Select a user from main user lb and double click it, press
|
|
Groups button
|
|
|
|
Expect:
|
|
Group Memberships dialog will appear w/ groups that
|
|
the user is member of in the Member of listbox and
|
|
all other groups in Not members of lisbox.
|
|
Selected user's full name and logon name (that is
|
|
surrounded w/ ()) are after 'User:'
|
|
Add and remove buttons are disabled.
|
|
|
|
Try to move groups.
|
|
|
|
Expect:
|
|
You should be able to move non special groups (and
|
|
phantom groups if you selected the user that are in
|
|
user priv group DOMAIN USERS).
|
|
|
|
Press OK.
|
|
|
|
Expect:
|
|
Dialog disappears and changes got written into the database.
|
|
|
|
|
|
4. Select three users from main user lb and select Properties...
|
|
from User pulldown menu and from User Properties dialog press
|
|
Groups button.
|
|
|
|
Expect:
|
|
Group Memberships dialog will appear w/ appropriate
|
|
groups in the 'All are members of' listbox (groups
|
|
that all selected users are in) and all other groups
|
|
in the 'Not all are members of' listbox.
|
|
Selected users are in 'Users:' listbox.
|
|
Add and remove buttons are disabled.
|
|
|
|
Try to move groups.
|
|
|
|
Expect:
|
|
You should be able to move non special groups (and
|
|
phantom groups if all the users you selected were in
|
|
user priv group DOMAIN USERS).
|
|
|
|
Press OK.
|
|
|
|
Expect:
|
|
Dialog disappears and changes got written into the database.
|
|
i.e Groups that you 'Removed' are removed from the user and
|
|
Groups 'Added' are added unless the user allready was
|
|
a member of the group.
|
|
|