Bug 6451 - "net rpc user rename" is always failed by "access denied".
Summary: "net rpc user rename" is always failed by "access denied".
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Client tools (show other bugs)
Version: 3.3.4
Hardware: x86 Linux
: P3 minor
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
Depends on:
Reported: 2009-06-07 12:41 UTC by TAKAHASHI Motonobu
Modified: 2009-06-17 03:51 UTC (History)
1 user (show)

See Also:

Level10 log (9.32 KB, application/octet-stream)
2009-06-07 12:42 UTC, TAKAHASHI Motonobu
no flags Details
patch for master and 3.4 (779 bytes, patch)
2009-06-16 08:05 UTC, Guenther Deschner
vl: review+

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2009-06-07 12:41:31 UTC
"net rpc user rename" is always failed by "access denied".

samba32a# /usr/local/samba/bin/net -s /dev/null  -S -U administrator%password rpc user rename rpc01 rpc01m
Failed to rename user from rpc01 to rpc01m - Access is denied
Comment 1 TAKAHASHI Motonobu 2009-06-07 12:42:54 UTC
Created attachment 4257 [details]
Level10 log

Level 10 log. against Windows 2000 Professional.
Comment 2 TAKAHASHI Motonobu 2009-06-07 12:43:45 UTC
I tested against Windows Server 2008 DC / Windows XP Professional SP3 / Windows 2000 Professional SP4 and all are failed.
Comment 3 Volker Lendecke 2009-06-08 03:24:12 UTC
Hmmm. Any OS/2 people willing to provide a sniff of OS/2 doing the user rename against a Windows domain?

If not, I would tend to not spend too much effort on this, "net rap" is pretty much deprecated.

Comment 4 Guenther Deschner 2009-06-08 04:16:59 UTC
Ok, this looks like a client samr access bit problem in libnetapi.
Comment 5 Volker Lendecke 2009-06-08 04:20:51 UTC
Ooops, I had read "net rap user rename".... Sorry :-)

Comment 6 Guenther Deschner 2009-06-16 08:04:25 UTC
Ok, this is fixed in master now with 
Comment 7 Guenther Deschner 2009-06-16 08:05:08 UTC
Created attachment 4294 [details]
patch for master and 3.4
Comment 8 Volker Lendecke 2009-06-16 08:31:27 UTC
Comment on attachment 4294 [details]
patch for master and 3.4

Tested. Fixes the problem.
Comment 9 Guenther Deschner 2009-06-16 17:24:46 UTC
before I forget, patch also needs to go into 3.3
Comment 10 Karolin Seeger 2009-06-17 03:51:27 UTC
Patch has been pushed to v3-4-test and v3-3-test.
Will be included in the next releases.
Closing out bug report.

Thanks for reporting!