Lines Matching refs:netname

40  * netname utility routines convert from netnames to unix names (uid, gid)
76 * appears in netname.c
192 netname2user_files(int *err, char *netname, struct netid_userdata *argp)
237 if (strcasecmp(name, netname) == 0) {
256 netname2user_nis(int *err, char *netname, struct netid_userdata *argp)
263 domain = strchr(netname, '@');
272 yperr = yp_match(domain, (char *)NETID, netname, strlen(netname),
297 * Build the uid and gid from the netname for users in LDAP.
299 * the netname to user data dynamically from the passwd and
306 netname2user_ldap(int *err, char *netname, struct netid_userdata *argp)
318 if (strlcpy(buf, netname, NSS_LINELEN_PASSWD) >= NSS_LINELEN_PASSWD) {
323 /* get the uid from the netname */
373 netname2user(const char netname[MAXNETNAMELEN + 1], uid_t *uidp, gid_t *gidp,
384 * Take care of the special case of nobody. Compare the netname
389 if (strcmp(netname, "nobody") == 0) {
403 if (strncmp(netname, OPSYS, OPSYS_LEN) != 0)
405 if (!isdigit(netname[OPSYS_LEN+1])) /* check for uid string */
423 res = netname2user_nis(&err, (char *)netname, &argp);
425 res = netname2user_files(&err, (char *)netname, &argp);
427 res = netname2user_ldap(&err, (char *)netname, &argp);
459 * This is very simple. Since the netname is of the form:
464 netname2host(const char netname[MAXNETNAMELEN + 1], char *hostname,
470 if (!netname) {
471 syslog(LOG_ERR, "netname2host: null netname");
475 if (strncmp(netname, OPSYS, OPSYS_LEN) != 0)
477 p = (char *)netname + OPSYS_LEN; /* skip OPSYS part */
521 syslog(LOG_ERR, "netname2host: invalid host netname %s", netname);