home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10180 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!amex-trs.com!gonzalod
  2. From: gonzalod@amex-trs.com (Gonzalo Diethelm)
  3. Newsgroups: comp.unix.questions
  4. Subject: AFS calls from C code
  5. Message-ID: <9208190055.AA21710@cs90code.csv-tgsc.amex-trs.com>
  6. Date: 19 Aug 92 00:55:32 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Lines: 35
  9.  
  10.  
  11.  
  12. Distribution: world
  13.  
  14. Hello everyone,
  15.  
  16. This might be a FAQ, or maybe I should RTFM, but in this case
  17. TFM is about 400 pages and I need this done REALLY SOON. So,
  18. here it goes:
  19.  
  20. Does anybody know how to have AFS-like functionality in your
  21. C code? Pipes or system() is not acceptable. For example,
  22. how would you implement a function like:
  23.  
  24. int klog(char *username, char *password)
  25. /*
  26.  * Same thing as the Kerberos klog utility.
  27.  */
  28.  
  29. but without opening a pipe and actually executing the program
  30. in /usr/afs/bin/klog?
  31.  
  32. What I'm looking for specifically is a way of checking the
  33. AFS information for a user given his/her login id, uid, etc.
  34. The .h files in my /usr/afs/include directory don't even have
  35. ANSI prototypes, and the manuals are VERY long and terse.
  36. I haven't found any examples either. Can anybody lend a hand?
  37. Please answer by e-mail. Thanks in advance and regards.
  38.  
  39. P.S. Just in case, I'm using AIX 3.2 and AFS 3.2b
  40.  
  41. gonzalod@amexphx.amex-trs.com
  42. Gonzalo A. Diethelm                 (602)375-8410  home
  43. 16220 N 7th St Ap 1314              (602)492-3536  office
  44. Phoenix, AZ 85022                   (602)492-4248  FAX
  45.