Data Replication 2
Results 1 to 2 of 2

Thread: Need help in REVOKE

  1. #1
    kevin87 is offline Junior Member
    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Need help in REVOKE

    Hi

    Suppose there are 20 Identifier are there for user...we can revoke it like:

    MCR AUTHORIZE REVOKE/ID identifier user


    but how can I revoke all the identifier in a single command. I have tried like this also, but no luck:

    MCR AUTHORIZE REVOKE/ID * user

    any help will be appreciated.


    Thanks..!

  2. #2
    Hein is offline Senior Member
    Join Date
    Dec 2007
    Location
    Nashua, NH - USA.
    Posts
    152
    Rep Power
    12

    No wildcard support avaiable.

    >> but how can I revoke all the identifier in a single command. I have tried like this also, but no luck:
    >> MCR AUTHORIZE REVOKE/ID * user


    Hello Kevin,

    This appears to be strictly an OpenVMS question with no direct relationship to Attunity (products).
    As such a better place for the (future) questions would have been the comp.os.vms newsgroup, the HP ITRC OpenVMS Forum, or perhaps stackoverflow.com/questions/tagged/openvms.

    Still, since you have our attention anyway...

    OpenVMS rights are granted and removed one at a time. No wildcard support exists.
    Best you can do is a quick editor, dcl or perl script to parse AUTHORIZE SHOW [/RIGHTS] information.

    Here is an example in perl

    UAF> grant /ident test_a hein
    UAF> grant /ident test_b hein
    $ pipe mcr authorize show hein | -
    perl -ne "$u=$1 if /me: (\w+)/;print qq(REVOKE/ID $1 $u\n) if /(TES\w*)\s+%X/"
    REVOKE/ID TEST_A HEIN
    REVOKE/ID TEST_B HEIN

    After verifying the rigth output paste that text at the UAF prompt
    You can even re-direct to a Authorize, or into a file, check and execute:

    $ pipe mcr authorize show hein | -
    perl -ne "$u=$1 if /me: (\w+)/;print qq(REVOKE/ID $1 $u\n) if /(TES\w*)\s+%X/" > revoke.tmp
    $ type revoke.tmp
    ...
    $ pipe mcr authorize < revoke.tmp

    Enjoy!
    Hein
    Last edited by Hein; 02-12-2013 at 12:45 PM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •