|
|
1.1 ! root 1: -- lookup.ry - the ISODE password lookup demo ! 2: ! 3: -- $Header: /f/osi/others/lookup/RCS/lookup.ry,v 7.0 89/11/23 22:56:37 mrose Rel $ ! 4: -- ! 5: -- ! 6: -- $Log: lookup.ry,v $ ! 7: -- Revision 7.0 89/11/23 22:56:37 mrose ! 8: -- Release 6.0 ! 9: -- ! 10: ! 11: -- ! 12: -- NOTICE ! 13: -- ! 14: -- Acquisition, use, and distribution of this module and related ! 15: -- materials are subject to the restrictions of a license agreement. ! 16: -- Consult the Preface in the User's Manual for the full terms of ! 17: -- this agreement. ! 18: -- ! 19: -- ! 20: ! 21: ! 22: PasswordLookup DEFINITIONS ::= ! 23: ! 24: BEGIN ! 25: ! 26: -- operations ! 27: ! 28: -- given a user name, return a Passwd type ! 29: lookupUser OPERATION ! 30: ARGUMENT UserName ! 31: RESULT Passwd ! 32: ERRORS { noSuchUser, congested } ! 33: ::= 0 ! 34: ! 35: -- given a user ID, return a Passwd type ! 36: lookupUID OPERATION ! 37: ARGUMENT UserID ! 38: RESULT Passwd ! 39: ERRORS { noSuchUser, congested } ! 40: ::= 1 ! 41: ! 42: ! 43: -- errors ! 44: ! 45: -- no matching user in the database ! 46: noSuchUser ERROR ! 47: ::= 0 ! 48: ! 49: -- congestion at responder ! 50: congested ERROR ! 51: ::= 1 ! 52: ! 53: ! 54: -- types ! 55: ! 56: -- similar to an entry in <pwd.h> ! 57: Passwd ::= ! 58: [APPLICATION 1] ! 59: IMPLICIT SEQUENCE { ! 60: name[0] ! 61: IMPLICIT UserName, ! 62: ! 63: passwd[1] ! 64: IMPLICIT IA5String ! 65: OPTIONAL, ! 66: ! 67: uid[2] ! 68: IMPLICIT UserID, ! 69: ! 70: gid[3] ! 71: IMPLICIT GroupID, ! 72: ! 73: quota[4] ! 74: IMPLICIT INTEGER ! 75: DEFAULT 0, ! 76: ! 77: comment[5] ! 78: IMPLICIT IA5String ! 79: OPTIONAL, ! 80: ! 81: gecos[6] ! 82: IMPLICIT IA5String ! 83: OPTIONAL, ! 84: ! 85: dir[7] ! 86: IMPLICIT IA5String ! 87: OPTIONAL, ! 88: ! 89: shell[8] ! 90: IMPLICIT IA5String ! 91: OPTIONAL ! 92: } ! 93: ! 94: UserName ::= ! 95: [APPLICATION 2] ! 96: IMPLICIT GraphicString ! 97: ! 98: UserID ::= ! 99: [APPLICATION 3] ! 100: IMPLICIT INTEGER ! 101: ! 102: GroupID ::= ! 103: [APPLICATION 4] ! 104: IMPLICIT INTEGER ! 105: ! 106: END
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.