authorize: identifier not working correct

Share your experience porting VMS applications to x86 here.
Post Reply

Topic author
thorleif
Contributor
Posts: 16
Joined: Tue Jan 05, 2021 10:26 pm
Reputation: 0
Status: Offline

authorize: identifier not working correct

Post by thorleif » Mon Apr 01, 2024 1:43 pm

Hello
The identifier
AF> show/ ident htk
Name Value Attributes
HTK [000200,177777]
show thorleif
username: THORLEIF Owner:
Account: UIC: [200,2] ([HTK,DEFAULT])
CLI: DCL Tables: DCLTABLES
Default: HTK$ROOT:[THORLEIF]

The username DEFAULT comes instead of THORLEIF it should be UIC: [200,2] ([HTK,THORLEIF])
$ SHOW PROC

1-APR-2024 17:29:04.39 User: THORLEIF Process ID: 00000537
Node: VENUS Process name: "THORLEIF"

Terminal: OPA0:
User Identifier: [200,1] (SHOULD BE [HTK,THORLEIF]
Base priority: 4
Default file spec: SYS$SYSROOT:[SYSEXE]
Number of Kthreads: 1 (System-wide limit: 2)

Devices allocated: VENUS$OPA0:

$ DIR/OWN

Directory HTK$ROOT:[THORLEIF]

CXX.DIR;1 [HTK,DEFAULT] (SHOULD BE [HTK, THORLEIF])

Total of 1 file.

tHE ACCOUNT defaulT HAS UIC [200, 1]
tHE ACCOUNT THORLEIF HAS UIC [200,2]


Can you tell me what is wrong the identifier was created with uaf> add/ ident /value=uic=[200,*] htk

Thanks,
Thorleif
Last edited by thorleif on Mon Apr 01, 2024 1:48 pm, edited 2 times in total.


craigberry
Contributor
Posts: 23
Joined: Fri Nov 17, 2023 11:27 am
Reputation: 1
Status: Offline

Re: authorize: identifier not working correct

Post by craigberry » Mon Apr 01, 2024 4:10 pm

What do you get from:

Code: Select all

UAF> show/ident/full/user=[200,*]
I've never seen using wildcards with add/ident. Maybe it just added the first one it found in that group?


Topic author
thorleif
Contributor
Posts: 16
Joined: Tue Jan 05, 2021 10:26 pm
Reputation: 0
Status: Offline

Re: authorize: identifier not working correct

Post by thorleif » Mon Apr 01, 2024 4:39 pm

UAF> show/ident/full/user=[200,*]
Name Value Attributes
DEFAULT [000200,000002]


It gets name from uic [200,1]
it gets uic from ]200,2]
and writes it in the same line.

It works correct in OpenVms 8.4

Thanks,
Thorleifur
Last edited by thorleif on Mon Apr 01, 2024 6:17 pm, edited 2 times in total.


bhall
Member
Posts: 6
Joined: Tue Jun 25, 2019 5:12 pm
Reputation: 0
Status: Offline

Re: authorize: identifier not working correct

Post by bhall » Mon Apr 01, 2024 6:27 pm

You added the group identifier correctly. You probably messed up the identifiers by copying the DEFAULT account. Remove the identifiers for both DEFAULT and THORLEIF if it exists. Then add them back.

Code: Select all

UAF> remove/id  DEFAULT
UAF> remove/id THORLEIF
UAF> add/id/user=DEFAULT
UAF> add/id/user=THORLEIF


Topic author
thorleif
Contributor
Posts: 16
Joined: Tue Jan 05, 2021 10:26 pm
Reputation: 0
Status: Offline

Re: authorize: identifier not working correct

Post by thorleif » Mon Apr 01, 2024 6:44 pm

It works now. I removed and added the identifiers and it works.

Thanks a lot,
Thorleifur

Post Reply