Home
last modified time | relevance | path

Searched refs:groupname (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c108 char *groupname; /* Requested group name */ member
136 char *groupname; /* Name of the group */ member
366 char *groupname; /* Name of the primary group */ member
463 new->groupname = NULL; in adddisp()
568 dp->groupname = strdup(grent->gr_name); in applygroup()
584 if ((dp->groupID == grent->gr_gid) && !dp->groupname) { in applygroup()
588 dp->groupname = p; in applygroup()
612 psecgrp->groupname = p; in applygroup()
858 current->groupname == NULL ? "" : current->groupname, in writeunformatted()
868 psecgrp->groupname, psecgrp->groupID); in writeunformatted()
[all …]
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/
H A Dcommands.c1071 check_valid_group(sa_group_t group, char *groupname, char *protocol) in check_valid_group() argument
1078 " with protocol %s\n"), groupname, in check_valid_group()
1081 } else if (strcmp(groupname, "default") == 0 && in check_valid_group()
1085 "\"%s\"\n"), groupname, "nfs"); in check_valid_group()
1191 char *groupname; in sa_create() local
1309 groupname = argv[optind]; in sa_create()
1311 auth = check_authorizations(groupname, flags); in sa_create()
1313 group = sa_get_group(handle, groupname); in sa_create()
1316 ret = check_valid_group(group, groupname, protocol); in sa_create()
1322 if (!sa_valid_group_name(groupname)) { in sa_create()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare.c1246 sa_get_group(sa_handle_t handle, char *groupname) in sa_get_group() argument
1254 if (groupname != NULL) { in sa_get_group()
1255 group = strdup(groupname); in sa_get_group()
1269 if (group != NULL || groupname == NULL) in sa_get_group()
1814 char *groupname; in sa_remove_share() local
1820 groupname = sa_get_group_attr(group, "name"); in sa_remove_share()
1858 if (groupname != NULL) in sa_remove_share()
1859 sa_free_attr_string(groupname); in sa_remove_share()
1946 _sa_create_group(sa_handle_impl_t impl_handle, char *groupname) in _sa_create_group() argument
1950 if (sa_valid_group_name(groupname)) { in _sa_create_group()
[all …]
H A Dlibsharecore.c409 char *groupname; in adddfsentry() local
414 groupname = sa_get_group_attr(parent, "name"); in adddfsentry()
415 if (groupname != NULL && strcmp(groupname, "default") == 0) { in adddfsentry()
416 sa_free_attr_string(groupname); in adddfsentry()
417 groupname = NULL; in adddfsentry()
421 item->group = groupname; in adddfsentry()
1455 char *groupname; in parse_sharetab_impl() local
1480 (groupname = strchr(tmplist->resource, '@')) != NULL) { in parse_sharetab_impl()
1482 *groupname++ = '\0'; in parse_sharetab_impl()
1483 group = sa_get_group(handle, groupname); in parse_sharetab_impl()
[all …]
H A Dlibshare_zfs.c456 find_or_create_group(sa_handle_t handle, char *groupname, char *proto, int *err) in find_or_create_group() argument
468 group = sa_get_group(handle, groupname); in find_or_create_group()
470 group = sa_create_group(handle, groupname, &ret); in find_or_create_group()
501 find_or_create_zfs_subgroup(sa_handle_t handle, char *groupname, char *proto, in find_or_create_zfs_subgroup() argument
516 if (name != NULL && strcmp(name, groupname) == 0) { in find_or_create_zfs_subgroup()
529 group = _sa_create_zfs_group(zfs, groupname); in find_or_create_zfs_subgroup()
937 prep_zfs_handle_and_group(sa_handle_t handle, char *groupname, in prep_zfs_handle_and_group() argument
947 *zfsgroup = find_or_create_group(handle, groupname, NULL, err); in prep_zfs_handle_and_group()
956 sa_get_zfs_shares(sa_handle_t handle, char *groupname) in sa_get_zfs_shares() argument
964 if ((err = prep_zfs_handle_and_group(handle, groupname, &zfs_libhandle, in sa_get_zfs_shares()
[all …]
H A Dscfutil.c1655 char *groupname; in sa_commit_share() local
1668 groupname = sa_get_group_attr(group, "name"); in sa_commit_share()
1669 if (groupname != NULL) { in sa_commit_share()
1670 if (strcmp(groupname, "zfs") == 0) { in sa_commit_share()
1676 sa_free_attr_string(groupname); in sa_commit_share()
1686 if (groupname != NULL && ret == SA_OK) { in sa_commit_share()
1687 ret = sa_get_instance(handle, groupname); in sa_commit_share()
1688 sa_free_attr_string(groupname); in sa_commit_share()
1689 groupname = NULL; in sa_commit_share()
1802 if (groupname != NULL) in sa_commit_share()
[all …]
/illumos-gate/usr/src/cmd/users/
H A Dusers.c110 char *groupname; member
722 pgrp->groupname = token; in main()
739 (rc = strcmp(token, rgrp->groupname))) in main()
746 pgrp->groupname = token; in main()
833 pgrp->groupname) == 0) { in main()
860 "%s was not found", pgrp->groupname); in main()
867 "%s is not a user group", pgrp->groupname); in main()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetgrent.c314 char groupname[SEARCHFILTERLEN]; in getbynam() local
317 if (_ldap_filter_name(groupname, argp->key.name, sizeof (groupname)) != in getbynam()
322 _F_GETGRNAM, groupname); in getbynam()
326 ret = snprintf(userdata, sizeof (userdata), _F_GETGRNAM_SSD, groupname); in getbynam()
/illumos-gate/usr/src/lib/libproject/common/
H A Dgetprojent.c140 char groupname[MAXGLEN + 1]; in ismember() local
149 (void) snprintf(groupname, MAXGLEN, grp.gr_name); in ismember()
175 (strcmp(member + 1, groupname) == 0 || in ismember()
179 strcmp(member, groupname) == 0) in ismember()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c1936 const char *groupname) in i_ipadm_set_groupname_active() argument
1945 (void) strlcpy(lifr.lifr_groupname, groupname, in i_ipadm_set_groupname_active()
1984 if (groupname[0] == '\0') { in i_ipadm_set_groupname_active()
2013 char *groupname, size_t size) in i_ipadm_get_groupname_active() argument
2025 (void) strlcpy(groupname, lifr.lifr_groupname, size); in i_ipadm_get_groupname_active()
2037 char groupname[LIFGRNAMSIZ]; in i_ipadm_is_under_ipmp() local
2039 if (i_ipadm_get_groupname_active(iph, ifname, groupname, in i_ipadm_is_under_ipmp()
2040 sizeof (groupname)) != IPADM_SUCCESS || in i_ipadm_is_under_ipmp()
2041 groupname[0] == '\0' || in i_ipadm_is_under_ipmp()
2042 strcmp(ifname, groupname) == 0) in i_ipadm_is_under_ipmp()
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Project/
H A DProject.pm1290 my $groupname;
1298 $groupname = $group;
1299 $groupname =~ s/^!//;
1301 if (!defined(getgrnam($groupname))) {
1305 $groupname]);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c92 char *groupname; member
512 iconf->groupname = safe_strdup(grp->gr_name); in valid_inetconfent()
518 iconf->groupname = safe_malloc(len); in valid_inetconfent()
519 (void) snprintf(iconf->groupname, len, "%d", in valid_inetconfent()
567 free(iconf->groupname); in free_inetconfent()
738 iconf->exec, PR_USER_NAME, iconf->username, iconf->groupname) < 0) in print_manifest()
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c218 event->adt_newgrp_login.groupname = gname; in put_event()
/illumos-gate/usr/src/cmd/svc/shell/
H A Dnet_include.sh163 /sbin/ipmpstat -gP -o groupname,group | while IFS=: read name ifname; do
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-network.p5m94 group groupname=netadm gid=65
H A Dsystem-file-system-nfs.p5m104 group groupname=unknown gid=96
H A Dservice-network-smtp-sendmail.p5m234 group groupname=smmsp gid=25
/illumos-gate/usr/src/uts/common/smbsrv/ndl/
H A Dsamrpc.ndl1138 samr_string_t groupname;