/*
- * $Id: uam.c,v 1.14 2001-11-10 18:31:06 srittau Exp $
+ * $Id: uam.c,v 1.15 2001-11-13 15:01:38 rufustfirefly Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
case UAM_OPTION_PROTOCOL:
*buf = (void *) obj->proto;
break;
-#ifdef TRU64
case UAM_OPTION_CLIENTNAME:
{
struct DSI *dsi = obj->handle;
*buf = (void *) inet_ntoa( dsi->client.sin_addr );
}
break;
-#endif /* TRU64 */
case UAM_OPTION_COOKIE:
/* it's up to the uam to actually store something useful here.
* this just passes back a handle to the cookie. the uam side
/*
- * $Id: uams_dhx_pam.c,v 1.16 2001-09-05 13:42:16 rufustfirefly Exp $
+ * $Id: uams_dhx_pam.c,v 1.17 2001-11-13 15:01:38 rufustfirefly Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
}
ibuf += sizeof(sessid);
- if (uam_afpserver_option(obj, UAM_OPTION_HOSTNAME,
+ if (uam_afpserver_option(obj, UAM_OPTION_CLIENTNAME,
(void *) &hostname, NULL) < 0)
- return AFPERR_MISC;
+ {
+ syslog(LOG_INFO, "uams_dhx_pam.c :PAM: unable to retrieve client hostname");
+ hostname = NULL;
+ }
CAST_cbc_encrypt(ibuf, rbuf, CRYPT2BUFLEN, &castkey,
msg3_iv, CAST_DECRYPT);
/*
- * $Id: uams_pam.c,v 1.9 2001-11-10 18:30:21 srittau Exp $
+ * $Id: uams_pam.c,v 1.10 2001-11-13 15:01:38 rufustfirefly Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
(void *) &username, &ulen) < 0)
return AFPERR_MISC;
- if (uam_afpserver_option(obj, UAM_OPTION_HOSTNAME,
+ if (uam_afpserver_option(obj, UAM_OPTION_CLIENTNAME,
(void *) &hostname, NULL) < 0)
- return AFPERR_MISC;
+ {
+ syslog(LOG_INFO, "uams_pam.c :PAM: unable to retrieve client hostname");
+ hostname = NULL;
+ }
+
len = (unsigned char) *ibuf++;
if ( len > ulen ) {
#define UAM_OPTION_HOSTNAME (1 << 5) /* get host name */
#define UAM_OPTION_COOKIE (1 << 6) /* cookie handle */
#define UAM_OPTION_PROTOCOL (1 << 7) /* DSI or ASP */
-#ifdef TRU64
#define UAM_OPTION_CLIENTNAME (1 << 8) /* get client IP address */
-#endif /* TRU64 */
/* some password options. you pass these in the length parameter and
* get back the corresponding option. not all of these are implemented. */