Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dd8fe5a9
Commit
dd8fe5a9
authored
Feb 14, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32/tests: Adding a user with a too long name succeeds on NT4.
parent
ab820ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
access.c
dlls/netapi32/tests/access.c
+15
-2
No files found.
dlls/netapi32/tests/access.c
View file @
dd8fe5a9
...
...
@@ -244,7 +244,17 @@ static void run_userhandling_tests(void)
usri
.
usri1_password
=
sTestUserOldPass
;
ret
=
pNetUserAdd
(
NULL
,
1
,
(
LPBYTE
)
&
usri
,
NULL
);
ok
(
ret
==
NERR_BadUsername
,
"Adding user with too long username returned 0x%08x
\n
"
,
ret
);
if
(
ret
==
NERR_Success
||
ret
==
NERR_UserExists
)
{
/* Windows NT4 does create the user. Delete the user and also if it already existed
* due to a previous test run on NT4.
*/
trace
(
"We are on NT4, we have to delete the user with the too long username
\n
"
);
ret
=
pNetUserDel
(
NULL
,
sTooLongName
);
ok
(
ret
==
NERR_Success
,
"Deleting the user failed : %d
\n
"
,
ret
);
}
else
ok
(
ret
==
NERR_BadUsername
,
"Adding user with too long username returned 0x%08x
\n
"
,
ret
);
usri
.
usri1_name
=
sTestUserName
;
usri
.
usri1_password
=
sTooLongPassword
;
...
...
@@ -256,7 +266,10 @@ static void run_userhandling_tests(void)
usri
.
usri1_password
=
sTooLongPassword
;
ret
=
pNetUserAdd
(
NULL
,
1
,
(
LPBYTE
)
&
usri
,
NULL
);
ok
(
ret
==
NERR_BadUsername
,
/* NT4 doesn't have a problem with the username so it will report the too long password
* as the error. NERR_PasswordTooShort is reported for all kind of password related errors.
*/
ok
(
ret
==
NERR_BadUsername
||
ret
==
NERR_PasswordTooShort
,
"Adding user with too long username/password returned 0x%08x
\n
"
,
ret
);
usri
.
usri1_name
=
sTestUserName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment