irp_pw.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Portions Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#endif /* LIBC_SCCS and not lint */
/* Extern */
#include "port_before.h"
#ifndef WANT_IRS_PW
static int __bind_irs_pw_unneeded;
#else
#include <syslog.h>
#include <db.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <utmp.h>
#include <unistd.h>
#include <irs.h>
#include <irp.h>
#include <isc/memcluster.h>
#include <isc/irpmarshall.h>
#include "port_after.h"
#include "irs_p.h"
#include "irp_p.h"
/* Types */
struct pvt {
int warned;
};
/* Forward */
static void pw_minimize(struct irs_pw *);
/* Public */
struct irs_pw *
return (NULL);
}
return (NULL);
}
return (pw);
}
/* Methods */
/*
* void pw_close(struct irs_pw *this)
*
*/
static void
}
/*
* struct passwd * pw_next(struct irs_pw *this)
*
*/
static struct passwd *
char *body;
int code;
char text[256];
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETUSER_OK) {
}
} else {
}
}
return (pw);
}
/*
* struct passwd * pw_byname(struct irs_pw *this, const char *name)
*
*/
static struct passwd *
char text[256];
int code;
return (pw);
}
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETUSER_OK) {
}
} else {
}
}
return (pw);
}
/*
* struct passwd * pw_byuid(struct irs_pw *this, uid_t uid)
*
*/
static struct passwd *
char *body;
char text[256];
int code;
return (pw);
}
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETUSER_OK) {
}
} else {
}
}
return (pw);
}
/*
* void pw_rewind(struct irs_pw *this)
*
*/
static void
char text[256];
int code;
return;
}
return;
}
if (code != IRPD_GETUSER_SETOK) {
if (irp_log_errors) {
}
}
return;
}
/*
* void pw_minimize(struct irs_pw *this)
*
*/
static void
}
/* Private. */
/*
* static void free_passwd(struct passwd *pw);
*
* Deallocate all the memory irp_unmarshall_pw allocated.
*
*/
static void
return;
#ifdef HAVE_PW_CLASS
#endif
}
#endif /* WANT_IRS_PW */