Lines Matching defs:netname
44 * netname utility routines convert from netnames to unix names (uid, gid)
80 * appears in netname.c
195 netname2user_files(int *err, char *netname, struct netid_userdata *argp)
239 if (strcasecmp(name, netname) == 0) {
258 netname2user_nis(int *err, char *netname, struct netid_userdata *argp)
265 domain = strchr(netname, '@');
274 yperr = yp_match(domain, (char *)NETID, netname, strlen(netname),
299 * Build the uid and gid from the netname for users in LDAP.
301 * the netname to user data dynamically from the passwd and
308 netname2user_ldap(int *err, char *netname, struct netid_userdata *argp)
320 if (strlcpy(buf, netname, NSS_LINELEN_PASSWD) >= NSS_LINELEN_PASSWD) {
325 /* get the uid from the netname */
375 netname2user(const char netname[MAXNETNAMELEN + 1], uid_t *uidp, gid_t *gidp,
386 * Take care of the special case of nobody. Compare the netname
391 if (strcmp(netname, "nobody") == 0) {
405 if (strncmp(netname, OPSYS, OPSYS_LEN) != 0)
407 if (!isdigit(netname[OPSYS_LEN+1])) /* check for uid string */
425 res = netname2user_nis(&err, (char *)netname, &argp);
427 res = netname2user_files(&err, (char *)netname, &argp);
429 res = netname2user_ldap(&err, (char *)netname, &argp);
462 * This is very simple. Since the netname is of the form:
467 netname2host(const char netname[MAXNETNAMELEN + 1], char *hostname,
473 if (!netname) {
474 syslog(LOG_ERR, "netname2host: null netname");
478 if (strncmp(netname, OPSYS, OPSYS_LEN) != 0)
480 p = (char *)netname + OPSYS_LEN; /* skip OPSYS part */
524 syslog(LOG_ERR, "netname2host: invalid host netname %s", netname);