The Samba-Bugzilla – Attachment 7425 Details for
Bug 8843
User can not change own password (samr_ChangePasswordUser3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
selfttest for user password change
s4-selftest-add-password-change-test.patch (text/plain), 1.35 KB, created by
Björn Baumbach
on 2012-04-05 09:29:13 UTC
(
hide
)
Description:
selfttest for user password change
Filename:
MIME Type:
Creator:
Björn Baumbach
Created:
2012-04-05 09:29:13 UTC
Size:
1.35 KB
patch
obsolete
>From d22f39e271281c49d92ca3d5573b2427c14ca007 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= <bb@sernet.de> >Date: Thu, 5 Apr 2012 09:12:50 +0200 >Subject: [PATCH] s4-selftest: add password change test to samba_tool.user test > >--- > .../python/samba/tests/samba_tool/user.py | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) > >diff --git a/source4/scripting/python/samba/tests/samba_tool/user.py b/source4/scripting/python/samba/tests/samba_tool/user.py >index 1466b2f..fd042e1 100644 >--- a/source4/scripting/python/samba/tests/samba_tool/user.py >+++ b/source4/scripting/python/samba/tests/samba_tool/user.py >@@ -136,6 +136,17 @@ class UserCmdTestCase(SambaToolCmdTest): > > > >+ def test_password(self): >+ for user in self.users: >+ newpasswd = self.randomPass() >+ (result, out, err) = self.runsubcmd("user", "password", >+ "--newpassword=%s" % newpasswd, >+ "-U%s%%%s" % (user["name"], user["password"])) >+ # self.assertCmdSuccess(result, "Ensure password runs") >+ self.assertEquals(err,"","set user password") >+ self.assertMatch(out, "Changed password OK", "set user password") >+ >+ > > def test_setexpiry(self): > twodays = time.time() + (2 * 24 * 60 * 60) >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8843
: 7425