Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Please help with sec_rgy_acct_add() args ...
@ 1993-09-02 19:10 Larry L. Buickel
  0 siblings, 0 replies; only message in thread
From: Larry L. Buickel @ 1993-09-02 19:10 UTC (permalink / raw)



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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-09-02 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-02 19:10 Please help with sec_rgy_acct_add() args Larry L. Buickel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox