From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,6d9c0611690385d3,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-09-02 12:37:29 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!larry From: larry@austin.ibm.com (Larry L. Buickel) Subject: Please help with sec_rgy_acct_add() args ... Originator: larry@daat6000.austin.ibm.com Sender: news@austin.ibm.com (News id) Message-ID: Date: Thu, 2 Sep 1993 19:10:59 GMT Reply-To: larry@austin.ibm.com Organization: IBM Austin I am trying add an account after having successfully created a person (principal). The problem is that the sec_rgy_acct_add takes alot of arguments, each of which are mostly structure and I can't determine which parts I am to fill in or which parts will be filled in and passed back to me. I have included the function signature below. The particular args that have me confused follow. I am using IBM DCE version 1.2 for AIX. sec_rgy_acct_add( sec_rgy_handle_t context, sec_rgy_login_name_t *login_name, sec_rgy_acct_key_t *key_parts, sec_rgy_acct_user_t *user_part, sec_rgy_acct_admin_t *admin_part, sec_passwd_rec_t *caller_key, sec_passwd_rec_t *new_key, sec_passwd_type_t *new_keytype, sec_passwd_version_t *new_key_version, error_status_t *status) ; user_part: passwd_version_number - if I don't care what should I set this to Is sec_passwd_c_version_none OK? passwd - defined as "encrypted account passwd in sec_rgy_unix_passwd_buf_t format" Is this returned in the structure after the account is added or do I have to create and pass an encrypted passwd? passwd_dtm - "date passwd was established" I assume that this is passed back to me in conjuction with creating the passwd immediately above? admin_part: expiration_date - What do I use for "never expires"? good_since_date - Is this passed back or do I have to fill it in. If I have to fill it in and would like to just use the current time, how do I get that value? caller_key: Assume that my server is running as cell_admin. Does caller refers to the calling process? So it will want either a plain text passwd or an encrypted one for authorization to perform the account add. I get my current context and the passwd info for it. One of the fields available is the encrypted passwd. pepper - Huh? We have been using NULL, but what is this really for? key.key_type - Since I would like to use the encrypted passwd from my current context, I assume I set this var to sec_passwd_des ? key.tagged_union.des_key - since I've chosen the encrypted option, I need to send a buffer of encrypted passwd data? The definition for the des_key data type ( sec_passwd_des_key_t) is an 8 element idl_byte array. I'm obviously missing something here unless encrypted passwds are only 8 bytes. Thanks! Larry B larry@austin.ibm.com