s3-samr: Fix Bug #5859, renaming of samr objects failed due to samr setuserinfo acces...
[samba.git] / source3 / rpc_server / srv_samr_nt.c
index 17e111d4eac88391980b46feebbc988f1e66e6ac..b2503dce1d9728984b87990ef94b40765cfbd02c 100644 (file)
@@ -4673,6 +4673,9 @@ NTSTATUS _samr_SetUserInfo(pipes_struct *p,
          we'll use the set from the WinXP join as the basis. */
 
        switch (switch_value) {
+       case 7:
+               acc_required = SAMR_USER_ACCESS_SET_ATTRIBUTES;
+               break;
        case 18:
        case 24:
        case 25: