Searched refs:ypclnt (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-11-stable/lib/libypclnt/
H A Dypclnt_free.c39 #include "ypclnt.h"
42 ypclnt_free(ypclnt_t *ypclnt) argument
44 if (ypclnt != NULL) {
45 free(ypclnt->domain);
46 free(ypclnt->map);
47 free(ypclnt->server);
48 free(ypclnt->error);
49 free(ypclnt);
H A Dypclnt_new.c40 #include "ypclnt.h"
45 ypclnt_t *ypclnt; local
47 if ((ypclnt = calloc(1, sizeof *ypclnt)) == NULL)
49 if (domain != NULL && (ypclnt->domain = strdup(domain)) == NULL)
51 if (map != NULL && (ypclnt->map = strdup(map)) == NULL)
53 if (server != NULL && (ypclnt->server = strdup(server)) == NULL)
55 return (ypclnt);
57 free(ypclnt->domain);
58 free(ypclnt
[all...]
H A Dypclnt_connect.c45 #include <rpcsvc/ypclnt.h>
47 #include "ypclnt.h"
50 ypclnt_connect(ypclnt_t *ypclnt) argument
55 if (ypclnt->domain == NULL) {
56 if ((ypclnt->domain = malloc(MAXHOSTNAMELEN)) == NULL) {
57 ypclnt_error(ypclnt, __func__,
61 if (getdomainname(ypclnt->domain, MAXHOSTNAMELEN) != 0) {
62 ypclnt_error(ypclnt, __func__,
69 if (ypclnt->map == NULL) {
70 ypclnt_error(ypclnt, __func_
[all...]
H A Dypclnt_error.c41 #include "ypclnt.h"
44 ypclnt_error(ypclnt_t *ypclnt, const char *func, const char *fmt, ...) argument
49 free(ypclnt->error);
50 ypclnt->error = NULL;
57 asprintf(&ypclnt->error, "%s(): %s", func, errmsg);
H A Dypclnt.h39 typedef struct ypclnt ypclnt_t;
40 struct ypclnt { struct
H A Dypclnt_passwd.c50 #include <rpcsvc/ypclnt.h>
53 #include "ypclnt.h"
65 ypclnt_havepasswdd(ypclnt_t *ypclnt) argument
73 if (getrpcport(ypclnt->server, YPPASSWDPROG,
75 ypclnt_error(ypclnt, __func__, "no rpc.yppasswdd on server");
91 ypclnt_error(ypclnt, __func__,
98 ypclnt_error(ypclnt, __func__,
100 clnt_spcreateerror(ypclnt->server));
118 ypclnt_passwd(ypclnt_t *ypclnt, const struct passwd *pwd, const char *passwd) argument
120 switch (ypclnt_havepasswdd(ypclnt)) {
137 yppasswd_local(ypclnt_t *ypclnt, const struct passwd *pwd) argument
237 yppasswd_remote(ypclnt_t *ypclnt, const struct passwd *pwd, const char *passwd) argument
[all...]
H A DMakefile4 LIB= ypclnt
13 INCS= ypclnt.h
/freebsd-11-stable/usr.bin/chpass/
H A Dchpass.c65 #include <ypclnt.h>
88 struct ypclnt *ypclnt; local
162 ypclnt = ypclnt_new(yp_domain, "passwd.byname", yp_host);
163 master_mode = (ypclnt != NULL &&
164 ypclnt_connect(ypclnt) != -1 &&
165 ypclnt_havepasswdd(ypclnt) == 1);
166 ypclnt_free(ypclnt);
243 ypclnt = ypclnt_new(yp_domain, "passwd.byname", yp_host);
244 if (ypclnt
[all...]
H A DMakefile22 LIBADD+= ypclnt
/freebsd-11-stable/lib/libpam/modules/pam_unix/
H A DMakefile48 LIBADD+= ypclnt
H A Dpam_unix.c59 #include <ypclnt.h>
274 struct ypclnt *ypclnt; local
315 ypclnt = ypclnt_new(yp_domain, "passwd.byname", yp_server);
316 if (ypclnt == NULL)
319 if (ypclnt_connect(ypclnt) == -1) {
320 ypclnt_free(ypclnt);
324 retval = ypclnt_havepasswdd(ypclnt);
325 ypclnt_free(ypclnt);
424 ypclnt
[all...]
/freebsd-11-stable/lib/librpcsvc/
H A Dsecretkey.c51 #include <rpcsvc/ypclnt.h>
H A Dyp_passwd.c39 #include <rpcsvc/ypclnt.h>
H A Dyp_update.c45 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/crypto/heimdal/appl/login/
H A Dlogin_locl.h85 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/lib/libc/rpc/
H A Dnetname.c49 #include <rpcsvc/ypclnt.h>
H A Dgetpublickey.c49 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/include/rpcsvc/
H A DMakefile16 HFILES= yp_prot.h ypclnt.h nis_db.h nis_tags.h nislib.h
/freebsd-11-stable/usr.bin/ypcat/
H A Dypcat.c49 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/usr.bin/ypmatch/
H A Dypmatch.c50 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/usr.sbin/ypset/
H A Dypset.c49 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/usr.sbin/rpc.ypupdated/
H A Dyp_dbupdate.c46 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/libexec/mknetid/
H A Dmknetid.c43 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/libexec/ypxfr/
H A Dypxfr_misc.c43 #include <rpcsvc/ypclnt.h>
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Diruserok.c47 #include <rpcsvc/ypclnt.h>

Completed in 133 milliseconds

123