The Samba-Bugzilla – Attachment 8084 Details for
Bug 9298
"net sam rights revoke" doesn't accept SID as parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow SID as parameter to "net sam rights revoke"
samba-3.6_net_sam.patch (text/plain), 912 bytes, created by
Savvas Karagiannidis
on 2012-10-18 08:04:21 UTC
(
hide
)
Description:
patch to allow SID as parameter to "net sam rights revoke"
Filename:
MIME Type:
Creator:
Savvas Karagiannidis
Created:
2012-10-18 08:04:21 UTC
Size:
912 bytes
patch
obsolete
>--- source3/utils/net_sam.bak Wed Sep 26 15:28:31 2012 >+++ source3/utils/net_sam.c Wed Sep 26 16:09:48 2012 >@@ -746,10 +746,18 @@ > return -1; > } > >+ dom = NULL; >+ > if (!lookup_name(talloc_tos(), argv[0], LOOKUP_NAME_LOCAL, > &dom, &name, &sid, &type)) { >- d_fprintf(stderr, _("Could not find name %s\n"), argv[0]); >- return -1; >+ >+ /* try it as a SID */ >+ if ( !string_to_sid( &sid, argv[0] ) ) { >+ d_fprintf(stderr, _("Could not find name %s\n"), >+ argv[0]); >+ return -1; >+ } >+ > } > > for (i=1; i < argc; i++) { >@@ -764,7 +772,12 @@ > return -1; > } > >- d_printf(_("Revoked %s from %s\\%s\n"), argv[i], dom, name); >+ if (dom == NULL) { >+ d_printf(_("Revoked %s from %s\n"), argv[i], argv[0]); >+ } else { >+ d_printf(_("Revoked %s from %s\\%s\n"), argv[i], dom, name); >+ } >+ > } > > return 0;
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
Flags:
jra
:
review?
(
jra
)
Actions:
View
Attachments on
bug 9298
: 8084