Lines Matching defs:group
126 #define SMB_LGRP_PGRP_GROUP "/etc/group"
127 #define SMB_LGRP_PGRP_MAXGLEN 9 /* max length of group name */
170 { SMB_LGRP_NOT_FOUND, "group not found" },
171 { SMB_LGRP_EXISTS, "group exists" },
181 { SMB_LGRP_MEMBER_IN_GROUP, "member already in group" },
194 { SMB_LGRP_INSERT_FAILED, "group insert failed" },
195 { SMB_LGRP_DELETE_FAILED, "group delete failed" },
196 { SMB_LGRP_UPDATE_FAILED, "group update failed" },
197 { SMB_LGRP_LOOKUP_FAILED, "group lookup failed" },
198 { SMB_LGRP_OFFLINE, "local group service is offline" },
199 { SMB_LGRP_POSIXCREATE_FAILED, "posix group create failed" }
203 * Serialization for the local group API.
259 * Create a local group with the given name and comment.
260 * This new group doesn't have any members and no enabled
272 struct group *pxgrp;
364 * Renames the given group
418 * Deletes the specified local group.
429 /* Cannot remove a built-in group */
451 * Sets the description for the given group
482 * Obtain the description of the specified group
519 * Enable/disable the specified privilge for the group
555 * Obtain the status of the specified privilge for the group
590 * Add the given account to the specified group as its member.
625 * Delete the specified member from the given group.
657 * Retrieves the information of the group specified by
660 * Note that this function doesn't allocate the group
662 * pointer has to point to a group structure.
690 * Retrieves the information of the group specified by
693 * Note that this function doesn't allocate the group
695 * pointer has to point to a group structure.
701 * group with the given information exists.
768 * group structure. Note that this function doesn't free
769 * the group itself.
792 * Initializes the given group iterator by opening
793 * the group database and creating a virtual machine
839 * Closes the given group iterator.
875 * Iterate through group database
876 * Group information is returned in provided group structure.
878 * Note that this function doesn't allocate the group
880 * pointer has to point to a group structure.
941 * the given group.
962 * Returns a text for the given group error code.
975 return ("unknown local group error");
981 * This routine maps Local group operation errors to NT Status error codes.
1039 * a local group. We really have no business trying to
1040 * keep track of the "type" of SIDs in a group, so just
1182 * Opens group database with the given mode.
1192 syslog(LOG_ERR, "failed to open group database (%s)",
1216 * Creates the group database based on the defined SQL statement.
1229 syslog(LOG_ERR, "failed to create group database (%s)",
1276 "failed to initialize group database (%s)", errmsg);
1298 * This is a flexible lookup function for the group database.
1301 * what information items for the specified group is needed.
1304 * specifies one or 0 group. The keys that are supported now are
1305 * the group name and the group SID
1307 * Note that this function doesn't allocate the group
1309 * pointer has to point to a group structure.
1377 /* group not found */
1395 * Checks to see if the given group exists or not.
1466 * Insert a record for the given group in the group database.
1468 * NOTE: this function assumes that this group has no members
1520 * Removes the specified group from the database
1554 * Updates the specified group information, the supported items
1555 * are group name and comment
1610 * given group
1645 /* group not found */
1709 * given group
1743 /* group not found */
2007 * Check to see if this is already a group member
2177 * Encodes given privilege set into a buffer to be stored in the group
2210 * Decodes the privilege information read from group table
2238 * Decodes the members information read from group table
2297 * Fills out the fields of the given group (grp) based in the
2298 * string information read from the group table. infolvl determines
2368 * Trim whitespace, validate the group name and convert it to lowercase.
2428 (id_type == SMB_IDMAP_USER) ? "user" : "group",
2439 (id_type == SMB_IDMAP_USER) ? "user" : "group",
2493 * Returns B_TRUE if the local group with the given name exists.
2518 * Validate posix group name string.
2521 smb_lgrp_pgrp_valid_gname(char *group)
2523 char *ptr = group;
2528 if (!group || !*group)
2543 if (getgrnam(group) != NULL)
2552 * Create a posix group with the given name.
2553 * This group will be added to the /etc/group file.
2556 smb_lgrp_pgrp_add(char *group)
2567 rc = smb_lgrp_pgrp_valid_gname(group);
2608 (void) fprintf(etctmp, "%s::%u:\n", group, gid);
2617 (void) fprintf(etctmp, "%s::%u:\n", group, gid);