home *** CD-ROM | disk | FTP | other *** search
- 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
- From: gonzalod@amex-trs.com (Gonzalo Diethelm)
- Newsgroups: comp.unix.questions
- Subject: AFS calls from C code
- Message-ID: <9208190055.AA21710@cs90code.csv-tgsc.amex-trs.com>
- Date: 19 Aug 92 00:55:32 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Lines: 35
-
-
-
- Distribution: world
-
- Hello everyone,
-
- This might be a FAQ, or maybe I should RTFM, but in this case
- TFM is about 400 pages and I need this done REALLY SOON. So,
- here it goes:
-
- Does anybody know how to have AFS-like functionality in your
- C code? Pipes or system() is not acceptable. For example,
- how would you implement a function like:
-
- int klog(char *username, char *password)
- /*
- * Same thing as the Kerberos klog utility.
- */
-
- but without opening a pipe and actually executing the program
- in /usr/afs/bin/klog?
-
- What I'm looking for specifically is a way of checking the
- AFS information for a user given his/her login id, uid, etc.
- The .h files in my /usr/afs/include directory don't even have
- ANSI prototypes, and the manuals are VERY long and terse.
- I haven't found any examples either. Can anybody lend a hand?
- Please answer by e-mail. Thanks in advance and regards.
-
- P.S. Just in case, I'm using AIX 3.2 and AFS 3.2b
-
- gonzalod@amexphx.amex-trs.com
- Gonzalo A. Diethelm (602)375-8410 home
- 16220 N 7th St Ap 1314 (602)492-3536 office
- Phoenix, AZ 85022 (602)492-4248 FAX
-